Skip to content

Commit

Permalink
chore: change default datasource
Browse files Browse the repository at this point in the history
Signed-off-by: Rory Z <16801068+Rory-Z@users.noreply.github.com>
  • Loading branch information
Rory-Z committed Aug 18, 2023
1 parent 8f54d4f commit 16b7648
Show file tree
Hide file tree
Showing 22 changed files with 567 additions and 567 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"name": "datasource",
"label": "Prometheus",
"description": "",
"type": "datasource",
Expand Down Expand Up @@ -63,7 +63,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -190,7 +190,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "sum by(instance) (irate(emqx_client_connected{cluster=\"$cluster\",instance=~\"$node\"}[$__rate_interval]))",
Expand All @@ -206,7 +206,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -333,7 +333,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "sum by(instance) (irate(emqx_client_disconnected{cluster=\"$cluster\", instance=~\"$node\"}[$__rate_interval]))",
Expand All @@ -349,7 +349,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -425,7 +425,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "sum by(instance) (irate(emqx_client_subscribe{cluster=\"$cluster\", instance=~\"$node\"}[$__rate_interval]))",
Expand All @@ -440,7 +440,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -567,7 +567,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "sum by(instance) (irate(emqx_client_unsubscribe{cluster=\"$cluster\", instance=~\"$node\"}[$__rate_interval]))",
Expand All @@ -583,7 +583,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"description": "",
"fieldConfig": {
Expand Down Expand Up @@ -711,7 +711,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "sum by(instance) (irate(emqx_client_authenticate{cluster=\"$cluster\", instance=~\"$node\"}[$__rate_interval]))",
Expand All @@ -727,7 +727,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"description": "",
"fieldConfig": {
Expand Down Expand Up @@ -855,7 +855,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "sum by(instance) (irate(emqx_client_check_acl{cluster=\"$cluster\", instance=~\"$node\"}[$__rate_interval]))",
Expand All @@ -871,7 +871,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"description": "",
"fieldConfig": {
Expand Down Expand Up @@ -1000,7 +1000,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "sum by(instance) (irate(emqx_client_auth_success_anonymous {cluster=\"$cluster\", instance=~\"$node\"}[$__rate_interval]))",
Expand Down Expand Up @@ -1030,7 +1030,7 @@
"includeAll": false,
"label": "datasource",
"multi": false,
"name": "DS_PROMETHEUS",
"name": "datasource",
"options": [],
"query": "prometheus",
"refresh": 1,
Expand All @@ -1042,7 +1042,7 @@
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"definition": "label_values(up, cluster)",
"description": "A custom label of the scrape_config in prometheus to tag the cluster",
Expand All @@ -1065,7 +1065,7 @@
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"definition": "label_values({from='emqx',cluster=\"$cluster\"}, instance)",
"hide": 0,
Expand All @@ -1091,8 +1091,8 @@
},
"timepicker": {},
"timezone": "",
"title": "Client Events",
"uid": "EMQX4-client-events",
"title": "client events",
"uid": "emqx-4-client-events",
"version": 1,
"weekStart": ""
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"name": "datasource",
"label": "Prometheus",
"description": "",
"type": "datasource",
Expand Down Expand Up @@ -63,7 +63,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -249,7 +249,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "sum by(instance) (irate(emqx_messages_sent{cluster=\"$cluster\", instance=~\"$node\"}[$__rate_interval]))",
Expand All @@ -266,7 +266,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -452,7 +452,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "sum by(instance) (irate(emqx_messages_received{cluster=\"$cluster\", instance=~\"$node\"}[$__rate_interval]))",
Expand All @@ -469,7 +469,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -655,7 +655,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "sum by(instance) (irate(emqx_messages_dropped{cluster=\"$cluster\", instance=~\"$node\"}[$__rate_interval]))",
Expand Down Expand Up @@ -686,7 +686,7 @@
"includeAll": false,
"label": "datasource",
"multi": false,
"name": "DS_PROMETHEUS",
"name": "datasource",
"options": [],
"query": "prometheus",
"refresh": 1,
Expand All @@ -698,7 +698,7 @@
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"definition": "label_values(up, cluster)",
"description": "A custom label of the scrape_config in prometheus to tag the cluster",
Expand All @@ -721,7 +721,7 @@
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"definition": "label_values(up{from=\"emqx\",cluster=\"$cluster\"}, instance)",
"hide": 0,
Expand All @@ -747,8 +747,8 @@
},
"timepicker": {},
"timezone": "",
"title": "Messages",
"uid": "EMQX4-messages",
"title": "messages",
"uid": "emqx-4-messages",
"version": 1,
"weekStart": ""
}
Loading

0 comments on commit 16b7648

Please sign in to comment.