Last active
June 1, 2020 03:06
-
-
Save neilkillen/7cdbd1657724dd6aa21f24ef4b27148f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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