Method Not Allowed
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Also for getting the metrics, do we need to grab the scrap url for ex. scrap url for node-exporter when we run /api/v1/targets and then run then run that scrap url to get the scraped metrics?
For Ex:
When I run targets api, it gives me localhost target:
$ curl "
http://localhost:9090/api/v1/targets"
{"status":"success","data":{"activeTargets":[{"discoveredLabels":{"__address__":"localhost:9090","__metrics_path__":"/metrics","__scheme__":"http","job":"prometheus"},"labels":{"instance":"localhost:9090","job":"prometheus"},"scrapeUrl":"
http://localhost:9090/metrics","lastError":"","lastScrape":"2018-09-06T12:22:20.365793767-05:00","health":"up"}],"droppedTargets":[]}}
And then I run the below api to get the scraped metrics:
Is this the correct way to retrieve the metrics Information?
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------