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

metrics: spicedb_environment_info from telemetry #2093

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

jzelinskie
Copy link
Member

This change reuses the logic for spicedb_telemetry_info for a metric registered to the default Prometheus registry.

Fixes #2086

This change reuses the logic for
spicedb_telemetry_info for a metric registered to
the default Prometheus registry.
@jzelinskie jzelinskie requested a review from a team October 16, 2024 18:59
@github-actions github-actions bot added the area/CLI Affects the command line label Oct 16, 2024
@jzelinskie jzelinskie added area/observability Affects telemetry data and removed area/CLI Affects the command line labels Oct 16, 2024
pkg/cmd/server/server.go Outdated Show resolved Hide resolved
@@ -57,9 +50,42 @@ func RegisterTelemetryCollector(datastoreEngine string, ds datastore.Datastore)
"arch": runtime.GOARCH,
"go": buildInfo.GoVersion,
Copy link
Contributor

Choose a reason for hiding this comment

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

we are already providing go version through the standard Go extended runtime metrics. It's available through go_info

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, this is an artifact of reusing the same metric across telemetry and non-telemetry usage. Should I make it optional or just keep it?

Copy link
Contributor

Choose a reason for hiding this comment

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

it's ok, I don't think it hurts, just wanted to call it out

Co-authored-by: Víctor Roldán Betancort <vroldanbet@users.noreply.github.com>
@github-actions github-actions bot added the area/CLI Affects the command line label Oct 17, 2024
@vroldanbet vroldanbet enabled auto-merge October 18, 2024 09:46
@vroldanbet vroldanbet added this pull request to the merge queue Oct 18, 2024
Merged via the queue into authzed:main with commit 4262bfd Oct 18, 2024
22 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 18, 2024
@jzelinskie jzelinskie deleted the spicedbinfo branch October 18, 2024 19:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/CLI Affects the command line area/observability Affects telemetry data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce spicedb_info metric
2 participants