-
Notifications
You must be signed in to change notification settings - Fork 70
ServiceMonitor resource for Prometheus scraping #153
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
Conversation
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @nlamirault,
Thank you this PR! 🔥
Could you add your new options in the parameters list in the template README? And also could you fill in the description for your PR?
Thank again for contributing to Meilisearch ❤️
@alallema I think this PR will be necessary to the adoption of the new experimental feature meilisearch/meilisearch#3523 So what I suggest you to do is:
|
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
Hi @nlamirault, |
Hi @nlamirault, |
matchLabels: | ||
{{- include "meilisearch.selectorLabels" . | nindent 6 }} | ||
endpoints: | ||
- port: http |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tested this myself yet, but I was looking at adding a ServiceMonitor to my deployment, and I think you'd need something like this to support authentication, right?
endpoints:
- bearerTokenSecret:
name: meilisearch-master-key
key: MEILI_MASTER_KEY
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mike-stewart,
You're absolutely right thanks! I'll add it to the PR as well as the flag for activated analytics.
bors merge |
Build succeeded: |
This message is sent automatically Thank you very much for submitting your PR! Did you know that throughout the month of June we’re holding a rafle? |
186: Fix Bug in ServiceMonitor r=brunoocasali a=mike-stewart # Pull Request ## What does this PR do? It appears there might be a bug in #153, as there should not be a dash in front of bearerTokenSecret. This is adding it as a second endpoint, when in fact it should be setting the bearerTokenSecret on the http endpoint. ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Mike Stewart <[email protected]>
186: Fix Bug in ServiceMonitor r=brunoocasali a=mike-stewart # Pull Request ## What does this PR do? It appears there might be a bug in #153, as there should not be a dash in front of bearerTokenSecret. This is adding it as a second endpoint, when in fact it should be setting the bearerTokenSecret on the http endpoint. ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Mike Stewart <[email protected]> Co-authored-by: Bruno Casali <[email protected]>
Pull Request
Related issue
What does this PR do?
Prometheus metrics must be enabled using the
--experimental-enable-metrics
CLI argumentPR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!