Target With hostname

22 views
Skip to first unread message

Test Kumar

unread,
Jul 14, 2022, 9:03:25 AM7/14/22
to Prometheus Users
How can I scrape the target which is having URL like below URL 


Thanks & Regards,
Test Kumar

Brian Candler

unread,
Jul 14, 2022, 10:20:56 AM7/14/22
to Prometheus Users
The simplest way is a scrape job with

scheme: https
metrics_path: /000000000028210-nad-adms-rbac-prometheus-monitoring/metrics
static_configs:
  - targets:

If you have multiple targets to scrape, with different paths, then you can use target relabelling to set labels __metrics_path__ and/or __scheme__ differently for each target.
Reply all
Reply to author
Forward
0 new messages