Skip to content

Conversation

cmd-ntrf
Copy link

@cmd-ntrf cmd-ntrf commented Oct 2, 2025

When applying a function to a time series in a query to Prometheus, the Prometheus server returns a data structure without __name__ key. Apart from that aspect, the time series could still be used to create a Metric object.

This PR proposes to set "metric_name" to None when __name__ is missing.

When applying a function to a time series in a query to Prometheus,
the Prometheus server returns a data structure without __name__ key.
Apart from that aspect, the time series could still be used to create
a Metric object.

This PR proposes to set "metric_name" to None when __name__ is missing.
@cmd-ntrf cmd-ntrf changed the title Allow creation of Metric from datastructure without __name__ Allow creation of Metric from data structure without __name__ Oct 2, 2025
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.

1 participant