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

Generate prometheus metrics for flask and add metrics endpoint #399

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

Conversation

plars
Copy link
Collaborator

@plars plars commented Nov 9, 2024

Description

Adds a /metrics route for prometheus to pull lots of data about what flask is doing, and also a few testflinger things like job submissions. This can be extended if we want to add more things.

Resolved issues

N/A

Documentation

N/A (the more interesting bits will come when we hook it up to grafana)

Web service API changes

Technically, yes it adds /metrics but it's only meant to be consumed by prometheus and is a well-known interface for anything that uses prometheus metrics. It's not a Testflinger API

Tests

I've hooked this up to a local prometheus/grafana instance and was able to get data from it

@plars plars requested a review from a team November 9, 2024 13:34
Copy link
Contributor

@nadzyah nadzyah left a comment

Choose a reason for hiding this comment

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

A pretty simple setup, nothing to complain about. +1 from me

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.

2 participants