prometheus.yml (1681B)
1 # my global config 2 global: 3 scrape_interval: 60s # Set the scrape interval to every 15 seconds. Default is every 1 minute. 4 evaluation_interval: 60s # Evaluate rules every 15 seconds. The default is every 1 minute. 5 # scrape_timeout is set to the global default (10s). 6 7 # Alertmanager configuration -- FIXME: not yet setup! 8 alerting: 9 alertmanagers: 10 - static_configs: 11 - targets: ["localhost:9093"] 12 # - alertmanager:9093 13 14 # Load rules once and periodically evaluate them according to the global 'evaluation_interval'. 15 rule_files: 16 - "alert_rules.yml" 17 - "node-exporter-rules.yml" 18 # - "second_rules.yml" 19 20 # A scrape configuration containing exactly one endpoint to scrape: 21 # Here it's Prometheus itself. 22 scrape_configs: 23 # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config. 24 - job_name: "prometheus" 25 26 # metrics_path defaults to '/metrics' 27 # scheme defaults to 'http'. 28 29 static_configs: 30 - targets: ["localhost:9090"] 31 32 # Job, for local node exporter 33 - job_name: 'node_exporter_metrics' 34 scrape_interval: 60s 35 static_configs: 36 - targets: ['localhost:9100'] 37 38 # Job, for local nginx exporter 39 - job_name: 'nginx_exporter_metrics' 40 scrape_interval: 60s 41 static_configs: 42 - targets: ['localhost:9113'] 43 44 # Job, for local postgres_exporter 45 - job_name: 'postgres_exporter' 46 static_configs: 47 - targets: ['localhost:9187'] 48 49 # Job, for prometheus_process_exporter 50 - job_name: 'process_exporter' 51 static_configs: 52 - targets: ['localhost:9256'] 53 54 # Job, for Alloy 55 - job_name: 'alloy_exporter' 56 static_configs: 57 - targets: ['localhost:12345']