{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "Метрики .NET сервисов: MongoDB, GC, процесс, HTTP, MassTransit. OTel Collector → ClickHouse.",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 1,
  "id": 1,
  "links": [],
  "panels": [
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 200,
      "panels": [],
      "title": "GC",
      "type": "row"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "ns"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 0,
        "y": 1
      },
      "id": 201,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['gc.heap.generation'] AS gc_heap_generation, (max(Value) - min(Value)) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'dotnet.gc.pause.time' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, gc_heap_generation ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Длительность сборки мусора за минуту",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "gc_heap_generation"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 12,
        "y": 1
      },
      "id": 202,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['gc.heap.generation'] AS gc_heap_generation, (max(Value) - min(Value)) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'dotnet.gc.collections' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, gc_heap_generation ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Кол-во сборов мусора за минуту",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "gc_heap_generation"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 0,
        "y": 7
      },
      "id": 203,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['gc.heap.generation'] AS gc_heap_generation, avg(Value) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'dotnet.gc.last_collection.heap.size' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, gc_heap_generation ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Heap size by generation",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "gc_heap_generation"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 8,
        "y": 7
      },
      "id": 204,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, avg(Value) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'dotnet.gc.last_collection.memory.committed_size' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service ORDER BY time",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, (max(Value) - min(Value)) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'dotnet.gc.heap.total_allocated' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service ORDER BY time",
          "refId": "B"
        }
      ],
      "title": "GC Memory",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "service"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 16,
        "y": 7
      },
      "id": 205,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, avg(Value) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'dotnet.gc.last_collection.heap.size' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Heap size total",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "service"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 0,
        "y": 13
      },
      "id": 206,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['gc.heap.generation'] AS gc_heap_generation, avg(Value) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'dotnet.gc.last_collection.heap.fragmentation.size' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, gc_heap_generation ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Heap fragmentation",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "gc_heap_generation"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 12,
        "y": 13
      },
      "id": 207,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['gc.heap.generation'] AS generation, 100.0 * avg(f.Value) / nullif(avg(h.Value), 0) AS value FROM `ktalk-metrics`.otel_metrics_sum AS f JOIN `ktalk-metrics`.otel_metrics_sum AS h USING (ResourceAttributes['service.name'], Attributes['gc.heap.generation']) WHERE $__timeFilter(TimeUnix) AND f.MetricName = 'dotnet.gc.last_collection.heap.fragmentation.size' AND h.MetricName = 'dotnet.gc.last_collection.heap.size' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, generation ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Heap fragmentation %",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "generation"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 19
      },
      "id": 300,
      "panels": [],
      "title": "Process",
      "type": "row"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 0,
        "y": 20
      },
      "id": 301,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, (max(Value) - min(Value)) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'dotnet.monitor.lock_contentions' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Блокировки Monitor/Lock",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "service"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 8,
        "y": 20
      },
      "id": 302,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, (max(Value) - min(Value)) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'dotnet.exceptions' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Кол-во исключений в системе",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "service"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 16,
        "y": 20
      },
      "id": 303,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['cpu.mode'] AS cpu_mode, (max(Value) - min(Value)) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'dotnet.process.cpu.time' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, cpu_mode ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Время использования CPU",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "cpu_mode"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 0,
        "y": 26
      },
      "id": 304,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, avg(Value) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'process.thread.count' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Process threads",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "service"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 6,
        "y": 26
      },
      "id": 305,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, avg(Value) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'process.memory.usage' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Memory usage",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "service"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "bytes"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 12,
        "y": 26
      },
      "id": 306,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, avg(Value) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'process.memory.virtual' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Virtual memory",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "service"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 18,
        "y": 26
      },
      "id": 307,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, avg(Value) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'dotnet.thread_pool.thread.count' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service ORDER BY time",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, avg(Value) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'dotnet.thread_pool.queue.length' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service ORDER BY time",
          "refId": "B"
        }
      ],
      "title": "Thread pool",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "service"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 0,
        "y": 32
      },
      "id": 308,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, (max(Value) - min(Value)) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'dotnet.thread_pool.work_item.count' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Количество выполненных Task",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "service"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 38
      },
      "id": 500,
      "panels": [],
      "title": "HTTP Server",
      "type": "row"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 0,
        "y": 39
      },
      "id": 501,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, avg(Value) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'http.server.active_requests' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Кол-во запросов в обработке",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "service"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 8,
        "y": 39
      },
      "id": 502,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['http.route'] AS http_route, Attributes['http.response.status_code'] AS http_response_status_code, (max(Value) - min(Value)) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'aspnetcore.routing.match_attempts' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, http_route, http_response_status_code ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Кол-во запросов по route",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "http_route",
              "http_response_status_code"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 16,
        "y": 39
      },
      "id": 503,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['http.route'] AS http_route, Attributes['http.response.status_code'] AS http_response_status_code, sum(Sum) / nullif(sum(Count), 0) AS value FROM `ktalk-metrics`.otel_metrics_histogram WHERE $__timeFilter(TimeUnix) AND MetricName = 'http.server.request.duration' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, http_route, http_response_status_code ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Среднее время обработки по route",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "http_route",
              "http_response_status_code"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 0,
        "y": 45
      },
      "id": 504,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['http.request.method'] AS http_request_method, Attributes['http.route'] AS http_route, Attributes['http.response.status_code'] AS http_response_status_code, quantileExactWeighted(0.5)(pair.1, pair.2) AS value FROM `ktalk-metrics`.otel_metrics_histogram ARRAY JOIN arrayZip(ExplicitBounds, arraySlice(BucketCounts, 1, length(ExplicitBounds))) AS pair WHERE $__timeFilter(TimeUnix) AND MetricName = 'http.server.request.duration' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, http_request_method, http_route, http_response_status_code ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Скорость обработки запросов p50",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "http_request_method",
              "http_route",
              "http_response_status_code"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 6,
        "y": 45
      },
      "id": 505,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['http.request.method'] AS http_request_method, Attributes['http.route'] AS http_route, Attributes['http.response.status_code'] AS http_response_status_code, quantileExactWeighted(0.75)(pair.1, pair.2) AS value FROM `ktalk-metrics`.otel_metrics_histogram ARRAY JOIN arrayZip(ExplicitBounds, arraySlice(BucketCounts, 1, length(ExplicitBounds))) AS pair WHERE $__timeFilter(TimeUnix) AND MetricName = 'http.server.request.duration' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, http_request_method, http_route, http_response_status_code ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Скорость обработки запросов p75",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "http_request_method",
              "http_route",
              "http_response_status_code"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 12,
        "y": 45
      },
      "id": 506,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['http.request.method'] AS http_request_method, Attributes['http.route'] AS http_route, Attributes['http.response.status_code'] AS http_response_status_code, quantileExactWeighted(0.95)(pair.1, pair.2) AS value FROM `ktalk-metrics`.otel_metrics_histogram ARRAY JOIN arrayZip(ExplicitBounds, arraySlice(BucketCounts, 1, length(ExplicitBounds))) AS pair WHERE $__timeFilter(TimeUnix) AND MetricName = 'http.server.request.duration' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, http_request_method, http_route, http_response_status_code ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Скорость обработки запросов p95",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "http_request_method",
              "http_route",
              "http_response_status_code"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 18,
        "y": 45
      },
      "id": 507,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['http.request.method'] AS http_request_method, Attributes['http.route'] AS http_route, Attributes['http.response.status_code'] AS http_response_status_code, quantileExactWeighted(0.99)(pair.1, pair.2) AS value FROM `ktalk-metrics`.otel_metrics_histogram ARRAY JOIN arrayZip(ExplicitBounds, arraySlice(BucketCounts, 1, length(ExplicitBounds))) AS pair WHERE $__timeFilter(TimeUnix) AND MetricName = 'http.server.request.duration' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, http_request_method, http_route, http_response_status_code ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Скорость обработки запросов p99",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "http_request_method",
              "http_route",
              "http_response_status_code"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "bars",
            "fillOpacity": 60,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "normal"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 51
      },
      "id": 508,
      "options": {
        "legend": {
          "calcs": [
            "sum",
            "max"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "desc"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT time, service, http_response_status_code, sum(d) / $__interval_s AS value FROM (SELECT time, service, http_route, http_request_method, http_response_status_code, lagInFrame(c) OVER (PARTITION BY service, http_route, http_request_method, http_response_status_code ORDER BY time) AS prev, if(prev > 0 AND c >= prev, c - prev, NULL) AS d FROM (SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['http.route'] AS http_route, Attributes['http.request.method'] AS http_request_method, Attributes['http.response.status_code'] AS http_response_status_code, max(Count) AS c FROM `ktalk-metrics`.otel_metrics_histogram WHERE $__timeFilter(TimeUnix) AND MetricName = 'http.server.request.duration' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, http_route, http_request_method, http_response_status_code)) GROUP BY time, service, http_response_status_code ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "HTTP requests by status code",
      "type": "timeseries"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 59
      },
      "id": 600,
      "panels": [],
      "title": "HTTP Client",
      "type": "row"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 0,
        "y": 60
      },
      "id": 601,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['dns.question.name'] AS dns_question_name, quantileExactWeighted(0.99)(pair.1, pair.2) AS value FROM `ktalk-metrics`.otel_metrics_histogram ARRAY JOIN arrayZip(ExplicitBounds, arraySlice(BucketCounts, 1, length(ExplicitBounds))) AS pair WHERE $__timeFilter(TimeUnix) AND MetricName = 'dns.lookup.duration' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, dns_question_name ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "DNS lookup p99",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "dns_question_name"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 8,
        "y": 60
      },
      "id": 602,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['server.address'] AS server_address, avg(Value) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'http.client.open_connections' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, server_address ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Open connections",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "server_address"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 8,
        "x": 16,
        "y": 60
      },
      "id": 603,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['server.address'] AS server_address, avg(Value) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'http.client.active_requests' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, server_address ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Active requests",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "server_address"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 0,
        "y": 66
      },
      "id": 604,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['server.address'] AS server_address, quantileExactWeighted(0.5)(pair.1, pair.2) AS value FROM `ktalk-metrics`.otel_metrics_histogram ARRAY JOIN arrayZip(ExplicitBounds, arraySlice(BucketCounts, 1, length(ExplicitBounds))) AS pair WHERE $__timeFilter(TimeUnix) AND MetricName = 'http.client.request.duration' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, server_address ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Request duration p50",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "server_address"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 6,
        "y": 66
      },
      "id": 605,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['server.address'] AS server_address, quantileExactWeighted(0.75)(pair.1, pair.2) AS value FROM `ktalk-metrics`.otel_metrics_histogram ARRAY JOIN arrayZip(ExplicitBounds, arraySlice(BucketCounts, 1, length(ExplicitBounds))) AS pair WHERE $__timeFilter(TimeUnix) AND MetricName = 'http.client.request.duration' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, server_address ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Request duration p75",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "server_address"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 12,
        "y": 66
      },
      "id": 606,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['server.address'] AS server_address, quantileExactWeighted(0.95)(pair.1, pair.2) AS value FROM `ktalk-metrics`.otel_metrics_histogram ARRAY JOIN arrayZip(ExplicitBounds, arraySlice(BucketCounts, 1, length(ExplicitBounds))) AS pair WHERE $__timeFilter(TimeUnix) AND MetricName = 'http.client.request.duration' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, server_address ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Request duration p95",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "server_address"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "s"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 6,
        "x": 18,
        "y": 66
      },
      "id": 607,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['server.address'] AS server_address, quantileExactWeighted(0.99)(pair.1, pair.2) AS value FROM `ktalk-metrics`.otel_metrics_histogram ARRAY JOIN arrayZip(ExplicitBounds, arraySlice(BucketCounts, 1, length(ExplicitBounds))) AS pair WHERE $__timeFilter(TimeUnix) AND MetricName = 'http.client.request.duration' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, server_address ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Request duration p99",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "server_address"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 72
      },
      "id": 700,
      "panels": [],
      "title": "MassTransit",
      "type": "row"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "ms"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 0,
        "y": 73
      },
      "id": 701,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['messaging.destination'] AS messaging_destination, quantileExactWeighted(0.75)(pair.1, pair.2) AS value FROM `ktalk-metrics`.otel_metrics_histogram ARRAY JOIN arrayZip(ExplicitBounds, arraySlice(BucketCounts, 1, length(ExplicitBounds))) AS pair WHERE $__timeFilter(TimeUnix) AND MetricName = 'messaging.masstransit.delivery.duration' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, messaging_destination ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Delivery duration p75",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "messaging_destination"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisBorderShow": false,
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "barWidthFactor": 0.6,
            "drawStyle": "line",
            "fillOpacity": 10,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": false,
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "showValues": false,
            "spanNulls": true,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": 0
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "ms"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 12,
        "y": 73
      },
      "id": 702,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "hideZeros": false,
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "12.3.1",
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['messaging.destination'] AS messaging_destination, quantileExactWeighted(0.95)(pair.1, pair.2) AS value FROM `ktalk-metrics`.otel_metrics_histogram ARRAY JOIN arrayZip(ExplicitBounds, arraySlice(BucketCounts, 1, length(ExplicitBounds))) AS pair WHERE $__timeFilter(TimeUnix) AND MetricName = 'messaging.masstransit.delivery.duration' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, messaging_destination ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Delivery duration p95",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "messaging_destination"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "fillOpacity": 10,
            "lineWidth": 1,
            "spanNulls": true
          },
          "min": 0,
          "unit": "ms"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 0,
        "y": 79
      },
      "id": 703,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['messaging.destination'] AS messaging_destination, quantileExactWeighted(0.75)(pair.1, pair.2) AS value FROM `ktalk-metrics`.otel_metrics_histogram ARRAY JOIN arrayZip(ExplicitBounds, arraySlice(BucketCounts, 1, length(ExplicitBounds))) AS pair WHERE $__timeFilter(TimeUnix) AND MetricName = 'messaging.masstransit.consume.duration' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, messaging_destination ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Consume duration p75",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "messaging_destination"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "fillOpacity": 10,
            "lineWidth": 1,
            "spanNulls": true
          },
          "min": 0,
          "unit": "ms"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 12,
        "y": 79
      },
      "id": 704,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['messaging.destination'] AS messaging_destination, quantileExactWeighted(0.95)(pair.1, pair.2) AS value FROM `ktalk-metrics`.otel_metrics_histogram ARRAY JOIN arrayZip(ExplicitBounds, arraySlice(BucketCounts, 1, length(ExplicitBounds))) AS pair WHERE $__timeFilter(TimeUnix) AND MetricName = 'messaging.masstransit.consume.duration' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, messaging_destination ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Consume duration p95",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "messaging_destination"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "fillOpacity": 10,
            "lineWidth": 1,
            "spanNulls": true
          },
          "min": 0,
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 0,
        "y": 85
      },
      "id": 705,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['messaging.destination'] AS messaging_destination, (max(Value) - min(Value)) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'messaging.masstransit.send' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, messaging_destination ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Send events",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "messaging_destination"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "grafana-clickhouse-datasource",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "fillOpacity": 10,
            "lineWidth": 1,
            "spanNulls": true
          },
          "min": 0,
          "unit": "short"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 12,
        "x": 12,
        "y": 85
      },
      "id": 706,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max"
          ],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "grafana-clickhouse-datasource",
            "uid": "${datasource}"
          },
          "format": 0,
          "meta": {
            "builderOptions": {
              "queryType": "sql"
            }
          },
          "rawSql": "SELECT toStartOfInterval(TimeUnix, INTERVAL $__interval_s SECOND) AS time, ResourceAttributes['service.name'] AS service, Attributes['messaging.destination'] AS messaging_destination, (max(Value) - min(Value)) AS value FROM `ktalk-metrics`.otel_metrics_sum WHERE $__timeFilter(TimeUnix) AND MetricName = 'messaging.masstransit.receive' AND $__conditionalAll(ResourceAttributes['service.name'] IN (${service:singlequote}), $service) AND $__conditionalAll(ResourceAttributes['environment'] IN (${environment:singlequote}), $environment) AND $__conditionalAll(ResourceAttributes['project'] IN (${project:singlequote}), $project) AND $__conditionalAll(ResourceAttributes['subproject'] IN (${subproject:singlequote}), $subproject) GROUP BY time, service, messaging_destination ORDER BY time",
          "refId": "A"
        }
      ],
      "title": "Receive events",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "messaging_destination"
            ],
            "keepFields": false
          }
        }
      ],
      "type": "timeseries"
    }
  ],
  "preload": false,
  "refresh": "1m",
  "schemaVersion": 42,
  "tags": [
    "monitoring",
    "app",
    "dotnet",
    "otel"
  ],
  "templating": {
    "list": [
      {
        "current": {
          "text": "ClickHouse Metrics",
          "value": "P0F1D90E6992349E9"
        },
        "label": "Datasource",
        "name": "datasource",
        "options": [],
        "query": "grafana-clickhouse-datasource",
        "refresh": 1,
        "regex": "/ClickHouse Metrics.*/",
        "type": "datasource"
      },
      {
        "current": {
          "text": "All",
          "value": [
            "$__all"
          ]
        },
        "datasource": {
          "type": "grafana-clickhouse-datasource",
          "uid": "${datasource}"
        },
        "definition": "SELECT DISTINCT ResourceAttributes['service.name'] AS service FROM `ktalk-metrics`.otel_metrics_sum WHERE TimeUnix >= now() - INTERVAL 1 DAY ORDER BY 1",
        "includeAll": true,
        "label": "Service",
        "multi": true,
        "name": "service",
        "options": [],
        "query": "SELECT DISTINCT ResourceAttributes['service.name'] AS service FROM `ktalk-metrics`.otel_metrics_sum WHERE TimeUnix >= now() - INTERVAL 1 DAY ORDER BY 1",
        "refresh": 2,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {
          "text": "All",
          "value": [
            "$__all"
          ]
        },
        "datasource": {
          "type": "grafana-clickhouse-datasource",
          "uid": "${datasource}"
        },
        "definition": "SELECT DISTINCT ResourceAttributes['environment'] AS env FROM `ktalk-metrics`.otel_metrics_sum WHERE TimeUnix >= now() - INTERVAL 1 DAY ORDER BY 1",
        "includeAll": true,
        "label": "Environment",
        "multi": true,
        "name": "environment",
        "options": [],
        "query": "SELECT DISTINCT ResourceAttributes['environment'] AS env FROM `ktalk-metrics`.otel_metrics_sum WHERE TimeUnix >= now() - INTERVAL 1 DAY ORDER BY 1",
        "refresh": 2,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {
          "text": "All",
          "value": [
            "$__all"
          ]
        },
        "datasource": {
          "type": "grafana-clickhouse-datasource",
          "uid": "${datasource}"
        },
        "definition": "SELECT DISTINCT ResourceAttributes['project'] FROM `ktalk-metrics`.otel_metrics_sum WHERE TimeUnix >= now() - INTERVAL 1 DAY AND ResourceAttributes['project'] != '' ORDER BY 1",
        "includeAll": true,
        "label": "Project",
        "multi": true,
        "name": "project",
        "options": [],
        "query": "SELECT DISTINCT ResourceAttributes['project'] FROM `ktalk-metrics`.otel_metrics_sum WHERE TimeUnix >= now() - INTERVAL 1 DAY AND ResourceAttributes['project'] != '' ORDER BY 1",
        "refresh": 2,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {
          "text": "All",
          "value": [
            "$__all"
          ]
        },
        "datasource": {
          "type": "grafana-clickhouse-datasource",
          "uid": "${datasource}"
        },
        "definition": "SELECT DISTINCT ResourceAttributes['subproject'] FROM `ktalk-metrics`.otel_metrics_sum WHERE TimeUnix >= now() - INTERVAL 1 DAY AND ResourceAttributes['subproject'] != '' ORDER BY 1",
        "includeAll": true,
        "label": "Subproject",
        "multi": true,
        "name": "subproject",
        "options": [],
        "query": "SELECT DISTINCT ResourceAttributes['subproject'] FROM `ktalk-metrics`.otel_metrics_sum WHERE TimeUnix >= now() - INTERVAL 1 DAY AND ResourceAttributes['subproject'] != '' ORDER BY 1",
        "refresh": 2,
        "sort": 1,
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-1h",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "browser",
  "title": "KTalk Metrics",
  "uid": "ktalk-metrics",
  "version": 6
}