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

sidecar: Add pod discovery #192

Merged
merged 1 commit into from
Mar 6, 2021

Conversation

maxbrunet
Copy link
Contributor

@maxbrunet maxbrunet commented Feb 20, 2021

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Add Kubernetes service (and ServiceMonitor) to discover Thanos Sidecar. Expects podLabelSelector.

We also use the kube-prometheus library which can create a Sidecar service per Prometheus, but this means each time a new one is deployed Query needs to be updated. This configuration is meant to be more global, when a Prometheus is deployed in a namespace with this service, it is automatically discovered, no need to update Query.

I think this will help with #132.

Verification

We have been using this configuration in all our clusters without issues for quite some time.

@maxbrunet maxbrunet force-pushed the feature/thanos-sidecar-sd branch 5 times, most recently from 1f9d4c6 to 570ba8b Compare February 20, 2021 04:25
Base automatically changed from master to main March 3, 2021 17:07
Copy link
Member

@kakkoyun kakkoyun left a comment

Choose a reason for hiding this comment

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

This looks good to me. Thanks for your contribution.

We just need to rebase it and we can proceed and merge.

Signed-off-by: Maxime Brunet <[email protected]>
@maxbrunet
Copy link
Contributor Author

@kakkoyun Thank you, rebased!

Copy link
Member

@kakkoyun kakkoyun left a comment

Choose a reason for hiding this comment

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

💯 LGTM

@kakkoyun kakkoyun merged commit 151aa68 into thanos-io:main Mar 6, 2021
@maxbrunet maxbrunet deleted the feature/thanos-sidecar-sd branch March 7, 2021 01:07
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