Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Datasource to variable. #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 22 additions & 25 deletions monitoring/dashboards/common-metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"datasource": "${DS_PROMETHEUS}",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -116,10 +113,7 @@
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"datasource": "${DS_PROMETHEUS}",
"description": "The performance metric is a score between 0 and 100 and each developer can define their own way of calculating the score. The score is calculated based on the performance of the Node and the performance of the backing services.",
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -194,10 +188,7 @@
"type": "gauge"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"datasource": "${DS_PROMETHEUS}",
"fieldConfig": {
"defaults": {
"color": {
Expand Down Expand Up @@ -508,10 +499,7 @@
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"datasource": "${DS_PROMETHEUS}",
"description": "Average Response Time per method in seconds over time.",
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -605,10 +593,7 @@
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"datasource": "${DS_PROMETHEUS}",
"description": "Total of JSON-RPC requests per method.",
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -698,10 +683,7 @@
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"datasource": "${DS_PROMETHEUS}",
"description": "Request duration distribution in seconds per method.",
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -814,6 +796,21 @@
"skipUrlSync": false,
"sort": 2,
"type": "query"
},
{
"name": "DS_PROMETHEUS",
"type": "datasource",
"query": "prometheus",
"current": {
"value": "prometheus",
"text": "Prometheus"
},
"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"regex": "",
"skipUrlSync": false
}
]
},
Expand All @@ -827,4 +824,4 @@
"uid": "l8RpPN94z",
"version": 12,
"weekStart": ""
}
}