-
Notifications
You must be signed in to change notification settings - Fork 71
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
0049057
Add: ServiceMonitor resource for Prometheus scraping
nlamirault 91118bb
Update: bump chart version
nlamirault 75ab5ff
Fix: typo
nlamirault f85344e
Fix: typo
nlamirault 94d9f5d
Merge branch 'main' into feat/metrics
nlamirault 11c0957
Update: bump chart version
nlamirault 6e25723
Merge branch 'main' into feat/metrics
nlamirault f3b5b07
Fix: parameters
nlamirault 0763f26
Fix: typo
nlamirault 893d1ce
Fix: typo
nlamirault 9276b1e
Fix: typo
nlamirault 1dd2e8d
Update: bump patch version
nlamirault d43d15e
Merge branch 'main' into feat/metrics
alallema 9969af1
Merge branch 'main' into feat/metrics
alallema 4c359e7
Update Chart.yaml
alallema bf67647
Merge branch 'main' into feat/metrics
alallema 45f8cac
Update due to update branch
alallema 74cb1e2
Add bearerTokenSecret to ServiceMonitor
alallema e6110d4
Add env variable to enbled analytics in Meilisearch if ServiceMonitor…
alallema 7935e6d
Remove line added by mistake
alallema 348a9d4
Rephrase value definition
alallema 073d0bb
trailing space
alallema File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| {{- if.Values.serviceMonitor.enabled -}} | ||
| apiVersion: monitoring.coreos.com/v1 | ||
| kind: ServiceMonitor | ||
| metadata: | ||
| name: {{ include "meilisearch.fullname" . }} | ||
| labels: | ||
| {{- include "meilisearch.labels" . | nindent 4 }} | ||
| {{- with .Values.serviceMonitor.additionalLabels }} | ||
| {{- toYaml . | nindent 4 }} | ||
| {{- end }} | ||
| spec: | ||
| jobLabel: {{ .Release.Name }} | ||
| namespaceSelector: | ||
| matchNames: | ||
| - {{ .Release.Namespace }} | ||
| selector: | ||
| matchLabels: | ||
| {{- include "meilisearch.selectorLabels" . | nindent 6 }} | ||
| endpoints: | ||
| - port: http | ||
| path: {{ .Values.serviceMonitor.telemetryPath }} | ||
| {{- with .Values.serviceMonitor.interval }} | ||
| interval: {{ . }} | ||
| {{- end }} | ||
| {{- with .Values.serviceMonitor.scrapeTimeout }} | ||
| scrapeTimeout: {{ . }} | ||
| {{- end }} | ||
| {{- if .Values.serviceMonitor.metricRelabelings }} | ||
| metricRelabelings: | ||
| {{ toYaml .Values.serviceMonitor.metricRelabelings | indent 4 }} | ||
| {{- end }} | ||
| {{- if .Values.serviceMonitor.relabelings }} | ||
| relabelings: | ||
| {{ toYaml .Values.serviceMonitor.relabelings | nindent 4 }} | ||
| {{- end }} | ||
| {{- if .Values.serviceMonitor.targetLabels }} | ||
| targetLabels: | ||
| {{- range .Values.serviceMonitor.targetLabels }} | ||
| - {{ . }} | ||
| {{- end }} | ||
| {{- end }} | ||
| {{- end }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?
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.