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 Prometheus build_info metrics #300

Merged
merged 1 commit into from
Jun 16, 2023
Merged

Add Prometheus build_info metrics #300

merged 1 commit into from
Jun 16, 2023

Conversation

rnaveiras
Copy link
Contributor

@rnaveiras rnaveiras commented Jun 15, 2023

theatre_build_info{commit="none",goarch="arm64",goos="linux",goversion="go1.20.5",version="dev"} 1

This is is a best practice with the Prometheus community and will help track versions at runtime.

```
theatre_build_info{commit="none",goarch="arm64",goos="linux",goversion="go1.20.5",version="dev"} 1
```

This is a good practice that should be in all our binaries
@rnaveiras rnaveiras merged commit 57e2fd6 into master Jun 16, 2023
4 checks passed
@rnaveiras rnaveiras deleted the prometheus-info branch June 16, 2023 09:18
rnaveiras added a commit that referenced this pull request Jun 26, 2023
This PR removed this code by mistake
#300
rnaveiras added a commit that referenced this pull request Jun 26, 2023
This pull request restores the code removed by mistake in the
`secretsinjector_webhook`.

Now the metrics are registered again with the `Prometheus.Registry`, and
should be back to be reported.

See details here #300
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