{%- raw %} { "annotations": { "list": [ { "builtIn": 1, "datasource": "prometheus", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "description": "Monitors Remote Storage Adapter using Prometheus.", "editable": true, "gnetId": null, "graphTooltip": 1, "id": null, "iteration": 1529933870105, "links": [], "panels": [ { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 10, "panels": [], "repeat": null, "title": "Status", "type": "row" }, { "cacheTimeout": null, "colorBackground": false, "colorValue": true, "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "#299c46" ], "datasource": null, "format": "none", "gauge": { "maxValue": 1, "minValue": 0, "show": false, "thresholdLabels": false, "thresholdMarkers": true }, "gridPos": { "h": 3, "w": 24, "x": 0, "y": 1 }, "id": 1, "interval": null, "links": [], "mappingType": 1, "mappingTypes": [ { "name": "value to text", "value": 1 }, { "name": "range to text", "value": 2 } ], "maxDataPoints": 100, "minSpan": 3, "nullPointMode": "connected", "nullText": null, "postfix": "", "postfixFontSize": "50%", "prefix": "", "prefixFontSize": "50%", "rangeMaps": [ { "from": "null", "text": "N/A", "to": "null" } ], "repeat": null, "repeatDirection": "h", "sparkline": { "fillColor": "rgba(31, 118, 189, 0.18)", "full": false, "lineColor": "rgb(31, 120, 193)", "show": false }, "tableColumn": "", "targets": [ { "expr": "up{environment=\"$environment\", job=\"remote_storage_adapter\",instance=~\"$instance:[1-9][0-9]*\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "", "refId": "A", "step": 20 } ], "thresholds": "1,1", "title": "Health", "type": "singlestat", "valueFontSize": "80%", "valueMaps": [ { "op": "=", "text": "N/A", "value": "null" }, { "op": "=", "text": "FAIL", "value": "0" }, { "op": "=", "text": "OK", "value": "1" } ], "valueName": "current" }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 4 }, "id": 13, "panels": [], "title": "Samples", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "decimals": 0, "fill": 1, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 5 }, "id": 2, "legend": { "alignAsTable": true, "avg": false, "current": false, "max": false, "min": false, "rightSide": true, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], "minSpan": 3, "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "repeat": null, "repeatDirection": "h", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "rate(sent_samples_total{environment=\"$environment\", job=\"remote_storage_adapter\",instance=~\"$instance:[1-9][0-9]*\"}[$rate_interval])", "format": "time_series", "intervalFactor": 2, "legendFormat": "sent", "refId": "A", "step": 2 }, { "expr": "rate(received_samples_total{environment=\"$environment\", job=\"remote_storage_adapter\",instance=~\"$instance:[1-9][0-9]*\"}[$rate_interval])", "format": "time_series", "intervalFactor": 2, "legendFormat": "received", "refId": "B", "step": 2 }, { "expr": "rate(prometheus_influxdb_ignored_samples_total{environment=\"$environment\", job=\"remote_storage_adapter\",instance=~\"$instance:[1-9][0-9]*\"}[$rate_interval])", "format": "time_series", "intervalFactor": 1, "legendFormat": "ignored", "refId": "C" } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Samples rate", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "Samples / Second", "logBase": 1, "max": null, "min": "0", "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "decimals": 2, "fill": 1, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 5 }, "id": 4, "legend": { "alignAsTable": true, "avg": true, "current": false, "max": false, "min": false, "rightSide": true, "show": false, "total": false, "values": true }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "repeat": null, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "rate(sent_batch_duration_seconds_sum{environment=\"$environment\", job=\"remote_storage_adapter\"}[$rate_interval])", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{ instance }}", "refId": "C", "step": 2 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Batch Duration", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "Batch / Second", "logBase": 1, "max": null, "min": "0", "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 12 }, "id": 11, "panels": [], "repeat": null, "title": "Resources", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "decimals": 2, "editable": true, "error": false, "fill": 1, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 13 }, "id": 9, "legend": { "alignAsTable": true, "avg": false, "current": false, "hideEmpty": false, "max": false, "min": false, "rightSide": true, "show": false, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "repeat": null, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "rate(process_cpu_seconds_total{environment=\"$environment\", job=\"remote_storage_adapter\"}[$rate_interval])", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{ instance }}", "metric": "prometheus_local_storage_ingested_samples_total", "refId": "B", "step": 10 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "CPU Usage Rate", "tooltip": { "msResolution": false, "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [ "avg" ] }, "yaxes": [ { "format": "none", "label": "CPU seconds / Second", "logBase": 1, "max": null, "min": "0", "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "editable": true, "error": false, "fill": 1, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 13 }, "id": 7, "legend": { "alignAsTable": true, "avg": true, "current": false, "max": false, "min": false, "rightSide": true, "show": false, "total": false, "values": true }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "repeat": null, "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "rate(go_memstats_alloc_bytes_total{environment=\"$environment\", job=\"remote_storage_adapter\"}[$rate_interval])", "format": "time_series", "intervalFactor": 2, "legendFormat": "{{ instance }}", "metric": "go_memstats_alloc_bytes", "refId": "A", "step": 10 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Allocation Rate", "tooltip": { "msResolution": false, "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "Bps", "label": "", "logBase": 1, "max": null, "min": "0", "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": null, "decimals": null, "editable": true, "error": false, "fill": 1, "gridPos": { "h": 7, "w": 24, "x": 0, "y": 20 }, "id": 6, "legend": { "alignAsTable": true, "avg": false, "current": false, "max": false, "min": false, "rightSide": true, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], "minSpan": 3, "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "repeat": null, "repeatDirection": "v", "seriesOverrides": [ { "alias": "/-/", "fill": 0 } ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "expr": "process_resident_memory_bytes{environment=\"$environment\", job=\"remote_storage_adapter\",instance=~\"$instance:[1-9][0-9]*\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "RSS", "metric": "process_resident_memory_bytes", "refId": "B", "step": 10 }, { "expr": "max_over_time(go_memstats_alloc_bytes{environment=\"$environment\", job=\"remote_storage_adapter\",instance=~\"$instance:[1-9][0-9]*\"}[$rate_interval])", "format": "time_series", "intervalFactor": 2, "legendFormat": "allocated max in {{ $rate_interval }}", "metric": "go_memstats_alloc_bytes", "refId": "D", "step": 10 }, { "expr": "go_memstats_alloc_bytes{environment=\"$environment\", job=\"remote_storage_adapter\",instance=~\"$instance:[1-9][0-9]*\"}", "format": "time_series", "intervalFactor": 2, "legendFormat": "allocated current", "metric": "go_memstats_alloc_bytes", "refId": "A", "step": 10 }, { "expr": "min_over_time(go_memstats_alloc_bytes{environment=\"$environment\", job=\"remote_storage_adapter\",instance=~\"$instance:[1-9][0-9]*\"}[$rate_interval])", "format": "time_series", "intervalFactor": 2, "legendFormat": "allocated min in {{ $rate_interval }}", "metric": "go_memstats_alloc_bytes", "refId": "C", "step": 10 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Memory", "tooltip": { "msResolution": false, "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "buckets": null, "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "bytes", "label": "", "logBase": 1, "max": null, "min": "0", "show": true }, { "format": "short", "label": null, "logBase": 1, "max": null, "min": null, "show": true } ], "yaxis": { "align": false, "alignLevel": null } } ], "refresh": "1m", "schemaVersion": 16, "style": "dark", "tags": [ "prometheus" ], "templating": { "list": [ { "allValue": null, "current": null, "datasource": "prometheus", "hide": 0, "includeAll": false, "label": null, "multi": false, "name": "environment", "options": [], "query": "label_values(environment)", "refresh": 1, "regex": "", "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { "allValue": null, "current": { "text": "10.0.0.14", "value": "10.0.0.14" }, "datasource": null, "hide": 0, "includeAll": false, "label": "instance", "multi": false, "name": "instance", "options": [], "query": "query_result(up{environment=\"$environment\", job=\"remote_storage_adapter\"} == 1)", "refresh": 1, "regex": ".*instance=\"([^:]+):[1-9][0-9]*\".*", "sort": 1, "tagValuesQuery": null, "tags": [], "tagsQuery": null, "type": "query", "useTags": false }, { "allValue": null, "current": { "tags": [], "text": "3m", "value": "3m" }, "hide": 0, "includeAll": false, "label": "rate_interval", "multi": false, "name": "rate_interval", "options": [ { "selected": false, "text": "1m", "value": "1m" }, { "selected": false, "text": "2m", "value": "2m" }, { "selected": true, "text": "3m", "value": "3m" }, { "selected": false, "text": "5m", "value": "5m" }, { "selected": false, "text": "10m", "value": "10m" }, { "selected": false, "text": "15m", "value": "15m" } ], "query": "1m,2m,3m,5m,10m,15m", "type": "custom" } ] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ] }, "timezone": "browser", "title": "Remote Storage Adapter", "uid": null, "version": 2 } {%- endraw %}