Skip to content

prometheus_exporter_base -> prometheus#148

Merged
0z13 merged 2 commits intomainfrom
switch-exporter-library
May 22, 2025
Merged

prometheus_exporter_base -> prometheus#148
0z13 merged 2 commits intomainfrom
switch-exporter-library

Conversation

@srhb
Copy link
Copy Markdown
Contributor

@srhb srhb commented May 22, 2025

prometheus_exporter_base -> prometheus

Due to the former being unmaintained and vulnerable, switch the exporter
library.

I opted for this library and not the official prometheus-client crate
because I had trouble figuring out a way to deal with globally available
metrics and didn't want to rewrite the entire thing to thread the state
through faythe.

The whole thing is basically a slight modification to the upstream hyper
example at:

https://github.com/tikv/rust-prometheus/blob/1d3174bf5ddf056dcb0fe59e06cad4ef42ebec68/examples/example_hyper.rs

@srhb
Copy link
Copy Markdown
Contributor Author

srhb commented May 22, 2025

Part of unblocking: https://github.com/DBCDK/faythe/security/dependabot/30

@srhb srhb force-pushed the switch-exporter-library branch from 6ab3d77 to 50a00a6 Compare May 22, 2025 07:28
@srhb
Copy link
Copy Markdown
Contributor Author

srhb commented May 22, 2025

checks are currently failing due to global github actions degradation, https://www.githubstatus.com/

Due to the former being unmaintained and vulnerable, switch the exporter
library.

I opted for this library and not the official prometheus-client crate
because I had trouble figuring out a way to deal with globally available
metrics and didn't want to rewrite the entire thing to thread the state
through faythe.

The whole thing is basically a slight modification to the upstream hyper
example at:

https://github.com/tikv/rust-prometheus/blob/1d3174bf5ddf056dcb0fe59e06cad4ef42ebec68/examples/example_hyper.rs
@srhb srhb force-pushed the switch-exporter-library branch from 50a00a6 to 18b8220 Compare May 22, 2025 10:18
Copy link
Copy Markdown
Contributor

@0z13 0z13 left a comment

Choose a reason for hiding this comment

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

lgtm

@0z13 0z13 merged commit 038e02e into main May 22, 2025
5 checks passed
@srhb srhb deleted the switch-exporter-library branch May 22, 2025 10:24
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