Advertisement
DRVTiny

prometheus-w-bb.yml

Apr 5th, 2021
1,191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.53 KB | None | 0 0
  1. # my global config
  2. global:
  3.   scrape_interval:    15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  4.   evaluation_interval: 15s # 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
  8. alerting:
  9.   alertmanagers:
  10.   - static_configs:
  11.     - targets:
  12.      # - alertmanager:9093
  13.  
  14. # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
  15. rule_files:
  16.  # - "first_rules.yml"
  17.   # - "second_rules.yml"
  18.  
  19. # A scrape configuration containing exactly one endpoint to scrape:
  20. # Here it's Prometheus itself.
  21. scrape_configs:
  22.  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  23.   - job_name: 'prometheus'
  24.     static_configs:
  25.     - targets: ['localhost:9090']
  26.  
  27.   - job_name: 'bbinfo'
  28.     metrics_path: /bb
  29.     static_configs:
  30.       - targets:
  31.         - 'localhost:9115'
  32.  
  33.     # metrics_path defaults to '/metrics'
  34.     # scheme defaults to 'http'.
  35.   - job_name: 'kube-api-blackbox'
  36.     scrape_interval: 2m
  37.     metrics_path: /probe
  38.     params:
  39.       module: [http_2xx]
  40.     static_configs:
  41.      - targets:
  42.        - https://www.google.com
  43.         - https://prometheus.io
  44.     relabel_configs:
  45.      - source_labels: [__address__]
  46.        target_label: __param_target
  47.      - source_labels: [__param_target]
  48.        target_label: instance
  49.      - target_label: __address__
  50.        replacement: localhost:9115 # The blackbox exporter.
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement