<% end -%>
- job_name: snmp
scrape_interval: 5m
- scrape_timeout: 1m
+ scrape_timeout: 2m
metrics_path: /snmp
static_configs:
- targets:
- "<%= target[:target] %>/<%= target[:module] %>/<%= target[:address] %>"
labels:
instance: <%= target[:instance] %>
+<% target[:labels].sort.each do |name, value| -%>
+ <%= name %>: <%= value %>
+<% end -%>
<% end -%>
relabel_configs:
- source_labels: [__address__]