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

Add build_info_metric with git_version and build_tag for compute_ctl #5961

Closed
wants to merge 1 commit into from

Conversation

lubennikovaav
Copy link
Contributor

It would be very convenient to have this information in grafana to check which versions of compute are active right now.

@lubennikovaav lubennikovaav requested review from a team as code owners November 28, 2023 17:27
@lubennikovaav lubennikovaav requested review from mtyazici and bojanserafimov and removed request for a team November 28, 2023 17:27
Copy link

2394 tests run: 2299 passed, 0 failed, 95 skipped (full report)


Flaky tests (1)

Postgres 16

  • test_pageserver_lsn_wait_error_safekeeper_stop: debug

Code coverage (full report)

  • functions: 54.4% (9157 of 16844 functions)
  • lines: 82.0% (53357 of 65046 lines)

The comment gets automatically updated with the latest test results
a769a43 at 2023-11-28T18:48:49.419Z :recycle:

@@ -51,6 +52,20 @@ async fn routes(req: Request<Body>, compute: &Arc<ComputeNode>) -> Response<Body
Response::new(Body::from(serde_json::to_string(&status_response).unwrap()))
}

// prometheus metrics
(&Method::GET, "/metrics") => {
Copy link
Contributor

Choose a reason for hiding this comment

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

do you expect to scrape these metrics by Prometheus?

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, that's the plan

@lubennikovaav
Copy link
Contributor Author

I found that we already have build_tag information in console db, so no need to expose this as a metric.

https://neonprod.grafana.net/goto/Ath_4JNIR?orgId=1

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