{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 18, "links": [], "panels": [ { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 18, "panels": [], "title": "Global", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "description": " Сравнивает сколько Go-heap занимает и сколько реально занимает весь процесс", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 10, "x": 0, "y": 1 }, "id": 5, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "process_resident_memory_bytes{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}", "legendFormat": "{{instance}} pod : {{pod}} : Resident Memory", "range": true, "refId": "A" }, { "editorMode": "code", "expr": "go_memstats_alloc_bytes{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}", "legendFormat": "{{instance}} pod : {{pod}} : Heap Allocated", "range": true, "refId": "B" } ], "title": "Memory: Resident vs Allocated", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "h" }, "overrides": [] }, "gridPos": { "h": 6, "w": 14, "x": 10, "y": 1 }, "id": 3, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto", "text": { "titleSize": 10 } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "(time() - process_start_time_seconds{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"} ) / 3600", "legendFormat": "{{instance}} pod : {{pod}} ", "range": true, "refId": "A" } ], "title": "Process Start Time (hours)", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "description": "Показывает производительность GC и его частоту. ", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 14, "x": 10, "y": 7 }, "id": 7, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "rate(go_gc_duration_seconds_sum{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m])", "legendFormat": "{{instance}} pod : {{pod}} :GC Time Rate (s/sec)", "range": true, "refId": "A" }, { "editorMode": "code", "expr": "go_memstats_next_gc_bytes{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}", "legendFormat": "{{instance}} pod : {{pod}} : Next GC Threshold (bytes)", "range": true, "refId": "B" } ], "title": "GC Duration & Next GC", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 5, "w": 10, "x": 0, "y": 8 }, "id": 14, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto", "text": { "titleSize": 10 } }, "pluginVersion": "12.1.0", "targets": [ { "disableTextWrap": false, "editorMode": "code", "expr": "tusd_connections_open{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}", "format": "time_series", "fullMetaSearch": false, "includeNullMetadata": true, "interval": "", "legendFormat": "{{instance}} pod: {{pod}}", "range": true, "refId": "A", "useBackend": false } ], "title": "Open Connections", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 5, "w": 10, "x": 0, "y": 13 }, "id": 1, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto", "text": { "titleSize": 10 } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "up{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}", "legendFormat": "{{instance}} pod : {{pod}}", "range": true, "refId": "A" } ], "title": "App Status", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "description": "Сетевой трафик ", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "Bps" }, "overrides": [] }, "gridPos": { "h": 12, "w": 14, "x": 10, "y": 14 }, "id": 9, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "rate(process_network_receive_bytes_total{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m])", "legendFormat": "{{instance}} pod : {{pod}} Network Out (bytes/sec)", "range": true, "refId": "A" }, { "editorMode": "code", "expr": "rate(process_network_transmit_bytes_total{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m])", "legendFormat": "{{instance}} pod : {{pod}} Network Out (bytes/sec):{{instance}}", "range": true, "refId": "B" } ], "title": "Network I/O", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [] }, "gridPos": { "h": 8, "w": 10, "x": 0, "y": 18 }, "id": 15, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "rate(tusd_bytes_received{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m])", "legendFormat": "{{instance}} pod : {{pod}} ", "range": true, "refId": "A" } ], "title": "Bytes Received (Rate)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "description": "Полная картина активности TUSD", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 6, "w": 24, "x": 0, "y": 26 }, "id": 10, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "rate(tusd_uploads_created{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m])", "legendFormat": "{{instance}} pod : {{pod}} : tusd_uploads_created", "range": true, "refId": "A" }, { "editorMode": "code", "expr": "rate(tusd_uploads_finished{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m])", "legendFormat": "{{instance}} pod : {{pod}} : tusd_uploads_finished", "range": true, "refId": "B" }, { "editorMode": "code", "exemplar": false, "expr": "rate(tusd_uploads_terminated{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m])", "legendFormat": "{{instance}} pod : {{pod}} : tusd_uploads_terminated", "range": true, "refId": "C" }, { "editorMode": "code", "expr": "rate(tusd_bytes_received{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m])", "legendFormat": "{{instance}} pod : {{pod}} : tusd_bytes_received", "range": true, "refId": "D" } ], "title": "Tusd Uploads lifecycle", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 8, "x": 0, "y": 32 }, "id": 4, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "rate(process_cpu_seconds_total{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m])", "legendFormat": "{{instance}} pod : {{pod}} ", "range": true, "refId": "A" } ], "title": "CPU Usage (rate)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "description": "Слежение за количеством горутин и системных потоков.", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 7, "x": 8, "y": 32 }, "id": 6, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "go_goroutines{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}", "legendFormat": "{{instance}} pod : {{pod}} : Goroutines", "range": true, "refId": "A" }, { "editorMode": "code", "expr": "go_threads{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}", "legendFormat": "{{instance}} pod : {{pod}} : OS Threads", "range": true, "refId": "B" } ], "title": "Goroutines & Threads", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "description": "Разделение памяти Go между heap и stack.", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 9, "x": 15, "y": 32 }, "id": 8, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "go_memstats_heap_alloc_bytes{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}", "legendFormat": "{{instance}} pod : {{pod}} : Heap Usage (bytes)", "range": true, "refId": "A" }, { "editorMode": "code", "expr": "go_memstats_stack_inuse_bytes{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}", "legendFormat": "{{instance}} pod : {{pod}} : Stack Usage (bytes)", "range": true, "refId": "B" } ], "title": "Heap & Stack Stats", "type": "timeseries" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 39 }, "id": 20, "panels": [], "title": "Requests", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 40 }, "id": 22, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "rate(tusd_errors_total{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m])", "legendFormat": "{{instance}} pod : {{pod}} : {{code}}", "range": true, "refId": "A" } ], "title": "Errors (Rate)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 40 }, "id": 21, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "rate(tusd_requests_total{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m])", "legendFormat": "{{instance}} pod : {{pod}} : {{method}}", "range": true, "refId": "A" } ], "title": "Total Requests (Rate)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "description": "Среднюю продолжительность HTTP-запросов к S3.", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "series", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 5, "w": 24, "x": 0, "y": 48 }, "id": 11, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "prom" }, "editorMode": "code", "expr": "rate(tusd_s3_request_duration_ms_sum{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m]) ", "hide": false, "instant": false, "interval": "", "legendFormat": "{{instance}} pod : {{pod}} : {{operation}}", "range": true, "refId": "A" } ], "title": "HTTP S3 Request", "type": "timeseries" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 53 }, "id": 23, "panels": [], "title": "S3", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 18, "x": 0, "y": 54 }, "id": 26, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "tusd_s3_upload_semaphore_demand{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}", "legendFormat": "{{instance}} pod : {{pod}} : demand", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "editorMode": "code", "expr": "tusd_s3_upload_semaphore_limit{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}", "hide": false, "instant": false, "legendFormat": "{{instance}} pod : {{pod}} : limit", "range": true, "refId": "B" } ], "title": "S3 Upload Semaphore Demand vs Limit", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 18, "y": 54 }, "id": 25, "options": { "minVizHeight": 75, "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "sizing": "auto" }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "tusd_s3_disk_write_duration_ms_sum / tusd_s3_disk_write_duration_ms_count {job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}\r\n", "legendFormat": "{{instance}} pod : {{pod}}", "range": true, "refId": "A" } ], "title": "S3 Disk Write Duration (Avg, ms)", "type": "gauge" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 9, "w": 24, "x": 0, "y": 62 }, "id": 24, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "(\r\n rate(tusd_s3_request_duration_ms_sum{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[$__interval_ms])\r\n)\r\n/\r\n(\r\n rate(tusd_s3_request_duration_ms_count{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[$__interval_ms])\r\n)", "legendFormat": "{{instance}} pod : {{pod}} : {{operation}}", "range": true, "refId": "A" } ], "title": "Request Duration (Avg, ms)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "description": "Среднюю продолжительность записи на диск", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 15, "w": 24, "x": 0, "y": 71 }, "id": 13, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showPercentChange": true, "text": { "titleSize": 15, "valueSize": 25 }, "textMode": "auto", "wideLayout": true }, "pluginVersion": "12.1.0", "targets": [ { "datasource": { "type": "prometheus", "uid": "prom" }, "editorMode": "code", "expr": "tusd_s3_disk_write_duration_ms_sum{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}", "legendFormat": "{{instance}} pod : {{pod}} : Disk Write Duration sum (ms)", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "editorMode": "code", "expr": "tusd_s3_disk_write_duration_ms_count{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}", "hide": false, "instant": false, "legendFormat": "{{instance}} pod : {{pod}} : Disk Write Duration count (ms)", "range": true, "refId": "B" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "editorMode": "code", "expr": "tusd_s3_disk_write_duration_ms{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}", "hide": false, "instant": false, "legendFormat": "{{instance}} pod : {{pod}} : tusd Disk Write Time {{quantile}}", "range": true, "refId": "C" } ], "title": "S3 Disk operations", "type": "stat" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 86 }, "id": 19, "panels": [], "title": "Hooks", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 87 }, "id": 16, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "rate(tusd_hook_invocations_total{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m])", "legendFormat": "{{instance}} pod : {{pod}} : {{hooktype}}", "range": true, "refId": "A" } ], "title": "Hook Invocations (Rate)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 87 }, "id": 17, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "rate(tusd_hook_errors_total{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m])", "legendFormat": "{{instance}} pod : {{pod}} : {{hooktype}}", "range": true, "refId": "A" } ], "title": "Hook Errors (Rate)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prom" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 5, "w": 24, "x": 0, "y": 95 }, "id": 27, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "single", "sort": "none" } }, "pluginVersion": "12.1.0", "targets": [ { "editorMode": "code", "expr": "rate(tusd_hook_errors_total{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m]) / rate(tusd_hook_invocations_total{job=\"integrations/tusd\", instance=~\"$Instance\", pod=~\"$pod\"}[5m])", "legendFormat": "{{instance}} pod : {{pod}} : {{hooktype}}", "range": true, "refId": "A" } ], "title": "Hook Error Ratio", "type": "timeseries" } ], "preload": false, "refresh": "10s", "schemaVersion": 41, "tags": [], "templating": { "list": [ { "allValue": "~\"$cluster\"", "allowCustomValue": true, "current": { "text": "yandex-prod", "value": "yandex-prod" }, "definition": "label_values(cluster)", "includeAll": false, "label": "Cluster", "name": "cluster", "options": [], "query": { "qryType": 1, "query": "label_values(cluster)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "type": "query" }, { "current": { "text": "All", "value": "$__all" }, "definition": "label_values({cluster=~\"$cluster\", job=\"integrations/tusd\"},instance)", "includeAll": true, "multi": true, "name": "Instance", "options": [], "query": { "qryType": 1, "query": "label_values({cluster=~\"$cluster\", job=\"integrations/tusd\"},instance)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "type": "query" }, { "current": { "text": "All", "value": "$__all" }, "definition": "label_values({cluster=~\"$cluster\", job=\"integrations/tusd\"},pod)", "includeAll": true, "multi": true, "name": "pod", "options": [], "query": { "qryType": 1, "query": "label_values({cluster=~\"$cluster\", job=\"integrations/tusd\"},pod)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "type": "query" } ] }, "time": { "from": "now-12h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Tusd Metrics", "uid": "tusd-metric-new-try", "version": 3 }