DaCrow13 commited on
Commit
7f81e44
·
1 Parent(s): f002c89

Fix prometheus targets to use localhost and correct ports for single container environment

Browse files
Files changed (1) hide show
  1. monitoring/prometheus/prometheus.yml +11 -11
monitoring/prometheus/prometheus.yml CHANGED
@@ -2,8 +2,8 @@ global:
2
  scrape_interval: 15s
3
  evaluation_interval: 15s
4
  external_labels:
5
- monitor: 'hopcroft-monitor'
6
- environment: 'development'
7
 
8
  rule_files:
9
  - "alert_rules.yml"
@@ -12,21 +12,21 @@ alerting:
12
  alertmanagers:
13
  - static_configs:
14
  - targets:
15
- - 'alertmanager:9093'
16
 
17
  scrape_configs:
18
- - job_name: 'hopcroft-api'
19
- metrics_path: '/metrics'
20
  static_configs:
21
- - targets: ['hopcroft-api:8080']
22
  scrape_interval: 10s
23
 
24
- - job_name: 'prometheus'
25
  static_configs:
26
- - targets: ['localhost:9090']
27
 
28
- - job_name: 'pushgateway'
29
- honor_labels: true
30
  static_configs:
31
- - targets: ['pushgateway:9091']
32
  scrape_interval: 30s
 
2
  scrape_interval: 15s
3
  evaluation_interval: 15s
4
  external_labels:
5
+ monitor: "hopcroft-monitor"
6
+ environment: "development"
7
 
8
  rule_files:
9
  - "alert_rules.yml"
 
12
  alertmanagers:
13
  - static_configs:
14
  - targets:
15
+ - "127.0.0.1:9093"
16
 
17
  scrape_configs:
18
+ - job_name: "hopcroft-api"
19
+ metrics_path: "/metrics"
20
  static_configs:
21
+ - targets: ["127.0.0.1:8000"]
22
  scrape_interval: 10s
23
 
24
+ - job_name: "prometheus"
25
  static_configs:
26
+ - targets: ["localhost:9090"]
27
 
28
+ - job_name: "pushgateway"
29
+ honor_labels: true
30
  static_configs:
31
+ - targets: ["127.0.0.1:9091"]
32
  scrape_interval: 30s