-
Notifications
You must be signed in to change notification settings - Fork 17
Add serviceMonitor for sftpgo #19
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
base: main
Are you sure you want to change the base?
Conversation
with servicemonitor prometheus will be able to discover the metrics exposed on the pod.
|
Hello, I'd be happy to get some feedback, while I can still have my hand into this at work. Best |
|
PING |
|
@bmm-alc, can you solve the merge conflicts? |
| selector: | ||
| matchLabels: | ||
| {{- include "sftpgo.selectorLabels" . | nindent 6 }} |
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.
There's no way to differentiate between the built-in .service and the extra .services.* on labels only.
I think we need to add labels to differentiate them and select only the internal service.
| {{- if .Values.monitoring.enabled }} | ||
| - name: telemetry | ||
| port: 10000 | ||
| targetPort: telemetry | ||
| protocol: TCP | ||
| {{- if semverCompare ">=1.20-0" .Capabilities.KubeVersion.GitVersion }} | ||
| appProtocol: http | ||
| {{- end }} | ||
| {{- end }} |
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.
We should add the same if {{- if .Values.monitoring.enabled }} in the deployment telemetry env vars.
| labels: | ||
| {{- include "sftpgo.labels" . | nindent 4 }} | ||
| {{- with .Values.service.annotations }} | ||
| annotations: | ||
| {{- toYaml . | nindent 4 }} | ||
| {{- end }} |
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.
Missing ServiceMonitor exclusive labels and annotations
@lucasfcnunes I'm sorry but at the moment I don't have the time to properly review and test this change. Also, our CI is currently broken (see #33). Any help would be appreciated. Thank you |
with servicemonitor prometheus will be able to discover the metrics exposed on the pod.