Prometheus configuration: Difference between revisions

From wikinotes
(Created page with "= Prometheus = <blockquote> == Exporters == <blockquote> <syntaxhighlight lang="yaml"> # /usr/local/etc/prometheus.yml global: scrape_interval: 15s scrape_configs: - job_na...")
 
Line 9: Line 9:


scrape_configs:
scrape_configs:
- job_name: node_exporter
- job_name: myserver_node
   static_configs:
   static_configs:
   - targets: ['localhost:9100']
   - targets: ['localhost:9100']

Revision as of 01:47, 15 February 2022

Prometheus

Exporters

# /usr/local/etc/prometheus.yml
global:
  scrape_interval: 15s

scrape_configs:
- job_name: myserver_node
  static_configs:
  - targets: ['localhost:9100']