summaryrefslogtreecommitdiff
path: root/configs/etc/monitor/prometheus.yaml
blob: 1899f3d254fea4b87f3a9be3a9c2ed0ab7007a54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
global:
  scrape_interval:     5s
  evaluation_interval: 5s 

rule_files: []

scrape_configs:

  # Self
  - job_name: 'prometheus'
    static_configs:
    - targets: ['127.0.0.1:8080']

  # DB Exporter
  - job_name: 'database'
    static_configs:
    - targets: ['127.0.0.1:9187']
    relabel_configs:
    - source_labels: ['relname']
      separator: "="
      regex: "relname=(.*)_[0-9]+"
      replacement: "${1}"
      target_label: "relname"
      action: "replace"

  # Exchange Proxy Exporter 
  - job_name: 'exchange-proxy'
    static_configs:
    - labels:
        component: 'nginx'
      targets: 
      # <NGINX_EXPORTERS_HERE>

  # Promtail with custom metrics
  - job_name: 'promtail'
    scrape_interval: 2s
    static_configs:
    - targets: ['127.0.0.1:9080']
  
  - job_name: 'taler'
    static_configs:
    - labels:
        component: 'exchange'
      targets:
      # <EXCHANGES_HERE>