feat: add grafana dashboard to kubezero-mq for rabbitmq

This commit is contained in:
Stefan Reimer 2021-05-05 19:06:12 +02:00
parent 27147fc62c
commit 81428a29df
6 changed files with 102 additions and 1 deletions

View File

@ -0,0 +1,8 @@
configmap: grafana-dashboards-rabbitmq
condition: '.Values.rabbitmq.metrics.enabled'
gzip: true
# folder:
dashboards:
- name: rabbitmq
url: https://grafana.com/api/dashboards/10991/revisions/11/download
tags: ['RabbitMQ']

View File

@ -0,0 +1,35 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: nats
namespace: argocd
spec:
project: default
source:
repoURL: 'https://github.com/zero-down-time/kubezero'
path: charts/kubezero-mq
targetRevision: master
helm:
values: |
nats:
enabled: true
nats:
jetstream:
memStorage:
enabled: true
size: 128Mi
fileStorage:
enabled: true
storageClassName: ebs-sc-gp3-xfs
exporter:
serviceMonitor:
enabled: true
destination:
server: 'https://kubernetes.default.svc'
namespace: nats
syncPolicy:
automated:
prune: true
syncOptions:
- CreateNamespace=true

View File

@ -0,0 +1,44 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: rabbitmq
namespace: argocd
spec:
project: default
source:
repoURL: 'https://github.com/zero-down-time/kubezero'
path: charts/kubezero-mq
targetRevision: master
helm:
values: |
rabbitmq:
enabled: true
replicaCount: 3
hosts:
- mq.example.com
auth:
password: blablabla
erlangCookie: changemeplease
tls:
enabled: true
# Some custom plugin to be installed at boot
communityPlugins: "https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/3.8.9/rabbitmq_delayed_message_exchange-3.8.9-0199d11c.ez"
extraPlugins: "rabbitmq_delayed_message_exchange"
# Enabled metrics
metrics:
enabled: true
serviceMonitor:
enabled: true
destination:
server: 'https://kubernetes.default.svc'
namespace: rabbitmq
syncPolicy:
automated:
prune: true
syncOptions:
- CreateNamespace=true

File diff suppressed because one or more lines are too long

View File

@ -11,4 +11,5 @@ cp -r k8s/helm/charts/nats/* charts/nats/
rm -rf k8s rm -rf k8s
# Fetch dashboards # Fetch dashboards
../kubezero-metrics/sync_grafana_dashboards.py dashboards.yaml templates/nats/grafana-dashboards.yaml ../kubezero-metrics/sync_grafana_dashboards.py dashboards-nats.yaml templates/nats/grafana-dashboards.yaml
../kubezero-metrics/sync_grafana_dashboards.py dashboards-rabbitmq.yaml templates/rabbitmq/grafana-dashboards.yaml