Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[receiver/purefa] Some endpoints from purefareceiver were having trouble to scraped. #21100

Merged

Conversation

dgoscn
Copy link
Contributor

@dgoscn dgoscn commented Apr 21, 2023

Description:
Some endpoints from Pure Flash Array Receiver were not being scraped: array, pods, and directories.
The reason for that could be caused by a missing pattern insertion on the volumes scraper endpoint. This snippet code comes to fix this.

Link to tracking Issue:
#14886

Testing:
The validation test must be made by the default configs on config.yaml that is present on README.md.

Documentation:
Present on README

@dgoscn dgoscn changed the title [receiver/purefa] Some endpoints were not being scraped. This new code snippet, should resolve the bug. [receiver/purefa] Some endpoints from purefareceiver were having trouble to scraped. Apr 21, 2023
@james-laing
Copy link

Issue #21248 describes the issue this PR is addressing.

Copy link
Member

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to see tests for this change, asserting the final state of the metrics and their labels. It's then easier to see what exactly is going on.

receiver/purefareceiver/receiver.go Outdated Show resolved Hide resolved
@james-laing
Copy link

Confirmed fix for Issue #21248

@dgoscn dgoscn force-pushed the purestorage_flasharray_commom_labels_issue branch from ad288f1 to c6a7c54 Compare May 23, 2023 18:51
Copy link
Member

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm approving, as PureStorage folks have tested and confirmed this to work. The new functional test is coming on a follow-up PR.

@jpkrohling jpkrohling merged commit 8cd3d81 into open-telemetry:main May 31, 2023
@github-actions github-actions bot added this to the next release milestone May 31, 2023
Caleb-Hurshman pushed a commit to observIQ/opentelemetry-collector-contrib that referenced this pull request Jul 6, 2023
…ble to scraped. (open-telemetry#21100)

* [receiver/purefa] Some endpoints were not being scraped and this new code fixes

* [receiver/purefa] Refactor a commom label present on endpoints

* [receiver/purefa] re-adding the righ value with semantic conventions for the labels

* [receiver/purefa] Mock a test http server to expose metrics and use the exporter to scrape

* [receiver/purefa] Add the check to the return of the mock response

* [receiver/purefa] Resolve conflict on test file

* [correction/readme] Resolving conflict with lint errors

* Revert "[receiver/purefa] Mock a test http server to expose metrics and use the exporter to scrape"

This reverts commit cb8d199.

* [receiver/purefa] Remove duplicated host label from volumes and hosts

* [receiver/purefa] Remove duplicated host label from volumes and hosts w/ lint correction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants