Is it possible to change __address__ port if prometheus job name is equal to node-exporter? Something like in example below but its not working:

 - source_labels: [__meta_dockerswarm_node_address, job]
        regex: node-exporter
        target_label: __address__
        replacement: $1:9100     

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.