Hi Brian, Can you give example how to do set__metric__path since the format of alert which we wanted was achieved , but the end point is still showing down in prometheus., as its not able to scrape the metrics due to metrics path not correct.
http://10.2.3.17:8080/metrics in this instead of /metrics it should be the http://10.2.3.17:8080/ <http://10.2.3.17:8080/metrics>10.2.0.85 On Sunday, June 14, 2020 at 2:03:11 AM UTC+5:30, Brian Candler wrote: > > See https://www.robustperception.io/controlling-the-instance-label > - you can set the instance label separately from the __address__ that is > scraped > > - job_name: 'apigeenode' > static_configs: > - targets: > - 10.2.0.85 <http://10.2.3.17:8080/10.2.0.85> > - 10.2.0.86 <http://10.2.3.17:8080/10.2.0.86> > - ... > > relabel_configs: > - source_labels: [__address__] > target_label: instance > - source_labels: [__address__] > target_label: __param_target > replacement: http://10.2.3.17:8080/$1 > - target_label: __address__ > replacement: 10.2.3.17:8080 > With the above, the instance label will be "10.2.0.85" for example. > I don't really understand why both the address and param_target are being > set to 10.2.3.17:8080. It looks like maybe you want to set > __metric_path__ instead. But if it works, it works. > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e0b6b8d9-9a08-4b0d-a074-9a88ce4a8248o%40googlegroups.com.

