Skip to content

Commit

Permalink
feat: build dashboard for all the mixins kubeaid supports
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish1099 committed Nov 29, 2024
1 parent a055b06 commit a6864ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build/kube-prometheus/common-template.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -816,4 +816,5 @@ local kp =
(if std.objectHas(vars, 'grafana_ingress_host') then { [name + '-ingress']: kp.ingress[name] for name in std.objectFields(kp.ingress) } else {}) +
(if std.objectHas(vars, 'prometheus_ingress_host') then { [name + '-ingress']: kp.ingress[name] for name in std.objectFields(kp.ingress) } else {}) +
// Rendering prometheusRules object. This is an object compatible with prometheus-operator CRD definition for prometheusRule
{ [o._config.name + '-grafana-dashboards']: o.grafanaDashboards for o in std.filter((function(o) o.grafanaDashboards != null), mixins) } +
{ [o._config.name + '-prometheus-rules']: o.prometheusRules for o in std.filter((function(o) o.prometheusRules != null), mixins) }

0 comments on commit a6864ee

Please sign in to comment.