Advertisement
G0nz0uk

scrape

Jun 23rd, 2022
673
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.   - job_name: 'snmp-extreme'
  3.     scrape_interval: 300s
  4.     static_configs:
  5.       - targets:
  6.        - 1.2.3.4 # SNMP device Extreme.
  7.     metrics_path: /snmp
  8.     params:
  9.       module: [if_mib_extreme]
  10.     relabel_configs:
  11.       - source_labels: [__address__]
  12.         target_label: __param_target
  13.       - source_labels: [__param_target]
  14.         target_label: instance
  15.       - target_label: __address__
  16.         replacement: 127.0.0.1:9116  # The SNMP exporter's real hostname:port.
  17.  
  18.   - job_name: 'snmp-cisco'
  19.     scrape_interval: 300s
  20.     static_configs:
  21.       - targets:
  22.        - 1.2.3.5 # SNMP device Cisco.
  23.     metrics_path: /snmp
  24.     params:
  25.       module: [if_mib_cisco]
  26.     relabel_configs:
  27.       - source_labels: [__address__]
  28.         target_label: __param_target
  29.       - source_labels: [__param_target]
  30.         target_label: instance
  31.       - target_label: __address__
  32.         replacement: 127.0.0.1:9116  # The SNMP exporter's real hostname:port.
  33.  
Advertisement
RAW Paste Data Copied
Advertisement