diff --git a/engine/docker/dev-host/grafana/dashboards/api.json b/engine/docker/dev-host/grafana/dashboards/api.json index a2aef94005..a9417891ef 100644 --- a/engine/docker/dev-host/grafana/dashboards/api.json +++ b/engine/docker/dev-host/grafana/dashboards/api.json @@ -724,7 +724,9 @@ "id": 25, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -845,7 +847,9 @@ "id": 28, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -966,7 +970,9 @@ "id": 31, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -1147,7 +1153,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1167,7 +1175,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1187,7 +1197,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1208,19 +1220,21 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse" }, - "definition": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND $__conditionalAll(Attributes['path'], $path) ORDER BY method", + "definition": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND Attributes['path'] IN array($path) ORDER BY method", "includeAll": true, "label": "Method", "multi": true, "name": "method", "options": [], - "query": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND $__conditionalAll(Attributes['path'], $path) ORDER BY method", + "query": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND Attributes['path'] IN array($path) ORDER BY method", "refresh": 1, "regex": "", "type": "query" @@ -1237,4 +1251,4 @@ "uid": "feg8y72gpm2o0c", "version": 1, "weekStart": "" -} +} \ No newline at end of file diff --git a/engine/docker/dev-host/grafana/dashboards/traces.json b/engine/docker/dev-host/grafana/dashboards/traces.json index 9bb36ad163..c2d64f82f4 100644 --- a/engine/docker/dev-host/grafana/dashboards/traces.json +++ b/engine/docker/dev-host/grafana/dashboards/traces.json @@ -163,7 +163,9 @@ "type": "datetime" } ], - "groupBy": ["ServiceName"], + "groupBy": [ + "ServiceName" + ], "limit": 10000, "mode": "trend", "orderBy": [], @@ -381,7 +383,9 @@ "footer": { "countRows": false, "fields": "", - "reducer": ["sum"], + "reducer": [ + "sum" + ], "show": false }, "showHeader": true, @@ -712,7 +716,9 @@ "type": "datetime" } ], - "groupBy": ["ServiceName"], + "groupBy": [ + "ServiceName" + ], "limit": 10000, "mode": "trend", "orderBy": [], @@ -722,7 +728,7 @@ }, "pluginVersion": "4.0.6", "queryType": "timeseries", - "rawSql": "SELECT\r\n $__timeInterval(Timestamp) as time,\r\n count(*) as ` `,\r\n ServiceName\r\nFROM otel.otel_traces\r\nWHERE\r\n $__conditionalAll(TraceId IN (${trace_id:singlequote}), $trace_id)\r\n AND ( Timestamp >= $__fromTime AND Timestamp <= $__toTime )\r\n AND ServiceName IN (${service_name:singlequote})\r\n AND SpanName IN (${span_name:singlequote})\r\n AND (($ray_id, NULL).1 = 'All' ? true : SpanAttributes['ray_id'] IN (${ray_id:singlequote}))\r\n AND (($workflow_id, NULL).1 = 'All' ? true : SpanAttributes['workflow_id'] IN (${workflow_id:singlequote}))\r\n AND StatusCode IN ('Error', 'STATUS_CODE_ERROR')\r\n AND ServiceName != 'loadgenerator' GROUP BY ServiceName, time\r\nORDER BY time ASC\r\nLIMIT 100000", + "rawSql": "SELECT\r\n $__timeInterval(Timestamp) as time,\r\n count(*) as ` `,\r\n ServiceName\r\nFROM otel.otel_traces\r\nWHERE\r\n TraceId IN array($trace_id), $trace_id)\r\n AND ( Timestamp >= $__fromTime AND Timestamp <= $__toTime )\r\n AND ServiceName IN (${service_name:singlequote})\r\n AND SpanName IN (${span_name:singlequote})\r\n AND (($ray_id, NULL).1 = 'All' ? true : SpanAttributes['ray_id'] IN (${ray_id:singlequote}))\r\n AND (($workflow_id, NULL).1 = 'All' ? true : SpanAttributes['workflow_id'] IN (${workflow_id:singlequote}))\r\n AND StatusCode IN ('Error', 'STATUS_CODE_ERROR')\r\n AND ServiceName != 'loadgenerator' GROUP BY ServiceName, time\r\nORDER BY time ASC\r\nLIMIT 100000", "refId": "A" } ], @@ -840,8 +846,12 @@ }, { "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -879,8 +889,12 @@ }, { "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -901,8 +915,12 @@ { "allValue": "'All'", "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -923,8 +941,12 @@ { "allValue": "'All'", "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -954,4 +976,4 @@ "uid": "8klBUGfVk", "version": 2, "weekStart": "" -} +} \ No newline at end of file diff --git a/engine/docker/dev-multidc-multinode/core/grafana/dashboards/api.json b/engine/docker/dev-multidc-multinode/core/grafana/dashboards/api.json index a2aef94005..a9417891ef 100644 --- a/engine/docker/dev-multidc-multinode/core/grafana/dashboards/api.json +++ b/engine/docker/dev-multidc-multinode/core/grafana/dashboards/api.json @@ -724,7 +724,9 @@ "id": 25, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -845,7 +847,9 @@ "id": 28, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -966,7 +970,9 @@ "id": 31, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -1147,7 +1153,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1167,7 +1175,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1187,7 +1197,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1208,19 +1220,21 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse" }, - "definition": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND $__conditionalAll(Attributes['path'], $path) ORDER BY method", + "definition": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND Attributes['path'] IN array($path) ORDER BY method", "includeAll": true, "label": "Method", "multi": true, "name": "method", "options": [], - "query": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND $__conditionalAll(Attributes['path'], $path) ORDER BY method", + "query": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND Attributes['path'] IN array($path) ORDER BY method", "refresh": 1, "regex": "", "type": "query" @@ -1237,4 +1251,4 @@ "uid": "feg8y72gpm2o0c", "version": 1, "weekStart": "" -} +} \ No newline at end of file diff --git a/engine/docker/dev-multidc-multinode/core/grafana/dashboards/traces.json b/engine/docker/dev-multidc-multinode/core/grafana/dashboards/traces.json index 9bb36ad163..c2d64f82f4 100644 --- a/engine/docker/dev-multidc-multinode/core/grafana/dashboards/traces.json +++ b/engine/docker/dev-multidc-multinode/core/grafana/dashboards/traces.json @@ -163,7 +163,9 @@ "type": "datetime" } ], - "groupBy": ["ServiceName"], + "groupBy": [ + "ServiceName" + ], "limit": 10000, "mode": "trend", "orderBy": [], @@ -381,7 +383,9 @@ "footer": { "countRows": false, "fields": "", - "reducer": ["sum"], + "reducer": [ + "sum" + ], "show": false }, "showHeader": true, @@ -712,7 +716,9 @@ "type": "datetime" } ], - "groupBy": ["ServiceName"], + "groupBy": [ + "ServiceName" + ], "limit": 10000, "mode": "trend", "orderBy": [], @@ -722,7 +728,7 @@ }, "pluginVersion": "4.0.6", "queryType": "timeseries", - "rawSql": "SELECT\r\n $__timeInterval(Timestamp) as time,\r\n count(*) as ` `,\r\n ServiceName\r\nFROM otel.otel_traces\r\nWHERE\r\n $__conditionalAll(TraceId IN (${trace_id:singlequote}), $trace_id)\r\n AND ( Timestamp >= $__fromTime AND Timestamp <= $__toTime )\r\n AND ServiceName IN (${service_name:singlequote})\r\n AND SpanName IN (${span_name:singlequote})\r\n AND (($ray_id, NULL).1 = 'All' ? true : SpanAttributes['ray_id'] IN (${ray_id:singlequote}))\r\n AND (($workflow_id, NULL).1 = 'All' ? true : SpanAttributes['workflow_id'] IN (${workflow_id:singlequote}))\r\n AND StatusCode IN ('Error', 'STATUS_CODE_ERROR')\r\n AND ServiceName != 'loadgenerator' GROUP BY ServiceName, time\r\nORDER BY time ASC\r\nLIMIT 100000", + "rawSql": "SELECT\r\n $__timeInterval(Timestamp) as time,\r\n count(*) as ` `,\r\n ServiceName\r\nFROM otel.otel_traces\r\nWHERE\r\n TraceId IN array($trace_id), $trace_id)\r\n AND ( Timestamp >= $__fromTime AND Timestamp <= $__toTime )\r\n AND ServiceName IN (${service_name:singlequote})\r\n AND SpanName IN (${span_name:singlequote})\r\n AND (($ray_id, NULL).1 = 'All' ? true : SpanAttributes['ray_id'] IN (${ray_id:singlequote}))\r\n AND (($workflow_id, NULL).1 = 'All' ? true : SpanAttributes['workflow_id'] IN (${workflow_id:singlequote}))\r\n AND StatusCode IN ('Error', 'STATUS_CODE_ERROR')\r\n AND ServiceName != 'loadgenerator' GROUP BY ServiceName, time\r\nORDER BY time ASC\r\nLIMIT 100000", "refId": "A" } ], @@ -840,8 +846,12 @@ }, { "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -879,8 +889,12 @@ }, { "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -901,8 +915,12 @@ { "allValue": "'All'", "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -923,8 +941,12 @@ { "allValue": "'All'", "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -954,4 +976,4 @@ "uid": "8klBUGfVk", "version": 2, "weekStart": "" -} +} \ No newline at end of file diff --git a/engine/docker/dev-multidc/core/grafana/dashboards/api.json b/engine/docker/dev-multidc/core/grafana/dashboards/api.json index a2aef94005..a9417891ef 100644 --- a/engine/docker/dev-multidc/core/grafana/dashboards/api.json +++ b/engine/docker/dev-multidc/core/grafana/dashboards/api.json @@ -724,7 +724,9 @@ "id": 25, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -845,7 +847,9 @@ "id": 28, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -966,7 +970,9 @@ "id": 31, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -1147,7 +1153,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1167,7 +1175,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1187,7 +1197,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1208,19 +1220,21 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse" }, - "definition": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND $__conditionalAll(Attributes['path'], $path) ORDER BY method", + "definition": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND Attributes['path'] IN array($path) ORDER BY method", "includeAll": true, "label": "Method", "multi": true, "name": "method", "options": [], - "query": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND $__conditionalAll(Attributes['path'], $path) ORDER BY method", + "query": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND Attributes['path'] IN array($path) ORDER BY method", "refresh": 1, "regex": "", "type": "query" @@ -1237,4 +1251,4 @@ "uid": "feg8y72gpm2o0c", "version": 1, "weekStart": "" -} +} \ No newline at end of file diff --git a/engine/docker/dev-multidc/core/grafana/dashboards/traces.json b/engine/docker/dev-multidc/core/grafana/dashboards/traces.json index 9bb36ad163..c2d64f82f4 100644 --- a/engine/docker/dev-multidc/core/grafana/dashboards/traces.json +++ b/engine/docker/dev-multidc/core/grafana/dashboards/traces.json @@ -163,7 +163,9 @@ "type": "datetime" } ], - "groupBy": ["ServiceName"], + "groupBy": [ + "ServiceName" + ], "limit": 10000, "mode": "trend", "orderBy": [], @@ -381,7 +383,9 @@ "footer": { "countRows": false, "fields": "", - "reducer": ["sum"], + "reducer": [ + "sum" + ], "show": false }, "showHeader": true, @@ -712,7 +716,9 @@ "type": "datetime" } ], - "groupBy": ["ServiceName"], + "groupBy": [ + "ServiceName" + ], "limit": 10000, "mode": "trend", "orderBy": [], @@ -722,7 +728,7 @@ }, "pluginVersion": "4.0.6", "queryType": "timeseries", - "rawSql": "SELECT\r\n $__timeInterval(Timestamp) as time,\r\n count(*) as ` `,\r\n ServiceName\r\nFROM otel.otel_traces\r\nWHERE\r\n $__conditionalAll(TraceId IN (${trace_id:singlequote}), $trace_id)\r\n AND ( Timestamp >= $__fromTime AND Timestamp <= $__toTime )\r\n AND ServiceName IN (${service_name:singlequote})\r\n AND SpanName IN (${span_name:singlequote})\r\n AND (($ray_id, NULL).1 = 'All' ? true : SpanAttributes['ray_id'] IN (${ray_id:singlequote}))\r\n AND (($workflow_id, NULL).1 = 'All' ? true : SpanAttributes['workflow_id'] IN (${workflow_id:singlequote}))\r\n AND StatusCode IN ('Error', 'STATUS_CODE_ERROR')\r\n AND ServiceName != 'loadgenerator' GROUP BY ServiceName, time\r\nORDER BY time ASC\r\nLIMIT 100000", + "rawSql": "SELECT\r\n $__timeInterval(Timestamp) as time,\r\n count(*) as ` `,\r\n ServiceName\r\nFROM otel.otel_traces\r\nWHERE\r\n TraceId IN array($trace_id), $trace_id)\r\n AND ( Timestamp >= $__fromTime AND Timestamp <= $__toTime )\r\n AND ServiceName IN (${service_name:singlequote})\r\n AND SpanName IN (${span_name:singlequote})\r\n AND (($ray_id, NULL).1 = 'All' ? true : SpanAttributes['ray_id'] IN (${ray_id:singlequote}))\r\n AND (($workflow_id, NULL).1 = 'All' ? true : SpanAttributes['workflow_id'] IN (${workflow_id:singlequote}))\r\n AND StatusCode IN ('Error', 'STATUS_CODE_ERROR')\r\n AND ServiceName != 'loadgenerator' GROUP BY ServiceName, time\r\nORDER BY time ASC\r\nLIMIT 100000", "refId": "A" } ], @@ -840,8 +846,12 @@ }, { "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -879,8 +889,12 @@ }, { "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -901,8 +915,12 @@ { "allValue": "'All'", "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -923,8 +941,12 @@ { "allValue": "'All'", "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -954,4 +976,4 @@ "uid": "8klBUGfVk", "version": 2, "weekStart": "" -} +} \ No newline at end of file diff --git a/engine/docker/dev-multinode/grafana/dashboards/api.json b/engine/docker/dev-multinode/grafana/dashboards/api.json index a2aef94005..a9417891ef 100644 --- a/engine/docker/dev-multinode/grafana/dashboards/api.json +++ b/engine/docker/dev-multinode/grafana/dashboards/api.json @@ -724,7 +724,9 @@ "id": 25, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -845,7 +847,9 @@ "id": 28, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -966,7 +970,9 @@ "id": 31, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -1147,7 +1153,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1167,7 +1175,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1187,7 +1197,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1208,19 +1220,21 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse" }, - "definition": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND $__conditionalAll(Attributes['path'], $path) ORDER BY method", + "definition": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND Attributes['path'] IN array($path) ORDER BY method", "includeAll": true, "label": "Method", "multi": true, "name": "method", "options": [], - "query": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND $__conditionalAll(Attributes['path'], $path) ORDER BY method", + "query": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND Attributes['path'] IN array($path) ORDER BY method", "refresh": 1, "regex": "", "type": "query" @@ -1237,4 +1251,4 @@ "uid": "feg8y72gpm2o0c", "version": 1, "weekStart": "" -} +} \ No newline at end of file diff --git a/engine/docker/dev-multinode/grafana/dashboards/traces.json b/engine/docker/dev-multinode/grafana/dashboards/traces.json index 9bb36ad163..c2d64f82f4 100644 --- a/engine/docker/dev-multinode/grafana/dashboards/traces.json +++ b/engine/docker/dev-multinode/grafana/dashboards/traces.json @@ -163,7 +163,9 @@ "type": "datetime" } ], - "groupBy": ["ServiceName"], + "groupBy": [ + "ServiceName" + ], "limit": 10000, "mode": "trend", "orderBy": [], @@ -381,7 +383,9 @@ "footer": { "countRows": false, "fields": "", - "reducer": ["sum"], + "reducer": [ + "sum" + ], "show": false }, "showHeader": true, @@ -712,7 +716,9 @@ "type": "datetime" } ], - "groupBy": ["ServiceName"], + "groupBy": [ + "ServiceName" + ], "limit": 10000, "mode": "trend", "orderBy": [], @@ -722,7 +728,7 @@ }, "pluginVersion": "4.0.6", "queryType": "timeseries", - "rawSql": "SELECT\r\n $__timeInterval(Timestamp) as time,\r\n count(*) as ` `,\r\n ServiceName\r\nFROM otel.otel_traces\r\nWHERE\r\n $__conditionalAll(TraceId IN (${trace_id:singlequote}), $trace_id)\r\n AND ( Timestamp >= $__fromTime AND Timestamp <= $__toTime )\r\n AND ServiceName IN (${service_name:singlequote})\r\n AND SpanName IN (${span_name:singlequote})\r\n AND (($ray_id, NULL).1 = 'All' ? true : SpanAttributes['ray_id'] IN (${ray_id:singlequote}))\r\n AND (($workflow_id, NULL).1 = 'All' ? true : SpanAttributes['workflow_id'] IN (${workflow_id:singlequote}))\r\n AND StatusCode IN ('Error', 'STATUS_CODE_ERROR')\r\n AND ServiceName != 'loadgenerator' GROUP BY ServiceName, time\r\nORDER BY time ASC\r\nLIMIT 100000", + "rawSql": "SELECT\r\n $__timeInterval(Timestamp) as time,\r\n count(*) as ` `,\r\n ServiceName\r\nFROM otel.otel_traces\r\nWHERE\r\n TraceId IN array($trace_id), $trace_id)\r\n AND ( Timestamp >= $__fromTime AND Timestamp <= $__toTime )\r\n AND ServiceName IN (${service_name:singlequote})\r\n AND SpanName IN (${span_name:singlequote})\r\n AND (($ray_id, NULL).1 = 'All' ? true : SpanAttributes['ray_id'] IN (${ray_id:singlequote}))\r\n AND (($workflow_id, NULL).1 = 'All' ? true : SpanAttributes['workflow_id'] IN (${workflow_id:singlequote}))\r\n AND StatusCode IN ('Error', 'STATUS_CODE_ERROR')\r\n AND ServiceName != 'loadgenerator' GROUP BY ServiceName, time\r\nORDER BY time ASC\r\nLIMIT 100000", "refId": "A" } ], @@ -840,8 +846,12 @@ }, { "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -879,8 +889,12 @@ }, { "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -901,8 +915,12 @@ { "allValue": "'All'", "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -923,8 +941,12 @@ { "allValue": "'All'", "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -954,4 +976,4 @@ "uid": "8klBUGfVk", "version": 2, "weekStart": "" -} +} \ No newline at end of file diff --git a/engine/docker/dev/grafana/dashboards/api.json b/engine/docker/dev/grafana/dashboards/api.json index a2aef94005..a9417891ef 100644 --- a/engine/docker/dev/grafana/dashboards/api.json +++ b/engine/docker/dev/grafana/dashboards/api.json @@ -724,7 +724,9 @@ "id": 25, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -845,7 +847,9 @@ "id": 28, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -966,7 +970,9 @@ "id": 31, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -1147,7 +1153,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1167,7 +1175,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1187,7 +1197,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1208,19 +1220,21 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse" }, - "definition": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND $__conditionalAll(Attributes['path'], $path) ORDER BY method", + "definition": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND Attributes['path'] IN array($path) ORDER BY method", "includeAll": true, "label": "Method", "multi": true, "name": "method", "options": [], - "query": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND $__conditionalAll(Attributes['path'], $path) ORDER BY method", + "query": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND Attributes['path'] IN array($path) ORDER BY method", "refresh": 1, "regex": "", "type": "query" @@ -1237,4 +1251,4 @@ "uid": "feg8y72gpm2o0c", "version": 1, "weekStart": "" -} +} \ No newline at end of file diff --git a/engine/docker/dev/grafana/dashboards/traces.json b/engine/docker/dev/grafana/dashboards/traces.json index 9bb36ad163..c2d64f82f4 100644 --- a/engine/docker/dev/grafana/dashboards/traces.json +++ b/engine/docker/dev/grafana/dashboards/traces.json @@ -163,7 +163,9 @@ "type": "datetime" } ], - "groupBy": ["ServiceName"], + "groupBy": [ + "ServiceName" + ], "limit": 10000, "mode": "trend", "orderBy": [], @@ -381,7 +383,9 @@ "footer": { "countRows": false, "fields": "", - "reducer": ["sum"], + "reducer": [ + "sum" + ], "show": false }, "showHeader": true, @@ -712,7 +716,9 @@ "type": "datetime" } ], - "groupBy": ["ServiceName"], + "groupBy": [ + "ServiceName" + ], "limit": 10000, "mode": "trend", "orderBy": [], @@ -722,7 +728,7 @@ }, "pluginVersion": "4.0.6", "queryType": "timeseries", - "rawSql": "SELECT\r\n $__timeInterval(Timestamp) as time,\r\n count(*) as ` `,\r\n ServiceName\r\nFROM otel.otel_traces\r\nWHERE\r\n $__conditionalAll(TraceId IN (${trace_id:singlequote}), $trace_id)\r\n AND ( Timestamp >= $__fromTime AND Timestamp <= $__toTime )\r\n AND ServiceName IN (${service_name:singlequote})\r\n AND SpanName IN (${span_name:singlequote})\r\n AND (($ray_id, NULL).1 = 'All' ? true : SpanAttributes['ray_id'] IN (${ray_id:singlequote}))\r\n AND (($workflow_id, NULL).1 = 'All' ? true : SpanAttributes['workflow_id'] IN (${workflow_id:singlequote}))\r\n AND StatusCode IN ('Error', 'STATUS_CODE_ERROR')\r\n AND ServiceName != 'loadgenerator' GROUP BY ServiceName, time\r\nORDER BY time ASC\r\nLIMIT 100000", + "rawSql": "SELECT\r\n $__timeInterval(Timestamp) as time,\r\n count(*) as ` `,\r\n ServiceName\r\nFROM otel.otel_traces\r\nWHERE\r\n TraceId IN array($trace_id), $trace_id)\r\n AND ( Timestamp >= $__fromTime AND Timestamp <= $__toTime )\r\n AND ServiceName IN (${service_name:singlequote})\r\n AND SpanName IN (${span_name:singlequote})\r\n AND (($ray_id, NULL).1 = 'All' ? true : SpanAttributes['ray_id'] IN (${ray_id:singlequote}))\r\n AND (($workflow_id, NULL).1 = 'All' ? true : SpanAttributes['workflow_id'] IN (${workflow_id:singlequote}))\r\n AND StatusCode IN ('Error', 'STATUS_CODE_ERROR')\r\n AND ServiceName != 'loadgenerator' GROUP BY ServiceName, time\r\nORDER BY time ASC\r\nLIMIT 100000", "refId": "A" } ], @@ -840,8 +846,12 @@ }, { "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -879,8 +889,12 @@ }, { "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -901,8 +915,12 @@ { "allValue": "'All'", "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -923,8 +941,12 @@ { "allValue": "'All'", "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -954,4 +976,4 @@ "uid": "8klBUGfVk", "version": 2, "weekStart": "" -} +} \ No newline at end of file diff --git a/engine/docker/template/grafana-dashboards/api.json b/engine/docker/template/grafana-dashboards/api.json index a2aef94005..a9417891ef 100644 --- a/engine/docker/template/grafana-dashboards/api.json +++ b/engine/docker/template/grafana-dashboards/api.json @@ -724,7 +724,9 @@ "id": 25, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -845,7 +847,9 @@ "id": 28, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -966,7 +970,9 @@ "id": 31, "options": { "legend": { - "calcs": ["mean"], + "calcs": [ + "mean" + ], "displayMode": "table", "placement": "bottom", "showLegend": true, @@ -1147,7 +1153,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1167,7 +1175,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1187,7 +1197,9 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -1208,19 +1220,21 @@ { "current": { "text": "All", - "value": ["$__all"] + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", "uid": "clickhouse" }, - "definition": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND $__conditionalAll(Attributes['path'], $path) ORDER BY method", + "definition": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND Attributes['path'] IN array($path) ORDER BY method", "includeAll": true, "label": "Method", "multi": true, "name": "method", "options": [], - "query": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND $__conditionalAll(Attributes['path'], $path) ORDER BY method", + "query": "SELECT DISTINCT Attributes['method'] as method FROM otel.otel_metrics_sum WHERE MetricName = 'rivet_api_request_total' AND ResourceAttributes['rivet.datacenter'] IN array($datacenter) AND Attributes['path'] IN array($path) ORDER BY method", "refresh": 1, "regex": "", "type": "query" @@ -1237,4 +1251,4 @@ "uid": "feg8y72gpm2o0c", "version": 1, "weekStart": "" -} +} \ No newline at end of file diff --git a/engine/docker/template/grafana-dashboards/traces.json b/engine/docker/template/grafana-dashboards/traces.json index 9bb36ad163..c2d64f82f4 100644 --- a/engine/docker/template/grafana-dashboards/traces.json +++ b/engine/docker/template/grafana-dashboards/traces.json @@ -163,7 +163,9 @@ "type": "datetime" } ], - "groupBy": ["ServiceName"], + "groupBy": [ + "ServiceName" + ], "limit": 10000, "mode": "trend", "orderBy": [], @@ -381,7 +383,9 @@ "footer": { "countRows": false, "fields": "", - "reducer": ["sum"], + "reducer": [ + "sum" + ], "show": false }, "showHeader": true, @@ -712,7 +716,9 @@ "type": "datetime" } ], - "groupBy": ["ServiceName"], + "groupBy": [ + "ServiceName" + ], "limit": 10000, "mode": "trend", "orderBy": [], @@ -722,7 +728,7 @@ }, "pluginVersion": "4.0.6", "queryType": "timeseries", - "rawSql": "SELECT\r\n $__timeInterval(Timestamp) as time,\r\n count(*) as ` `,\r\n ServiceName\r\nFROM otel.otel_traces\r\nWHERE\r\n $__conditionalAll(TraceId IN (${trace_id:singlequote}), $trace_id)\r\n AND ( Timestamp >= $__fromTime AND Timestamp <= $__toTime )\r\n AND ServiceName IN (${service_name:singlequote})\r\n AND SpanName IN (${span_name:singlequote})\r\n AND (($ray_id, NULL).1 = 'All' ? true : SpanAttributes['ray_id'] IN (${ray_id:singlequote}))\r\n AND (($workflow_id, NULL).1 = 'All' ? true : SpanAttributes['workflow_id'] IN (${workflow_id:singlequote}))\r\n AND StatusCode IN ('Error', 'STATUS_CODE_ERROR')\r\n AND ServiceName != 'loadgenerator' GROUP BY ServiceName, time\r\nORDER BY time ASC\r\nLIMIT 100000", + "rawSql": "SELECT\r\n $__timeInterval(Timestamp) as time,\r\n count(*) as ` `,\r\n ServiceName\r\nFROM otel.otel_traces\r\nWHERE\r\n TraceId IN array($trace_id), $trace_id)\r\n AND ( Timestamp >= $__fromTime AND Timestamp <= $__toTime )\r\n AND ServiceName IN (${service_name:singlequote})\r\n AND SpanName IN (${span_name:singlequote})\r\n AND (($ray_id, NULL).1 = 'All' ? true : SpanAttributes['ray_id'] IN (${ray_id:singlequote}))\r\n AND (($workflow_id, NULL).1 = 'All' ? true : SpanAttributes['workflow_id'] IN (${workflow_id:singlequote}))\r\n AND StatusCode IN ('Error', 'STATUS_CODE_ERROR')\r\n AND ServiceName != 'loadgenerator' GROUP BY ServiceName, time\r\nORDER BY time ASC\r\nLIMIT 100000", "refId": "A" } ], @@ -840,8 +846,12 @@ }, { "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -879,8 +889,12 @@ }, { "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -901,8 +915,12 @@ { "allValue": "'All'", "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -923,8 +941,12 @@ { "allValue": "'All'", "current": { - "text": ["All"], - "value": ["$__all"] + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "datasource": { "type": "grafana-clickhouse-datasource", @@ -954,4 +976,4 @@ "uid": "8klBUGfVk", "version": 2, "weekStart": "" -} +} \ No newline at end of file