O'Reilly logo
  • Zaeem Arshad thinks this is interesting:

A default job label, custom path, and one URL parameter are specified:

   static_configs:
    - targets:
      - http://www.prometheus.io
      - http://www.robustperception.io
      - http://demo.robustperception.io

There are three websites that you will be probing:

   relabel_configs:
    - source_labels: [__address__]
      target_label: __param_target
    - source_labels: [__param_target]
      target_label: instance
    - target_label: __address__
      replacement: 127.0.0.1:9115

From

Cover of Prometheus: Up & Running

Note

this needs more explanation