Skip to content

Conversation

@MartinquaXD
Copy link
Contributor

@MartinquaXD MartinquaXD commented Oct 8, 2025

Description

Currently the playground's grafana container is only there to support tempo but you can't actually test any new metrics or queries with it. This PR makes it so that grafana actually gets access to all the metrics.

Changes

  • exposes separate metrics ports on containers where it's necessary
  • adds a prometheus container that scrapes all the services pods
  • configures prometheus as the default data source in grafana

How to test

I manually checked that grafana gets access to metrics from all the different pods and I built a new dashboard with it.

Screenshot 2025-10-08 at 09 45 30

As a follow up we could consider somehow replicating our actual dashboards but that goes beyond the scope of the PR (and probably isn't that helpful anyway because the metrics reported by a locally running instance are very far from what our actual deployments would look like).

@MartinquaXD MartinquaXD requested a review from a team as a code owner October 8, 2025 09:46
ports:
- 8080:80
- 8080:80 # API
- 9586:9586 # metrics
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the port need to be exposed? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the orderbook and autopilot expose the metrics on a separate port. In the driver and baseline solver we use the one port that also handles the regular API requests. 😅

Copy link
Contributor

@jmg-duarte jmg-duarte left a comment

Choose a reason for hiding this comment

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

❤️

@MartinquaXD MartinquaXD enabled auto-merge (squash) October 9, 2025 06:09
@MartinquaXD MartinquaXD merged commit 663311f into main Oct 9, 2025
16 of 17 checks passed
@MartinquaXD MartinquaXD deleted the add-prometheus-to-playground branch October 9, 2025 06:21
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants