Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Commit

Permalink
feat: allow changing of prom release name
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickleet committed Dec 24, 2020
1 parent 58d6faf commit a0f2c86
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ download:
rm -rf charts/istio-control
cp -r chartTemplates/ charts
mv downloads/istio/samples/addons/extras/prometheus-operator.yaml charts/istio-prometheus/templates
sed -i .bak 's/ release: istio/ release: {{ .Values.prometheusReleaseName }}/g' charts/istio-prometheus/templates/prometheus-operator.yaml
rm charts/istio-prometheus/templates/prometheus-operator.yaml.bak
curl -s https://grafana.com/api/dashboards/$(WORKLOAD_DASHBOARD)/revisions/$(DASHBOARD_REVISION)/download > charts/istio-dashboards/dashboards/istio-workload-dashboard.json
curl -s https://grafana.com/api/dashboards/$(SERVICE_DASHBOARD)/revisions/$(DASHBOARD_REVISION)/download > charts/istio-dashboards/dashboards/istio-service-dashboard.json
curl -s https://grafana.com/api/dashboards/$(MESH_DASHBOARD)/revisions/$(DASHBOARD_REVISION)/download > charts/istio-dashboards/dashboards/istio-mesh-dashboard.json
Expand Down
1 change: 1 addition & 0 deletions chartTemplates/istio-prometheus/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
prometheusReleaseName: kube-prometheus-stack
4 changes: 2 additions & 2 deletions charts/istio-prometheus/templates/prometheus-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
namespace: istio-system
labels:
monitoring: istio-proxies
release: istio
release: {{ .Values.prometheusReleaseName }}
spec:
selector:
matchExpressions:
Expand Down Expand Up @@ -43,7 +43,7 @@ metadata:
namespace: istio-system
labels:
monitoring: istio-components
release: istio
release: {{ .Values.prometheusReleaseName }}
spec:
jobLabel: istio
targetLabels: [app]
Expand Down
1 change: 1 addition & 0 deletions charts/istio-prometheus/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
prometheusReleaseName: kube-prometheus-stack

0 comments on commit a0f2c86

Please sign in to comment.