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

Draft fix of prometheus inconsistent label bug #3416

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aabmass
Copy link
Member

@aabmass aabmass commented Aug 24, 2023

No description provided.

@@ -141,6 +141,7 @@ def _receive_metrics(
timeout_millis: float = 10_000,
**kwargs,
) -> None:
print(metrics_data.to_json())
Copy link
Contributor

Choose a reason for hiding this comment

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

Forgotten print statement, shouldn't be in production code

@@ -217,6 +218,7 @@ def _translate_to_prometheus(
metrics.append(metric)

for metric in metrics:
label_keyss = []
Copy link
Contributor

@nstawski nstawski Oct 11, 2023

Choose a reason for hiding this comment

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

I would recommend using a more descriptive name such as labels_keys_list and label_values_list

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.

Prometheus exporter undefined behaviour when not all labels are set
2 participants