Skip to content

Add "ignore_missing_values" option to metrics. - #301

Closed
AlexanderBeyn wants to merge 1 commit into
prometheus-community:masterfrom
AlexanderBeyn:feature_ignore_missing_values
Closed

Add "ignore_missing_values" option to metrics.#301
AlexanderBeyn wants to merge 1 commit into
prometheus-community:masterfrom
AlexanderBeyn:feature_ignore_missing_values

Conversation

@AlexanderBeyn

Copy link
Copy Markdown

I'm pulling metrics from a device that doesn't include them if they aren't valid in the current state. json_exporter doesn't output the specific missing metrics in such cases, but does show error messages. I couldn't find a way to mark metrics as optional, so I added an "ignore_missing_values" flag that stops the errors if a path is missing.

Signed-off-by: Alexander Beyn <malex@fatelectrons.org>
@SuperQ

SuperQ commented Feb 5, 2025

Copy link
Copy Markdown
Contributor

Thanks, this needs a rebase to handle the new logging interface.

@jessicaxiejw

jessicaxiejw commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

Hi, any update on this PR? It would be useful to have.

jessicaxiejw added a commit to jessicaxiejw/json_exporter that referenced this pull request Jan 5, 2026
jessicaxiejw added a commit to jessicaxiejw/json_exporter that referenced this pull request Jan 5, 2026
Signed-off-by: Jessica Xie <jessicaxie@cohere.com>
@jessicaxiejw

Copy link
Copy Markdown
Contributor

I created a new PR with the logs fix: #414

SuperQ pushed a commit that referenced this pull request Mar 28, 2026
* copy #301

Signed-off-by: Jessica Xie <jessicaxie@cohere.com>

* fix log

Signed-off-by: Jessica Xie <jessicaxie@cohere.com>

* rename to allow_missing_key

Signed-off-by: Jessica Xie <jessicaxie@cohere.com>

---------

Signed-off-by: Jessica Xie <jessicaxie@cohere.com>
@ArthurSens

Copy link
Copy Markdown

Closing since #414 got merged, thanks!

@ArthurSens ArthurSens closed this Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants