aparo / opensearch-prometheus-exporter

OpenSearch Prometheus Exporter (fork of https://github.com/vvanholl/elasticsearch-prometheus-exporter)
Apache License 2.0
42 stars 17 forks source link

Error 405 on /_prometheus/metrics #12

Open idanl21 opened 2 years ago

idanl21 commented 2 years ago

Hey everyone! I'm testing your opensearch exporter, i installed the plugin inside one of my clients nodes on 1.2.3 version Opensearch. seems like the installation succeed, but when im trying to reach metrics endpoint (_prometheus/metrics) after restarted the node of course, im getting that error {"error":"Incorrect HTTP method for uri [/_prometheus/metrics] and method [GET], allowed: [POST]","status":405}. installation logs : `-> Installing https://github.com/aparo/opensearch-prometheus-exporter/releases/download/1.2.3/prometheus-exporter-1.2.3.zip -> Downloading https://github.com/aparo/opensearch-prometheus-exporter/releases/download/1.2.3/prometheus-exporter-1.2.3.zip @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: plugin requires additional permissions @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Thanks !!