added grafana-deployment updates when configmaps are generated

This commit is contained in:
Eduardo Gonzalez
2017-09-14 15:26:45 +02:00
parent 5a253f192b
commit 41972d362c
7 changed files with 243 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: grafana-dashboards
name: grafana-dashboards-0
data:
deployment-dashboard.json: |+
{
@@ -821,7 +821,7 @@ data:
"timezone": "browser",
"title": "Deployment",
"version": 1
},
} ,
"inputs": [
{
"name": "DS_PROMETHEUS",
@@ -1882,7 +1882,7 @@ data:
"timezone": "browser",
"title": "Kubernetes Capacity Planing",
"version": 4
},
} ,
"inputs": [
{
"name": "DS_PROMETHEUS",
@@ -2628,7 +2628,7 @@ data:
"timezone": "",
"title": "Kubernetes Cluster Health",
"version": 12
},
} ,
"inputs": [
{
"name": "DS_PROMETHEUS",
@@ -3537,7 +3537,7 @@ data:
"timezone": "",
"title": "Kubernetes Cluster Status",
"version": 22
},
} ,
"inputs": [
{
"name": "DS_PROMETHEUS",
@@ -4213,7 +4213,7 @@ data:
"timezone": "",
"title": "Kubernetes Control Plane Status",
"version": 11
},
} ,
"inputs": [
{
"name": "DS_PROMETHEUS",
@@ -4660,7 +4660,7 @@ data:
"timezone": "browser",
"title": "Kubernetes Resource Requests",
"version": 2
},
} ,
"inputs": [
{
"name": "DS_PROMETHEUS",
@@ -5565,7 +5565,7 @@ data:
"timezone": "browser",
"title": "Nodes",
"version": 2
},
} ,
"inputs": [
{
"name": "DS_PROMETHEUS",
@@ -6010,7 +6010,7 @@ data:
"timezone": "browser",
"title": "Pods",
"version": 1
},
} ,
"inputs": [
{
"name": "DS_PROMETHEUS",

View File

@@ -43,7 +43,7 @@ spec:
- name: grafana-watcher
image: quay.io/coreos/grafana-watcher:v0.0.8
args:
- '--watch-dir=/var/grafana-dashboards'
- '--watch-dir=/var/grafana-dashboards-0'
- '--grafana-url=http://localhost:3000'
env:
- name: GRAFANA_USER
@@ -64,11 +64,11 @@ spec:
memory: "32Mi"
cpu: "100m"
volumeMounts:
- name: grafana-dashboards
mountPath: /var/grafana-dashboards
- name: grafana-dashboards-0
mountPath: /var/grafana-dashboards-0
volumes:
- name: grafana-storage
emptyDir: {}
- name: grafana-dashboards
- name: grafana-dashboards-0
configMap:
name: grafana-dashboards
name: grafana-dashboards-0