Compare commits
6 Commits
user-monit
...
user-monit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b00f330b3 | ||
|
|
7bf01de75f | ||
|
|
9687f504e1 | ||
|
|
8e43add4da | ||
|
|
7a01cc94b6 | ||
|
|
01fe8162c3 |
@@ -15,7 +15,7 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.1.0
|
version: 0.1.1
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: Role
|
|
||||||
metadata:
|
|
||||||
name: prometheus-{{ .Values.user }}
|
|
||||||
rules:
|
|
||||||
- apiGroups: [""]
|
|
||||||
resources:
|
|
||||||
- services
|
|
||||||
- endpoints
|
|
||||||
- pods
|
|
||||||
verbs: ["get", "list", "watch"]
|
|
||||||
- apiGroups: [""]
|
|
||||||
resources:
|
|
||||||
- configmaps
|
|
||||||
verbs: ["get"]
|
|
||||||
- apiGroups:
|
|
||||||
- networking.k8s.io
|
|
||||||
resources:
|
|
||||||
- ingresses
|
|
||||||
verbs: ["get", "list", "watch"]
|
|
||||||
@@ -1 +1 @@
|
|||||||
user: user1
|
user: userX # Replace me
|
||||||
@@ -15,7 +15,7 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.2.0-U+1F992
|
version: 0.2.4
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{{- define "alertmanager.alertmanager" }}
|
{{- define "alertmanager.alertmanager" }}
|
||||||
|
---
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: Alertmanager
|
kind: Alertmanager
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "blackboxexporter.cm" }}
|
{{- define "blackboxexporter.cm" }}
|
||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "blackboxexporter.deploy" }}
|
{{- define "blackboxexporter.deploy" }}
|
||||||
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "grafana.dashboardprovider" }}
|
{{- define "grafana.dashboardprovider" }}
|
||||||
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "grafana.datasource" }}
|
{{- define "grafana.datasource" }}
|
||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
type: Opaque
|
type: Opaque
|
||||||
@@ -17,4 +18,7 @@ stringData:
|
|||||||
type: prometheus
|
type: prometheus
|
||||||
url: http://thanos-query.{{ .Values.user }}-monitoring.svc.cluster.local:10902
|
url: http://thanos-query.{{ .Values.user }}-monitoring.svc.cluster.local:10902
|
||||||
version: 1
|
version: 1
|
||||||
|
{{- if .Values.grafana.datasources }}
|
||||||
|
{{- toYaml .Values.grafana.datasources | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "grafana.deploy" }}
|
{{- define "grafana.deploy" }}
|
||||||
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "grafana.ingress" }}
|
{{- define "grafana.ingress" }}
|
||||||
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "grafana.rolebinding" }}
|
{{- define "grafana.rolebinding" }}
|
||||||
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "grafana.sa" }}
|
{{- define "grafana.sa" }}
|
||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "grafana.svc" }}
|
{{- define "grafana.svc" }}
|
||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "prometheus.ingress" }}
|
{{- define "prometheus.ingress" }}
|
||||||
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "prometheus.role" }}
|
{{- define "prometheus.role" }}
|
||||||
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: Role
|
kind: Role
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "prometheus.rolebinding" }}
|
{{- define "prometheus.rolebinding" }}
|
||||||
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "prometheus.sa" }}
|
{{- define "prometheus.sa" }}
|
||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "prometheus.prometheus" }}
|
{{- define "prometheus.prometheus" }}
|
||||||
|
---
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: Prometheus
|
kind: Prometheus
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "pushgateway.deploy" }}
|
{{- define "pushgateway.deploy" }}
|
||||||
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "pushgateway.servicemonitor" }}
|
{{- define "pushgateway.servicemonitor" }}
|
||||||
|
---
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ServiceMonitor
|
kind: ServiceMonitor
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "pushgateway.svc" }}
|
{{- define "pushgateway.svc" }}
|
||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "query.deploy" }}
|
{{- define "query.deploy" }}
|
||||||
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "query.ingress" }}
|
{{- define "query.ingress" }}
|
||||||
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "query.svc" }}
|
{{- define "query.svc" }}
|
||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "ruler.ingress" }}
|
{{- define "ruler.ingress" }}
|
||||||
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
{{- define "ruler.ruler" }}
|
{{- define "ruler.ruler" }}
|
||||||
|
---
|
||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: ThanosRuler
|
kind: ThanosRuler
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -1,25 +1,31 @@
|
|||||||
user: user1
|
user: userX # Replace me
|
||||||
|
|
||||||
# alertmanager
|
# alertmanager
|
||||||
alertmanager:
|
alertmanager:
|
||||||
enabled: true
|
enabled: false
|
||||||
|
|
||||||
# grafana
|
# grafana
|
||||||
grafana:
|
grafana:
|
||||||
|
datasources:
|
||||||
|
- name: prometheus
|
||||||
|
access: proxy
|
||||||
|
editable: false
|
||||||
|
type: prometheus
|
||||||
|
url: http://prometheus-operated.user4-monitoring.svc.cluster.local:9090
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
# prometheus
|
# prometheus
|
||||||
prometheus:
|
prometheus:
|
||||||
enabled: true
|
enabled: false
|
||||||
|
|
||||||
# pushgeitwey
|
# pushgateway
|
||||||
pushgateway:
|
pushgateway:
|
||||||
enabled: true
|
enabled: false
|
||||||
|
|
||||||
# thanos-ruler
|
# thanos-ruler
|
||||||
ruler:
|
ruler:
|
||||||
enabled: true
|
enabled: false
|
||||||
|
|
||||||
# thanos-query
|
# thanos-query
|
||||||
query:
|
query:
|
||||||
enabled: true
|
enabled: false
|
||||||
Reference in New Issue
Block a user