I have around 30 DC, and each DC is installed with an SNMP_exporter. i have a central Prometheus server and it has arounf 10 different jobs.
For each DC i am creating different Jobs. only the target and snmp_exporter ip getting changed, the config file is growing bigger and bigger. is is the correct way of using this?
- job_name: 'cisco_ipsla_del2'
scrape_interval: 60s
scrape_timeout: 60s
static_configs:
- targets: ['core1.del2','core2.del2']
metrics_path: /snmp
params:
module: [ipsla]
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- source_labels: []
target_label: __address__
- job_name: 'cisco_ipsla_sjc2'
scrape_interval: 60s
scrape_timeout: 60s
static_configs:
- targets: ['core1.sjc2','core2.sjc']
metrics_path: /snmp
params:
module: [ipsla]
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- source_labels: []
target_label: __address__
```