PureStorage-OpenConnect / pure-fa-openmetrics-exporter

Pure Storage OpenMetrics exporter for FlashArray
Apache License 2.0
20 stars 27 forks source link

Add subscription type to purefa_info #124

Closed chrroberts-pure closed 6 months ago

chrroberts-pure commented 6 months ago

closes #123

this one is midly interesting because it's the first time a metric has came from two different api uris from Purity, which we have purposefully avoided in the past, but this impel should be fine since an array should never have an array of subscriptions.

sample metric output

purefa_info{array_name="ARRAY05",os="Purity//FA",subscription_type="FlashArray",system_id="aaaaaaaa-bbbb-cccc-dddd-ffffffffffff",version="6.5.3"} 1
chrroberts-pure commented 6 months ago

This needs to be tested on an array that doesn't have the /subscriptions uri.

update - tested with an array with REST 2.17 (6.3.15) and purefa_info is not appearing, fixing.

chrroberts-pure commented 6 months ago

fixed for arrays that don't have the /subscriptions uri. If it doesn't return the uri it will return subscription_type=""