Skip to content

Instantly share code, notes, and snippets.

@neilkillen

neilkillen/Prometheus.yml

Last active Jun 1, 2020
Embed
What would you like to do?
# global specifies parameters that are valid in all other configuration contexts.
global:
scrape_interval: 15s # how frequently to scrape targets by default.
scrape_timeout: 10s # how long until a scrape request times out.
evaluation_interval: 15s # how frequently to evaluate rules
# Rule files specifies a list of globs. Rules and alerts are read from all matching files
rule_files:
# scrape_config section specifies a set of targets and parameters describing how to scrape them.
scrape_configs:
- job_name: prometheus #the job name assigned to scraped metrics by default.
honor_timestamps: true # controls whether Prometheus respects the timestamps present in scraped data.
scrape_interval: 15s # allows you to override the global setting - if required.
scrape_timeout: 10s # again allows you to override the global setting - if required.
metrics_path: /metrics # the path prometheus will scrape to obtain metrics from the target.
scheme: http #string can be http or https.
static_configs: #specify a list of targets
- targets:
- 127.0.0.1:9090 # Promotheus expose its own metrics data on port 9090 by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.