The configuration of prometheus is done via the prometheus.yml file in a Yaml format
global:
scrape_interval: 15s # controls how often Prometheus will scrape targets
evaluation_interval: 15s # controls how often Prometheus will evaluate rules
rule_files:
# - "first.rules"
# - "second.rules"
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ['localhost:9090']