Skip to content

Instantly share code, notes, and snippets.

@noemi-dresden
Last active March 10, 2020 07:31
Show Gist options
  • Save noemi-dresden/38a63199cedaaae83a0f9f3a8ff30bd6 to your computer and use it in GitHub Desktop.
Save noemi-dresden/38a63199cedaaae83a0f9f3a8ff30bd6 to your computer and use it in GitHub Desktop.
prometheusConfig
# global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# A scrape configuration containing exactly one endpoint to scrape:
scrape_configs:
- job_name: 'any-name-you-want'
static_configs:
- targets: ['localhost:8080'] # the address of an application that exposes metrics for prometheus
@carlast22
Copy link

Hi Noemi, there is an error in line 10, localhost is misspelling.

@noemi-dresden
Copy link
Author

Hi @calast22 thx you v much, I'll update it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment