Configuration

global:
  scrape_interval: 15s
  scrape_timeout: 10s
  evaluation_interval: 1m
scrape_configs:
- job_name: cadvisor
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - cadvisor:8080
    labels:
      host: devops
  - targets:
    - 85.208.22.206:8080
    labels:
      host: frontend
  - targets:
    - 200.234.229.198:8080
    labels:
      host: apps
- job_name: node-exporter
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - node-exporter:9100
    labels:
      host: devops
  - targets:
    - 85.208.22.206:9100
    labels:
      host: frontend
  - targets:
    - 200.234.229.198:9100
    labels:
      host: apps
- job_name: jenkins
  scrape_interval: 1m
  scrape_timeout: 10s
  metrics_path: /prometheus
  scheme: http
  static_configs:
  - targets:
    - jenkins:8080
- job_name: blackbox-exporter
  params:
    module:
    - http_2xx
  scrape_interval: 1m
  scrape_timeout: 10s
  metrics_path: /probe
  scheme: http
  static_configs:
  - targets:
    - http://goitaquefanara.cat
    - http://dev.goitaquefanara.cat
    - http://jaumemoron.cat
  relabel_configs:
  - source_labels: [__address__]
    separator: ;
    regex: (.*)
    target_label: __param_target
    replacement: $1
    action: replace
  - source_labels: [__param_target]
    separator: ;
    regex: (.*)
    target_label: instance
    replacement: $1
    action: replace
  - separator: ;
    regex: (.*)
    target_label: __address__
    replacement: blackbox-exporter:9115
    action: replace
- job_name: haproxy-exporter
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - 200.234.229.198:9090
    labels:
      instance: apps
- job_name: nginx-exporter
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - 85.208.22.206:9113
    labels:
      instance: nginx
- job_name: java
  scrape_interval: 30s
  scrape_timeout: 10s
  metrics_path: /actuator/prometheus
  scheme: http
  static_configs:
  - targets:
    - 200.234.229.198:8081
    labels:
      application: goitaquefanara
      instance: production
  - targets:
    - 200.234.229.198:8082
    labels:
      application: goitaquefanara
      instance: development