dashboards: cleanup & remove artifacts (#3387)

* some unexpected DS UIDs were removed;
* replace `$instance.*` filter with `$instance` since we respect
the instance port anyway;
* remove predefined datasource for `clusterbytenant`
in favour of datasource variable `ds`.

Signed-off-by: hagen1778 <roman@victoriametrics.com>

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
Roman Khavronenko 2022-11-25 09:28:14 +01:00 committed by GitHub
parent da13d36af9
commit 42e63fe0fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 28 deletions

View file

@ -1,14 +1,5 @@
{
"__inputs": [
{
"name": "DS_VICTORIAMETRICS",
"label": "VictoriaMetrics",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__inputs": [],
"__elements": [],
"__requires": [
{
@ -116,7 +107,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VICTORIAMETRICS}"
"uid": "${ds}"
},
"expr": "sum(increase(vm_tenant_inserted_rows_total{job=~\"$job\", instance=~\"$instance\",accountID=~\"$account\", projectID=~\"$project\"}[1m])/60) by (accountID,projectID) ",
"interval": "",
@ -214,7 +205,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VICTORIAMETRICS}"
"uid": "${ds}"
},
"editorMode": "code",
"expr": "sum(rate(vm_tenant_select_requests_total{job=~\"$job\", instance=~\"$instance.*\",accountID=~\"$account\", projectID=~\"$project\"}[$__rate_interval])) by (accountID,projectID) ",
@ -320,7 +311,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VICTORIAMETRICS}"
"uid": "${ds}"
},
"expr": "sum(vm_tenant_active_timeseries{job=~\"$job\", instance=~\"$instance.*\",accountID=~\"$account\",projectID=~\"$project\"}) by(accountID,projectID)",
"format": "time_series",
@ -418,7 +409,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VICTORIAMETRICS}"
"uid": "${ds}"
},
"expr": "sum(increase(vm_tenant_timeseries_created_total{job=~\"$job\", instance=~\"$instance\",accountID=~\"$account\", projectID=~\"$project\"}[1m])/60) by(accountID,projectID)",
"interval": "",
@ -513,7 +504,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_VICTORIAMETRICS}"
"uid": "${ds}"
},
"editorMode": "code",
"expr": "sum(vm_tenant_used_tenant_bytes{job=~\"$job\", instance=~\"$instance\",accountID=~\"$account\",projectID=~\"$project\"}) by(accountID,projectID)",

View file

@ -4,8 +4,8 @@
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,

View file

@ -109,7 +109,6 @@
"collapsed": false,
"datasource": {
"type": "prometheus",
"uid": "P4169E866C3094E38"
},
"gridPos": {
"h": 1,
@ -319,7 +318,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(rate(vm_http_requests_total{job=~\"$job\", instance=~\"$instance.*\", path=~\"/select/.*\"}[$__rate_interval]))",
"expr": "sum(rate(vm_http_requests_total{job=~\"$job\", instance=~\"$instance\", path=~\"/select/.*\"}[$__rate_interval]))",
"format": "time_series",
"instant": true,
"interval": "",
@ -459,7 +458,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(max_over_time(vm_cache_entries{job=~\"$job\", instance=~\"$instance.*\", type=\"storage/hour_metric_ids\"}[1h]))",
"expr": "sum(max_over_time(vm_cache_entries{job=~\"$job\", instance=~\"$instance\", type=\"storage/hour_metric_ids\"}[1h]))",
"format": "time_series",
"instant": true,
"interval": "",
@ -1099,7 +1098,7 @@
"uid": "$ds"
},
"editorMode": "code",
"expr": "sum(rate(vm_http_requests_total{job=~\"$job\", instance=~\"$instance.*\", path!~\"/favicon.ico\"}[$__rate_interval])) by (path) > 0",
"expr": "sum(rate(vm_http_requests_total{job=~\"$job\", instance=~\"$instance\", path!~\"/favicon.ico\"}[$__rate_interval])) by (path) > 0",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{path}}",
@ -1208,7 +1207,7 @@
"type": "prometheus",
"uid": "$ds"
},
"expr": "sum(vm_cache_entries{job=~\"$job\", instance=~\"$instance.*\", type=\"storage/hour_metric_ids\"})",
"expr": "sum(vm_cache_entries{job=~\"$job\", instance=~\"$instance\", type=\"storage/hour_metric_ids\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "Active time series",
@ -1417,7 +1416,7 @@
"uid": "$ds"
},
"editorMode": "code",
"expr": "sum(rate(vm_http_request_errors_total{job=~\"$job\", instance=~\"$instance.*\"}[$__rate_interval])) by (job, path) > 0",
"expr": "sum(rate(vm_http_request_errors_total{job=~\"$job\", instance=~\"$instance\"}[$__rate_interval])) by (job, path) > 0",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{path}} ({{job}})",
@ -1523,7 +1522,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(rate(vm_log_messages_total{job=~\"$job\",instance=~\"$instance.*\", level!=\"info\"}[$__rate_interval])) by (job, level) > 0",
"expr": "sum(rate(vm_log_messages_total{job=~\"$job\",instance=~\"$instance\", level!=\"info\"}[$__rate_interval])) by (job, level) > 0",
"format": "time_series",
"hide": false,
"interval": "5m",
@ -5882,7 +5881,7 @@
"uid": "$ds"
},
"editorMode": "code",
"expr": "sum(rate(vm_http_requests_total{job=~\"$job_select\", instance=~\"$instance.*\", path!~\"/favicon.ico|/metrics\"}[$__rate_interval])) by (path) > 0",
"expr": "sum(rate(vm_http_requests_total{job=~\"$job_select\", instance=~\"$instance\", path!~\"/favicon.ico|/metrics\"}[$__rate_interval])) by (path) > 0",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "__auto",
@ -6988,7 +6987,7 @@
"uid": "$ds"
},
"editorMode": "code",
"expr": "sum(rate(vm_http_requests_total{job=~\"$job_insert\", instance=~\"$instance.*\", path!~\"/favicon.ico|/metrics\"}[$__rate_interval])) by (path) > 0",
"expr": "sum(rate(vm_http_requests_total{job=~\"$job_insert\", instance=~\"$instance\", path!~\"/favicon.ico|/metrics\"}[$__rate_interval])) by (path) > 0",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "__auto",

View file

@ -1713,7 +1713,6 @@
"collapsed": true,
"datasource": {
"type": "prometheus",
"uid": "P4169E866C3094E38"
},
"gridPos": {
"h": 1,
@ -2031,7 +2030,6 @@
{
"datasource": {
"type": "prometheus",
"uid": "P4169E866C3094E38"
},
"refId": "A"
}