-
Notifications
You must be signed in to change notification settings - Fork 7
feat: allow deploying dashboard and alerts on existing instances #62
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
8acd058
to
4cd9c53
Compare
47bb49f
to
dd9620a
Compare
@aslafy-z thanks very much for your contribution. I'll be on PTO until Mon 13th, and my colleague who is co-maintaining this with me is away as well. Would it be ok with you if I got to this when I return? |
Signed-off-by: Zadkiel AHARONIAN <hello@zadkiel.fr>
dd9620a
to
651a327
Compare
@dannykopping sure, enjoy your pto! |
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.
Overall LGTM! Thanks for a great contribution @aslafy-z
Left a few notes
coder-observability/templates/dashboards/_dashboards_prebuilds.json.tpl
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,34 @@ | |||
{{- if and .Values.global.alerts.enabled (eq .Values.global.alerts.format "prometheusrule") -}} |
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.
Have you tested this out with Prometheus disabled and observed everything working as expected?
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 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.
They don't necessarily have to have been tested in production, but the code must have at least been validated manually using Prom Operator for us to accept the change.
configMap: metrics-alerts | ||
configMap: coder-metrics-alerts | ||
readonly: true | ||
optional: true |
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.
Should the other configmaps also be optional?
coder-observability/templates/dashboards/_dashboards_coderd.json.tpl
Outdated
Show resolved
Hide resolved
coder-observability/templates/dashboards/_dashboards_provisionerd.json.tpl
Outdated
Show resolved
Hide resolved
coder-observability/templates/dashboards/_dashboards_workspace_detail.json.tpl
Outdated
Show resolved
Hide resolved
coder-observability/templates/dashboards/_dashboards_workspaces.json.tpl
Outdated
Show resolved
Hide resolved
Tracked with coder#63
Co-authored-by: Danny Kopping <dannykopping@gmail.com>
coder-observability/templates/dashboards/configmap-dashboards-prebuilds.yaml
Outdated
Show resolved
Hide resolved
coder-observability/templates/dashboards/configmap-dashboards-provisionerd.yaml
Outdated
Show resolved
Hide resolved
coder-observability/templates/dashboards/configmap-dashboards-status.yaml
Outdated
Show resolved
Hide resolved
coder-observability/templates/dashboards/configmap-dashboards-workspace_detail.yaml
Outdated
Show resolved
Hide resolved
coder-observability/templates/dashboards/configmap-dashboards-workspaces.yaml
Outdated
Show resolved
Hide resolved
coder-observability/templates/dashboards/configmap-dashboards-coderd.yaml
Outdated
Show resolved
Hide resolved
…ds.labels' Co-authored-by: Danny Kopping <dannykopping@gmail.com>
Signed-off-by: Danny Kopping <danny@coder.com>
This PR includes several changes to allow the use of this Helm chart with existing infrastructure components such as Prometheus Operator and Grafana.
global.alerts.enabled
(new value): enable/disable deployment of alertsglobal.alerts.kind
(new value): alerts container resource (configmap
orprometheusrule
) (Prometheus Operator compatibility)global.dashboards.enabled
(new value): enable/disable deployment of dashboardsglobal.dashboards.labels
(new value): allow to set dashboard configmaps a label (Grafana Sidecar compatibility)runbookViewer.enabled
(new value): enable/disable deployment of the runbook viewergrafana-agent
is enabledCoder
and Grafana uid(posponed Make Grafana dashboards' UIDs consistent #63) bycoder-
It does not fix #31 but helps people that only want to deploy dashboards and alerts for example.
This PR was NOT tested in real world conditions.