I have job definition as follows:
- job_name: \'test-name\'
static_configs:
- targets: [ \'192.168.1.1:9100\', \'192.168.1.1:9101\', \'192.168.1.1:91
I have the same question before. Here is my solution:
For you the code may like this:
- job_name: 'development'
static_configs:
- targets: [ '192.168.1.1:9100' ]
labels:
service: '1'
- targets: [ '192.168.1.1:9101' ]
labels:
service: '2'