PureStorage-OpenConnect / pure-exporter

Prometheus exporter for Pure Storage FlashArray and FlashBlade. DEPRECATED IN FAVOR OF FA AND FB OPENMETRICS EXPORTERS
Apache License 2.0
29 stars 20 forks source link

Configuration error #51

Closed d3ployment closed 2 years ago

d3ployment commented 2 years ago

Hello, i'm trying to scrape metrics from my arrays but I get an error and I don't know why. I think it's due to an error in my configuration.

I run pure-exporter and prometheus as docker services. Here is my configuration file :

`

And here is the error I get in all prometheus targets :

Get "http://172.xx.xx.x:80/metrics/flasharray?apitoken=<< token >>&endpoint=172.xx.xx.x": context deadline exceeded

Can anyone help me with this issue ? Thanks in advance

genegr commented 2 years ago

Hi there,

Apparently the Prometheus server is not able to contact the exporter at the 172.xx.xx.x:80 ip and port. Did you try to issue the same request via curl from the same Prometheus machine? That just to confirm the target is reachable.

d3ployment commented 2 years ago

I figured it out earlier this morning and I replaced pure-exporter:9091 by the IP of the service and it works but I now have another error :

server returned HTTP status 500 INTERNAL SERVER ERROR

When I check in pure-exporter logs I can see something like this for each array :

_WARNING in pureexporter: FlashbladeCollector: Connection with FlashBlade 172.xx.xx.xx not initialized. Check array name/address and api-token

sdodsley commented 2 years ago

You need to confirm the array IP addresses and associated API token are correct and as @genegr stated, the local Prometheus host must be able to curl to the IP addresses successfully. Ensure that the firewalls are correctly configured, both on the host and any intermediate network firewalls.

d3ployment commented 2 years ago

From a swarm node (where Prometheus and pure-exporter are running) I can successfully curl IP but only with https and I get the Pure Sorage Login page I'll try to change the scraping scheme to https