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

[extension/prometheusapiserverextension] feat: implement Prometheus API extension #32646

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

gracewehner
Copy link
Contributor

Description:
Add Prometheus API as an extension for debugging purposes to be able to see the targets, config, and service discovery for what the prometheus receiver is scraping. This uses the Prometheus API packages in order to duplicate less code. It follows the same design to host the server as the Prometheus UI web handler.

Link to tracking Issue:
Issue: open-telemetry/wg-prometheus#63
Relevant PR discussions:

Testing:
Ran an otelcollector with prometheusreceiver and extension.
Added tests to ensure all expected paths in the API are working and all go routines are cleaned up

Documentation:
Added to READMEs for extension and prometheusreceiver

@gracewehner
Copy link
Contributor Author

Thanks @Aneurysm9 and @dashpole, I have made the changes we discussed. Please let me know if I should revert this back to all being inside the prometheus receiver.

This PR is also dependent on prometheus/prometheus#13932 to be merged first.

@dashpole
Copy link
Contributor

dashpole commented May 8, 2024

Please let me know if I should revert this back to all being inside the prometheus receiver.

I think that is what we had decided in the last meeting, right?

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label May 23, 2024
@dashpole dashpole removed the Stale label May 23, 2024
@dashpole
Copy link
Contributor

Looks like the promethues PR linked above was merged. Do we need to wait for a release of prometheus/prometheus?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
receiver/prometheus Prometheus receiver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants