PureStorage-OpenConnect/pure-fa-openmetrics-exporter

Update useragent string to reflect calling platform

sdodsley opened this issue · 3 comments

The current useragent string returns that the OpenMetrics exporter is hitting the backend array, which is reported to Pure for telemetry purposes.
It would be good if we could also/otherwise expose the platform using the OME to get observability data, eg. DataDog, NewRelic, OTel, etc.

We could merely take the original caller user-agent and put it into the comments string part of the final user-agent, like this

Pure_FA_OpenMetrics_exporter/1.0 (Prometheus/2.44.0)

This respects the user-agent synthax and can give us the information about the caller. If that sounds, I can easily add the code.

That would be perfect. Please implement