Skip to content

[Prometheus] Added dynamic_<dataset|namespace> settings to prometheus datasets #10592

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

Merged
merged 7 commits into from
Oct 8, 2024
Merged

[Prometheus] Added dynamic_<dataset|namespace> settings to prometheus datasets #10592

merged 7 commits into from
Oct 8, 2024

Conversation

Alphayeeeet
Copy link
Contributor

@Alphayeeeet Alphayeeeet commented Jul 25, 2024

Please label as Enhancement

This PR allows using prometheus datasets as a generic metric datasets in e.g. Kubernetes environments, as it adds the permissions to write to metrics--. This allows the configuration of annotation based rerouting in ingest pipelines like it is used in kubernetes.container_logs.

If needed, we can add a default rerouting mechanism, based on the kubernetes annotations like it is already provided in kubernetes.container_logs.

If necessary, we can add a generic metric dataset with this setting to the Kubernetes integration instead of using the Prometheus package for that.

@Alphayeeeet Alphayeeeet requested a review from a team as a code owner July 25, 2024 07:59
@andrewkroh andrewkroh added Integration:prometheus Prometheus Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] labels Jul 25, 2024
@Alphayeeeet
Copy link
Contributor Author

@andrewkroh or anyone else: Could you please run the CI tests? Thank you

@andrewkroh
Copy link
Member

/test

@andrewkroh andrewkroh added the enhancement New feature or request label Aug 19, 2024
@Alphayeeeet
Copy link
Contributor Author

@andrewkroh Could you please run the CI again? Also is there anyone from elastic-obs-infra-obs I can tag, that may review this PR (as it is open quite a while now and only introduces a small quality of life improvement)?

@andrewkroh
Copy link
Member

/test

@Alphayeeeet
Copy link
Contributor Author

Kindly asking for review, because this PR is open quite a while now. @elastic/obs-infraobs-integrations

@Alphayeeeet
Copy link
Contributor Author

@muthu-mps Im just tagging you as you reviewed my other PR. Could you review this one aswell or is this the reponsibility of a different member of infraobs-integrations? Thank you in advance

@muthu-mps
Copy link
Contributor

@muthu-mps Im just tagging you as you reviewed my other PR. Could you review this one aswell or is this the reponsibility of a different member of infraobs-integrations? Thank you in advance

Thanks @Alphayeeeet. I am tagging @ishleenk17 to take a look into this PR.

@Alphayeeeet
Copy link
Contributor Author

Hi @ishleenk17 just tagging you again to remind for this PR. We are currently blocked in our internal implementation by the rerouting feature. Thank you

@Alphayeeeet
Copy link
Contributor Author

@ishleenk17 If this change could also be useful for the other datasets, I can implement them aswell. But in our currently used structure, only the collector is used as we reroute based on Kubernetes annotations (like already possible with the kubernetes.container_logs dataset of the Kubernetes integration).

@Alphayeeeet Alphayeeeet requested a review from a team as a code owner September 10, 2024 12:20
@andrewkroh andrewkroh added the Team:Cloudnative-Monitoring Cloud Native Monitoring team [elastic/obs-cloudnative-monitoring] label Sep 10, 2024
@Alphayeeeet Alphayeeeet changed the title [Prometheus] Added dynamic_<dataset|namespace> settings to collector dataset [Prometheus] Added dynamic_<dataset|namespace> settings to prometheus datasets Sep 11, 2024
@Alphayeeeet
Copy link
Contributor Author

@ishleenk17 @tetianakravchenko @MichaelKatsoulis any updates on this PR by now?

@ishleenk17
Copy link
Member

/test

@ishleenk17
Copy link
Member

@tetianakravchenko : Please check from remote write perspective.
Collector looks good.

@elasticmachine
Copy link

💚 Build Succeeded

History

Copy link

@Alphayeeeet
Copy link
Contributor Author

@ishleenk17 & @tetianakravchenko Could you please review and approve the PR if possible? Still waiting for this change and we are still blocked in our metrics implementation...

@ishleenk17
Copy link
Member

@elastic/obs-ds-hosted-services : Please check this.

@Alphayeeeet
Copy link
Contributor Author

@tetianakravchenko any updates on this PR?

@ishleenk17
Copy link
Member

@tetianakravchenko any updates on this PR?

You have all the needed approvals. We can go ahead and merge it now.

@ishleenk17 ishleenk17 merged commit cb3c5a9 into elastic:main Oct 8, 2024
5 checks passed
@elastic-vault-github-plugin-prod

Package prometheus - 1.19.0 containing this change is available at https://epr.elastic.co/search?package=prometheus

@Alphayeeeet
Copy link
Contributor Author

@ishleenk17 Thanks. unfortunately the auto merge did not work, and im not permitted to merge in general. Thank you anyway

@Alphayeeeet Alphayeeeet deleted the prometheus-add-reroute-permissions branch December 4, 2024 09:32
harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 4, 2025
… datasets (elastic#10592)

* Added dynamic_<dataset|namespace> settings to collector dataset

* Added PR url

* Corrected comment in manifest.yml

* Added rerouting permissions for remote-write/query datasets and changed changelog message
harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 5, 2025
… datasets (elastic#10592)

* Added dynamic_<dataset|namespace> settings to collector dataset

* Added PR url

* Corrected comment in manifest.yml

* Added rerouting permissions for remote-write/query datasets and changed changelog message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Integration:prometheus Prometheus Team:Cloudnative-Monitoring Cloud Native Monitoring team [elastic/obs-cloudnative-monitoring] Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants