feat: add grafana dashboard to kubezero-mq for rabbitmq
This commit is contained in:
parent
27147fc62c
commit
81428a29df
8
charts/kubezero-mq/dashboards-rabbitmq.yaml
Normal file
8
charts/kubezero-mq/dashboards-rabbitmq.yaml
Normal 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']
|
35
charts/kubezero-mq/example-nats-argocd.yaml
Normal file
35
charts/kubezero-mq/example-nats-argocd.yaml
Normal 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
|
44
charts/kubezero-mq/example-rabbitmq-argocd.yaml
Normal file
44
charts/kubezero-mq/example-rabbitmq-argocd.yaml
Normal 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
@ -11,4 +11,5 @@ cp -r k8s/helm/charts/nats/* charts/nats/
|
||||
rm -rf k8s
|
||||
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user