Skip to content

Commit

Permalink
all good
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha <[email protected]>
  • Loading branch information
ArnobKumarSaha committed Feb 14, 2024
1 parent 0a51176 commit 2d063eb
Show file tree
Hide file tree
Showing 3 changed files with 182 additions and 179 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- $shared := and (eq .Values.app.name "") (eq .Values.app.namespace "") -}}
{{- $alerts := (eq $.Values.dashboard.alerts true) -}}
{
"annotations": {
"list": [
Expand Down Expand Up @@ -15275,7 +15276,7 @@
{
"expr": "sum(\n (rabbitmq_raft_log_last_written_index * on(instance, job) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$app\", namespace=\"$namespace\"}) - \n (rabbitmq_raft_log_snapshot_index * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$app\", namespace=\"$namespace\"})\n) by(queue, rabbitmq_node)",
"hide": false,
"legendFormat": "{{rabbitmq_node}} {{queue}}",
"legendFormat": {{ `"{{rabbitmq_node}} {{queue}}"` }},
"refId": "A"
}
],
Expand Down Expand Up @@ -16419,7 +16420,7 @@
{
"expr": "sum(\n (rabbitmq_raft_log_last_written_index * on(instance, job) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$app\", namespace=\"$namespace\"}) - \n (rabbitmq_raft_log_snapshot_index * on(instance) group_left(rabbitmq_cluster, rabbitmq_node) rabbitmq_identity_info{rabbitmq_cluster=\"$app\", namespace=\"$namespace\"})\n) by(queue, rabbitmq_node)",
"hide": false,
"legendFormat": "{{rabbitmq_node}} {{queue}}",
"legendFormat": {{ `"{{rabbitmq_node}} {{queue}}"` }},
"refId": "A"
}
],
Expand Down Expand Up @@ -17930,8 +17931,8 @@
{
"current": {
"selected": false,
"text": "default",
"value": "default"
"text": "Prometheus",
"value": "Prometheus"
},
"description": null,
"error": null,
Expand All @@ -17947,16 +17948,17 @@
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
}
{{- if not $alerts }}
,
{
"allValue": null,
"allValue": "\".+\"",
"current": {
"selected": false,
"text": "rabbit",
"value": "rabbit"
"text": "demo",
"value": "demo"
},
"datasource": "${datasource}",
"definition": "label_values(kube_namespace_created,namespace)",
"description": null,
"error": null,
"hide": 0,
Expand All @@ -17965,60 +17967,61 @@
"multi": false,
"name": "namespace",
"options": [],
{{- if $shared }}
"query": {
{{- if $shared }}
"query": {
"query": "label_values(kube_namespace_created,namespace)",
"refId": "Prometheus-namespace-Variable-Query"
},
"type": "query",
{{- else }}
"query": {{ $.Values.app.namespace | quote }},
"type": "constant",
{{- end }}
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
"type": "query",
{{- else }}
"query": {{ $.Values.app.namespace | quote }},
"type": "constant",
{{- end }}
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"useTags": false
},
{
"allValue": null,
"current": {
"selected": false,
"text": "rabbit-dev",
"value": "rabbit-dev"
"text": "mg4",
"value": "mg4"
},
"datasource": "${datasource}",
"definition": "label_values(rabbitmq_identity_info{namespace=\"$namespace\"}, rabbitmq_cluster)",
"description": null,
"error": null,
"hide": 0,
"includeAll": false,
"label": null,
"label": "RabbitMQ",
"multi": false,
"name": "app",
"options": [],
{{- if $shared }}
"query": "label_values(rabbitmq_identity_info{namespace=\"$namespace\"}, rabbitmq_cluster)",
"type": "query",
{{- else }}
"query": {{ $.Values.app.name | quote }},
"type": "constant",
{{- end }}
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
{{- if $shared }}
"query": {
"query": "label_values(kubedb_com_rabbitmq_status_phase{namespace=~\"$namespace\"},app)",
"refId": "Prometheus-app-Variable-Query"
},
"type": "query",
{{- else }}
"query": {{ $.Values.app.name | quote }},
"type": "constant",
{{- end }}
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"useTags": false
}
{{- end }}
]
},
"time": {
Expand Down
109 changes: 54 additions & 55 deletions charts/kubedb-grafana-dashboards/dashboards/rabbitmq/rabbitmq-pod.json
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@
"exemplar": true,
"expr": "rabbitmq_queue_messages_ram_bytes{pod=~\"$pod\"}",
"interval": "",
"legendFormat": {{ `"{{pod}}"` }},,
"legendFormat": {{ `"{{pod}}"` }},
"refId": "A"
}
],
Expand Down Expand Up @@ -577,7 +577,7 @@
"expr": "rabbitmq_queue_messages_persistent{pod=~\"$pod\"}",
"instant": false,
"interval": "",
"legendFormat": {{ `"{{pod}}"` }},,
"legendFormat": {{ `"{{pod}}"` }},
"refId": "A"
}
],
Expand Down Expand Up @@ -773,7 +773,7 @@
"exemplar": true,
"expr": "rate(rabbitmq_erlang_gc_reclaimed_bytes_total{pod=~\"$pod\"}[5m])",
"interval": "",
"legendFormat": {{ `"{{pod}}"` }},,
"legendFormat": {{ `"{{pod}}"` }},
"refId": "A"
}
],
Expand Down Expand Up @@ -1054,7 +1054,7 @@
"format": "time_series",
"instant": false,
"intervalFactor": 1,
"legendFormat": {{ `"{{rabbitmq_node}}"` }},,
"legendFormat": {{ `"{{rabbitmq_node}}"` }},
"refId": "A"
}
],
Expand Down Expand Up @@ -1412,14 +1412,13 @@
"type": "datasource"
},
{
"allValue": "\".+\"",
"allValue": null,
"current": {
"selected": false,
"text": "rabbit",
"value": "rabbit"
"selected": true,
"text": "demo",
"value": "demo"
},
"datasource": "${datasource}",
"definition": "label_values(kube_namespace_created,namespace)",
"description": null,
"error": null,
"hide": 0,
Expand All @@ -1428,35 +1427,33 @@
"multi": false,
"name": "namespace",
"options": [],
{{- if $shared }}
"query": {
{{- if $shared }}
"query": {
"query": "label_values(kube_namespace_created,namespace)",
"refId": "Prometheus-namespace-Variable-Query"
},
"type": "query",
{{- else }}
"query": {{ $.Values.app.namespace | quote }},
"type": "constant",
{{- end }}
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
"type": "query",
{{- else }}
"query": {{ $.Values.app.namespace | quote }},
"type": "constant",
{{- end }}
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"useTags": false
},
{
"allValue": null,
"current": {
"selected": false,
"text": "rabbit-dev",
"value": "rabbit-dev"
"text": "mg-rs",
"value": "mg-rs"
},
"datasource": "${datasource}",
"definition": "label_values(kubedb_com_rabbitmq_status_phase{namespace=~\"$namespace\"},app)",
"description": null,
"error": null,
"hide": 0,
Expand All @@ -1465,59 +1462,61 @@
"multi": false,
"name": "app",
"options": [],
{{- if $shared }}
"query": "label_values(rabbitmq_identity_info{namespace=\"$namespace\"}, rabbitmq_cluster)",
"type": "query",
{{- else }}
"query": {{ $.Values.app.name | quote }},
"type": "constant",
{{- end }}
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
{{- if $shared }}
"query": {
"query": "label_values(rabbitmq_build_info{namespace=~\"$namespace\",pod=~\"${app}-.*\"},pod)",
"refId": "Prometheus-app-Variable-Query"
},
"type": "query",
{{- else }}
"query": {{ $.Values.app.name | quote }},
"type": "constant",
{{- end }}
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tagsQuery": "",
"useTags": false
},
{
"allFormat": "glob",
"allValue": null,
"current": {
"selected": false,
"text": "rabbit-dev-0",
"value": "rabbit-dev-0"
"selected": true,
"text": "mg-rs-0",
"value": "mg-rs-0"
},
"datasource": "${datasource}",
"definition": "label_values(rabbitmq_build_info{namespace=~\"$namespace\",pod=~\"${app}-.*\"},pod)",
"definition": "",
"description": null,
"error": null,
"hide": 0,
"includeAll": false,
"label": "Pod Name",
"label": "Pod",
"multi": false,
"multiFormat": "glob",
"name": "pod",
"options": [],
"query": {
"query": "label_values(rabbitmq_build_info{namespace=~\"$namespace\",pod=~\"${app}-.*\"},pod)",
"query": "label_values(rabbitmq_identity_info{namespace=~\"$namespace\",service=\"${app}-stats\"}, pod)",
"refId": "Prometheus-pod-Variable-Query"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tags": [],
"tagValuesQuery": null,
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "2024-02-12T04:59:22.543Z",
"to": "2024-02-12T05:59:22.543Z"
"from": "now-6h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
Expand Down
Loading

0 comments on commit 2d063eb

Please sign in to comment.