1
2
3
tar xvfz prometheus-*.tar.gz
cd prometheus-*
./prometheus --help
prometheus.yml1
2
3
4
5
6
7
8
9
10
11
12
global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
# - "first.rules"
# - "second.rules"
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ['localhost:9090']
scrape_interval, controls how often Prometheus will scrape targets. You can override this for individual targets.evaluation_interval option controls how often Prometheus will evaluate rules. Prometheus uses rules to create new time series and to generate alerts.rule_files block specifies the location of any rules we want the Prometheus server to load.scrape_configs, controls what resources Prometheus monitors./metrics.1
./prometheus --config.file=prometheus.yml