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

chore: Add metric type for Prometheus #2833

Merged

Conversation

fregataa
Copy link
Member

@fregataa fregataa commented Sep 12, 2024

Add ai.backend.common.types.PromMetric and ai.backend.common.types.PromMetricGroup.
Doc: Prometheus exposition formats shows the return schema of metric APIs.
This is an example format of metrics.

# HELP metric_name ADDITIONAL-HELP-MESSAGE.
# TYPE metric_name primitive_type
metric_name{label_name=label_value} metric_value # Each PromMetric object creates one line.
metric_name{label_name=label_value} metric_value
...

A PromMetricGroup object creates one metric format and PromMetric object represents each metric value line of metric formats.

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version

@github-actions github-actions bot added comp:common Related to Common component size:M 30~100 LoC labels Sep 12, 2024
Copy link
Member Author

fregataa commented Sep 12, 2024

@fregataa fregataa force-pushed the topic/09-12-chore_add_metric_format_type_for_prometheus branch from 5e6c77b to 263da15 Compare October 15, 2024 10:25
@fregataa fregataa added the skip:changelog Make the action workflow to skip towncrier check label Oct 15, 2024
@fregataa fregataa added this pull request to the merge queue Oct 15, 2024
Merged via the queue into main with commit b70f34f Oct 15, 2024
33 of 34 checks passed
@fregataa fregataa deleted the topic/09-12-chore_add_metric_format_type_for_prometheus branch October 15, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:common Related to Common component size:M 30~100 LoC skip:changelog Make the action workflow to skip towncrier check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants