Skip to content

Commit

Permalink
removed abstract data source from export dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
ehearneRedHat committed May 13, 2024
1 parent c371730 commit 8105731
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 116 deletions.
72 changes: 31 additions & 41 deletions examples/dashboards/app_developer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
{
"__inputs": [
{
"name": "DS_KUADRANT-THANOS-HUB",
"label": "Kuadrant-Thanos-Hub",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": [],
"__requires": [
{
Expand Down Expand Up @@ -152,7 +142,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"description": "Hostname: \"Domain name for the API server.\" | API Namespace: \"Kubernetes namespace where the API is deployed.\" | Gateway name: \"Name of the Gateway API gateway the HTTPRoute is targeting\" | Gateway name: \"Name of the Gateway API gateway namespace\"\n",
"fieldConfig": {
Expand Down Expand Up @@ -200,7 +190,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
Expand All @@ -215,7 +205,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
Expand All @@ -229,7 +219,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
Expand Down Expand Up @@ -347,7 +337,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"description": "Requests per second, broken down by success (2xx,3xx) and error (4xx,5xx)",
"fieldConfig": {
Expand Down Expand Up @@ -467,7 +457,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum(rate(istio_requests_total{destination_service_name=~\"$api\"}[5m])) by (destination_service_name) * on(destination_service_name) group_right() (group without(instance, app_kubernetes_io_instance) (label_replace(gatewayapi_httproute_labels{deployment=~\"$api\"}, \"destination_service_name\", \"$1\",\"service\", \"(.+)\")))",
Expand All @@ -478,7 +468,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum(rate(istio_requests_total{response_code=~\"4.*|5.*\",destination_service_name=~\"$api\"}[5m])) by (destination_service_name) * on(destination_service_name) group_right() (group without(instance, app_kubernetes_io_instance) (label_replace(gatewayapi_httproute_labels{deployment=~\"$api\"}, \"destination_service_name\", \"$1\",\"service\", \"(.+)\")))",
Expand All @@ -490,7 +480,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "sum(rate(istio_requests_total{response_code=~\"2.*|3.*\",destination_service_name=~\"$api\"}[5m])) by (destination_service_name) * on(destination_service_name) group_right() (group without(instance, app_kubernetes_io_instance) (label_replace(gatewayapi_httproute_labels{deployment=~\"$api\"}, \"destination_service_name\", \"$1\",\"service\", \"(.+)\")))",
Expand All @@ -506,7 +496,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"description": "Total requests per second",
"fieldConfig": {
Expand Down Expand Up @@ -556,7 +546,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
Expand All @@ -574,7 +564,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"description": "Total number of responses.",
"fieldConfig": {
Expand Down Expand Up @@ -624,7 +614,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
Expand All @@ -642,7 +632,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"description": "Time it takes to process a request",
"fieldConfig": {
Expand Down Expand Up @@ -764,7 +754,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "histogram_quantile(0.95, sum(irate(istio_request_duration_milliseconds_bucket{destination_service_name=~\"$api\"}[5m])) by (le, destination_service_name)) * on(destination_service_name) group_right() (group without(instance, app_kubernetes_io_instance) (label_replace(gatewayapi_httproute_labels{deployment=~\"$api\"}, \"destination_service_name\", \"$1\",\"service\", \"(.+)\")))",
Expand All @@ -776,7 +766,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "histogram_quantile(0.90, sum(irate(istio_request_duration_milliseconds_bucket{destination_service_name=~\"$api\"}[5m])) by (le, destination_service_name)) * on(destination_service_name) group_right() (group without(instance, app_kubernetes_io_instance) (label_replace(gatewayapi_httproute_labels{deployment=~\"$api\"}, \"destination_service_name\", \"$1\",\"service\", \"(.+)\")))",
Expand All @@ -787,7 +777,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"expr": "histogram_quantile(0.99, sum(irate(istio_request_duration_milliseconds_bucket{destination_service_name=~\"$api\"}[5m])) by (le, destination_service_name)) * on(destination_service_name) group_right() (group without(instance, app_kubernetes_io_instance) (label_replace(gatewayapi_httproute_labels{deployment=~\"$api\"}, \"destination_service_name\", \"$1\",\"service\", \"(.+)\")))",
Expand All @@ -803,7 +793,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"description": "99% of API requests were completed inside this value, while the remaining 1% took longer.",
"fieldConfig": {
Expand Down Expand Up @@ -852,7 +842,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
Expand All @@ -870,7 +860,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"description": "Requests per second that resulted in a success (2xx, 3xx).",
"fieldConfig": {
Expand Down Expand Up @@ -920,7 +910,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
Expand All @@ -938,7 +928,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"description": "Total number of success response (2xx, 3xx).",
"fieldConfig": {
Expand Down Expand Up @@ -988,7 +978,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
Expand All @@ -1006,7 +996,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"description": "95% of API requests were completed inside this value, while the remaining 5% took longer.",
"fieldConfig": {
Expand Down Expand Up @@ -1055,7 +1045,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
Expand All @@ -1073,7 +1063,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"description": "Requests per second that resulted in an error (4xx, 5xx).",
"fieldConfig": {
Expand Down Expand Up @@ -1123,7 +1113,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
Expand All @@ -1141,7 +1131,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"description": "Total number of error response (4xx, 5xx).",
"fieldConfig": {
Expand Down Expand Up @@ -1191,7 +1181,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
Expand All @@ -1209,7 +1199,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"description": "Shows that 90% of API requests were completed inside this value, while the remaining 10% took longer.",
"fieldConfig": {
Expand Down Expand Up @@ -1258,7 +1248,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"editorMode": "code",
"exemplar": false,
Expand Down Expand Up @@ -1304,7 +1294,7 @@
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_KUADRANT-THANOS-HUB}"
"uid": "${datasource}"
},
"definition": "label_values(gatewayapi_httproute_labels, name)",
"description": "Name of the API",
Expand Down
Loading

0 comments on commit 8105731

Please sign in to comment.