-
Notifications
You must be signed in to change notification settings - Fork 73
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
Add ServiceMonitor in helm chart #97
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: enrico <[email protected]>
Signed-off-by: enrico <[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.
This depends on https://longhorn.io/docs/1.4.0/monitoring/prometheus-and-grafana-setup/#install-prometheus-operator, but we don't actually enforce users to use this stack. Don't feel to make this part of the volume good for now until we have an opininated builtin integration for monitoring.
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.
metrics.serviceMonitor.enable
seems specific for service monitor, so it should is acceptable.
cc @longhorn/qa Can you help with the testing? |
Verified if
|
Hi, any update on this? Can you merge it? |
Hey, I was about to deploy Longhorn in a new cluster and set up monitoring for it. |
See if we can make this part of the following release. |
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.
LGTM
@yangchiu could you please verify that Prometheus is able to fetch the metrics using the serviceMonitor? Instruction is at https://longhorn.io/docs/1.4.2/monitoring/integrating-with-rancher-monitoring/
|
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.
Oh wait. This is not the correct repo. Please create PR into https://github.com/longhorn/longhorn/tree/master/chart instead @enrico9034
Done this is the PR longhorn/longhorn#6157 |
would this change still work when NetworkPolicies are enabled? But the connection is failing, as the available NetworkPolicies would block this request. |
Many installations require specific labels/annotations/namespace for serviceMonitor and other prometheus stack objects. Would be great to have those configurable like: metrics:
serviceMonitor:
enabled: true
additional_labels: {} |
To ensure you can create the service monitor without having to deploy it manually after installation, I added a values metrics.serviceMonitor.enabled. The default values is false, but if set to true it creates the service monitor according to the documentation.