You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[receiver/purefa] Pure Storage FlashArray - Purity v6.6.11+ Native OpenMetrics Support (open-telemetry#36251)
This PR implements the changes required to scrape metrics from arrays
with newer Purity versions.
In Pure Storage FlashArray Purity version 6.6.11, they released a
feature that allows OpenMetrics to be scraped directly from the array
without the use of an OpenMetrics Exporter.
These changes include
- Enabling support to disable TLS Insecure Skip Verify if required
(default is to verify)
- Enabling support for the `namespace` HTTP param that is supported by
the Purity OpenMetrics exporter.
#### Link to tracking issue
None
<!--Describe what testing was performed and which tests were added.-->
#### Testing
Tests have been updated for the scraper and default configs for the new
Namespace and TLSInsecureSkipVerify configurations.
I have tested this with a live FlashArray running 6.6.11
#### Documentation
The Readme was updated to show a new example of a scrape using Purity
version 6.6.11+.
The Pure Storage FlashArray receiver, receives metrics from Pure Storage internal services hosts.
15
+
The Pure Storage FlashArray receiver, receives metrics from the Pure Storage FlashArray.
16
16
17
17
## Configuration
18
18
19
19
The following settings are required:
20
-
-`endpoint` (default: `http://172.0.0.0:9490/metrics/array`): The URL of the scraper selected endpoint
20
+
-`endpoint` (default: `http://127.0.0.0:9490/metrics/array`): The URL of the scraper selected endpoint.
21
+
-`fa_array_name` (no default): The array's pretty name to be used as a metrics label.
22
+
-`namespace` (default:purefa): The selected Pure Storage OpenMetrics Namespace to query.
23
+
24
+
In the below examples array01 is using the [Pure Storage FlashArray OpenMetrics exporter](https://github.com/PureStorage-OpenConnect/pure-fa-openmetrics-exporter), while array02 is using the native on-box metrics provided in Purity//FA v6.6.11+.
Copy file name to clipboardExpand all lines: receiver/purefareceiver/config.go
+7-1
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,11 @@ type Config struct {
41
41
// Env represents the respective environment value valid to scrape
42
42
Envstring`mapstructure:"env"`
43
43
44
-
// ArrayName represents the display name that is appended to the received metrics, as the `host` label if not provided by OpenMetrics output, and to the `fa_array_name` label always.
44
+
// ArrayName represents the display name that is appended to the received metrics, as the `host` label if not provided by OpenMetrics output, and to the `fa_array_name` label always
45
45
ArrayNamestring`mapstructure:"fa_array_name"`
46
+
47
+
// Namespace selects the OpenMetrics namespace requested
0 commit comments