Skip to content

Add "ignore_missing_values" option to metrics. - #414

Merged
SuperQ merged 3 commits into
prometheus-community:masterfrom
jessicaxiejw:jxie/feature_ignore_missing_values
Mar 28, 2026
Merged

Add "ignore_missing_values" option to metrics.#414
SuperQ merged 3 commits into
prometheus-community:masterfrom
jessicaxiejw:jxie/feature_ignore_missing_values

Conversation

@jessicaxiejw

Copy link
Copy Markdown
Contributor

Copied from #301 and with logging fixed

The original PR was created more than two years ago and appears to be abandoned.

cc @AlexanderBeyn

Signed-off-by: Jessica Xie <jessicaxie@cohere.com>
Signed-off-by: Jessica Xie <jessicaxie@cohere.com>
@jessicaxiejw
jessicaxiejw force-pushed the jxie/feature_ignore_missing_values branch from 127ca85 to 97a8180 Compare January 5, 2026 17:54
@jessicaxiejw

jessicaxiejw commented Feb 27, 2026

Copy link
Copy Markdown
Contributor Author

@SuperQ Could you take a look at the PR?

@SuperQ SuperQ left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The json param for this is AllowMissingKeys. I think we should name this same. "Ignore missing values would be something like .key: missing_value.

So the feature config should be allow_missing_keys.

@jessicaxiejw

Copy link
Copy Markdown
Contributor Author

@SuperQ I renamed it from allow_missing_keys to allow_missing_key (singular) because it is on the per key basis. Is that OK with you?

Signed-off-by: Jessica Xie <jessicaxie@cohere.com>
@jessicaxiejw
jessicaxiejw force-pushed the jxie/feature_ignore_missing_values branch from 88c1ed3 to 40c0e84 Compare March 2, 2026 14:36
@eenchevlp

Copy link
Copy Markdown
Contributor

@SuperQ any chance to merge this? It will make the exporter a lot more flexible.

@SuperQ SuperQ left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@jessicaxiejw

Copy link
Copy Markdown
Contributor Author

Sorry, I rarely contribute to OSS project. How do I merge this? There is no merge button.

Screenshot 2026-03-28 at 1 00 02 PM

@SuperQ

SuperQ commented Mar 28, 2026

Copy link
Copy Markdown
Contributor

Sorry, was busy at a conference this week. Can merge now.

@SuperQ
SuperQ merged commit 4799a24 into prometheus-community:master Mar 28, 2026
4 checks passed
@eenchevlp eenchevlp mentioned this pull request Aug 12, 2026
eenchevlp added a commit to eenchevlp/json_exporter that referenced this pull request Aug 12, 2026
* [FEATURE] Add allow_missing_key option to metrics prometheus-community#414
* [CHANGE] Update yaml library to go.yaml.in/yaml/v2 prometheus-community#437

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Evgeni Enchev <eenchev@liveperson.com>
ArthurSens pushed a commit that referenced this pull request Aug 13, 2026
* Release v0.8.0

* [FEATURE] Add allow_missing_key option to metrics #414

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Evgeni Enchev <eenchev@liveperson.com>

* Remove non-user-facing yaml library update from CHANGELOG

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Evgeni Enchev <eenchev@liveperson.com>

---------

Signed-off-by: Evgeni Enchev <eenchev@liveperson.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.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

Development

Successfully merging this pull request may close these issues.

3 participants