您好,我正在尝试使用https://grafana.com/grafana/dashboards/7567
中指定的信息中心监控强制防火墙这对于单个目标很好,但是,一旦我在Prometheus.yml文件中添加另一个目标,我的grafana仪表板面板就会出现错误,
many-to-many matching not allowed: matching labels must be unique on one side
我在Prometheus.yml配置中的工作如下:
- job_name: 'snmp-exporter'
static_configs:
- targets:
- XX.XX.XX.XX
- YY.YY.YY.YY
scrape_interval: 1m
scrape_timeout : 1m
metrics_path: /snmp
params:
module: [fortigate_snmp]
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: localhost:9116