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

setup exporter metrics only once when we can #124

Merged
merged 1 commit into from
Feb 6, 2022

Conversation

fredr
Copy link
Contributor

@fredr fredr commented Jun 15, 2021

Otherwise all exporter metrics will be re-created on every scrape. Based on the same pattern as node_exporter.

Resolves #108, resolves #109

When using the collect query parameter, it will still create everything on the fly, I don't have any knowledge in how that setting is supposed to work, if that is expected behavior, or if there is still a bug there, but node_exporter seems to handle that case in the same way.

otherwise all exporter metrics will be overwritten on every scrape

Signed-off-by: Fredrik Enestad <fredrik@enestad.com>
@fredr fredr force-pushed the fix/setup-metrics-once branch from 5a37940 to 92b2702 Compare June 15, 2021 11:26
@fredr
Copy link
Contributor Author

fredr commented Jun 16, 2021

ping @SuperQ, would you mind take a look at this one?

@SuperQ
Copy link
Contributor

SuperQ commented Jan 31, 2022

Sorry, this got lost in my inbox.

I think @roidelapluie did some fixes in the node_exporter in order to make things work correctly. I need to go look at the change history to try and remember what we did there to better cache things.

@SuperQ SuperQ requested review from SuperQ and roidelapluie January 31, 2022 13:03
Copy link
Contributor

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

I think this looks mostly good. It matches the pattern we use in the node_exporter.

@SuperQ SuperQ merged commit 5064dcb into prometheus-community:master Feb 6, 2022
@fredr fredr deleted the fix/setup-metrics-once branch February 6, 2022 08:16
SuperQ added a commit that referenced this pull request Feb 7, 2022

Verified

This commit was signed with the committer’s verified signature.
SuperQ Ben Kochie
Breaking Changes:

The exporter nolonger supports configuration via ENV vars. This was a non-standard feature that is not part of the Prometheus ecossystem. All configuration is now handled by the existing command line arguments.

* [CHANGE] Cleanup non-standard ENV var setup #142
* [FEATURE] Add support to include ingest delay when pull metrics #129
* [FEATURE] Add monitoring.filters flag #133
* [ENHANCEMENT] Setup exporter metrics only once when we can #124

Signed-off-by: SuperQ <superq@gmail.com>
@SuperQ SuperQ mentioned this pull request Feb 7, 2022
SuperQ added a commit that referenced this pull request Feb 9, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Breaking Changes:

The exporter nolonger supports configuration via ENV vars. This was a non-standard feature that is not part of the Prometheus ecossystem. All configuration is now handled by the existing command line arguments.

* [CHANGE] Cleanup non-standard ENV var setup #142
* [FEATURE] Add support to include ingest delay when pull metrics #129
* [FEATURE] Add monitoring.filters flag #133
* [ENHANCEMENT] Setup exporter metrics only once when we can #124

Signed-off-by: SuperQ <superq@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants