| # Licensed to the Apache Software Foundation (ASF) under one or more |
| # contributor license agreements. See the NOTICE file distributed with |
| # this work for additional information regarding copyright ownership. |
| # The ASF licenses this file to You under the Apache License, Version 2.0 |
| # (the "License"); you may not use this file except in compliance with |
| # the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License |
| |
| { |
| "__inputs": [ |
| { |
| "name": "DS_LOCAL", |
| "label": "local", |
| "description": "", |
| "type": "datasource", |
| "pluginId": "prometheus", |
| "pluginName": "Prometheus" |
| } |
| ], |
| "__requires": [ |
| { |
| "type": "grafana", |
| "id": "grafana", |
| "name": "Grafana", |
| "version": "5.1.0" |
| }, |
| { |
| "type": "panel", |
| "id": "graph", |
| "name": "Graph", |
| "version": "5.0.0" |
| }, |
| { |
| "type": "datasource", |
| "id": "prometheus", |
| "name": "Prometheus", |
| "version": "5.0.0" |
| }, |
| { |
| "type": "panel", |
| "id": "singlestat", |
| "name": "Singlestat", |
| "version": "5.0.0" |
| }, |
| { |
| "type": "panel", |
| "id": "text", |
| "name": "Text", |
| "version": "5.0.0" |
| } |
| ], |
| "annotations": { |
| "list": [ |
| { |
| "builtIn": 1, |
| "datasource": "-- Grafana --", |
| "enable": true, |
| "hide": true, |
| "iconColor": "rgba(0, 211, 255, 1)", |
| "name": "Annotations & Alerts", |
| "type": "dashboard" |
| } |
| ] |
| }, |
| "editable": true, |
| "gnetId": null, |
| "graphTooltip": 0, |
| "id": null, |
| "links": [ |
| { |
| "icon": "external link", |
| "tags": [], |
| "title": "servicecomb.io", |
| "type": "link", |
| "url": "http://servicecomb.io" |
| } |
| ], |
| "panels": [ |
| { |
| "aliasColors": {}, |
| "bars": false, |
| "dashLength": 10, |
| "dashes": false, |
| "datasource": "${DS_LOCAL}", |
| "fill": 1, |
| "gridPos": { |
| "h": 6, |
| "w": 8, |
| "x": 0, |
| "y": 0 |
| }, |
| "height": "", |
| "id": 1, |
| "legend": { |
| "alignAsTable": true, |
| "avg": true, |
| "current": true, |
| "max": false, |
| "min": false, |
| "show": true, |
| "sort": null, |
| "sortDesc": null, |
| "total": false, |
| "values": true |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "links": [], |
| "minSpan": 4, |
| "nullPointMode": "null", |
| "percentage": false, |
| "pointradius": 5, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "expr": "max(max_over_time(service_center_http_request_durations_microseconds{job=\"service-center\",method=\"GET\"}[1m]))", |
| "format": "time_series", |
| "instant": false, |
| "intervalFactor": 2, |
| "legendFormat": "read", |
| "refId": "A" |
| }, |
| { |
| "expr": "max(max_over_time(service_center_http_request_durations_microseconds{job=\"service-center\",method!=\"GET\"}[1m]))", |
| "format": "time_series", |
| "intervalFactor": 2, |
| "legendFormat": "write", |
| "refId": "B" |
| } |
| ], |
| "thresholds": [], |
| "timeFrom": null, |
| "timeShift": null, |
| "title": "I/O Latency", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "buckets": null, |
| "mode": "time", |
| "name": null, |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "format": "µs", |
| "label": null, |
| "logBase": 1, |
| "max": null, |
| "min": null, |
| "show": true |
| }, |
| { |
| "format": "short", |
| "label": null, |
| "logBase": 1, |
| "max": null, |
| "min": null, |
| "show": true |
| } |
| ], |
| "yaxis": { |
| "align": false, |
| "alignLevel": null |
| } |
| }, |
| { |
| "cacheTimeout": null, |
| "colorBackground": false, |
| "colorValue": true, |
| "colors": [ |
| "#d44a3a", |
| "rgba(237, 129, 40, 0.89)", |
| "#299c46" |
| ], |
| "datasource": "${DS_LOCAL}", |
| "format": "percentunit", |
| "gauge": { |
| "maxValue": 1, |
| "minValue": 0, |
| "show": true, |
| "thresholdLabels": false, |
| "thresholdMarkers": true |
| }, |
| "gridPos": { |
| "h": 6, |
| "w": 4, |
| "x": 8, |
| "y": 0 |
| }, |
| "id": 12, |
| "interval": null, |
| "links": [], |
| "mappingType": 1, |
| "mappingTypes": [ |
| { |
| "name": "value to text", |
| "value": 1 |
| }, |
| { |
| "name": "range to text", |
| "value": 2 |
| } |
| ], |
| "maxDataPoints": 100, |
| "minSpan": 4, |
| "nullPointMode": "connected", |
| "nullText": null, |
| "postfix": "", |
| "postfixFontSize": "50%", |
| "prefix": "", |
| "prefixFontSize": "50%", |
| "rangeMaps": [ |
| { |
| "from": "null", |
| "text": "N/A", |
| "to": "null" |
| } |
| ], |
| "sparkline": { |
| "fillColor": "rgba(31, 118, 189, 0.18)", |
| "full": true, |
| "lineColor": "rgb(31, 120, 193)", |
| "show": true |
| }, |
| "tableColumn": "", |
| "targets": [ |
| { |
| "expr": "sum(service_center_http_success_total{job=\"service-center\"})/sum(service_center_http_request_total{job=\"service-center\"})", |
| "format": "time_series", |
| "intervalFactor": 2, |
| "refId": "A" |
| } |
| ], |
| "thresholds": ".5,.8", |
| "title": "Global Success Rate", |
| "transparent": false, |
| "type": "singlestat", |
| "valueFontSize": "80%", |
| "valueMaps": [ |
| { |
| "op": "=", |
| "text": "N/A", |
| "value": "null" |
| } |
| ], |
| "valueName": "current" |
| }, |
| { |
| "cacheTimeout": null, |
| "colorBackground": false, |
| "colorValue": false, |
| "colors": [ |
| "#299c46", |
| "rgba(237, 129, 40, 0.89)", |
| "#d44a3a" |
| ], |
| "datasource": "${DS_LOCAL}", |
| "format": "none", |
| "gauge": { |
| "maxValue": 100, |
| "minValue": 0, |
| "show": false, |
| "thresholdLabels": false, |
| "thresholdMarkers": true |
| }, |
| "gridPos": { |
| "h": 6, |
| "w": 4, |
| "x": 12, |
| "y": 0 |
| }, |
| "id": 13, |
| "interval": null, |
| "links": [], |
| "mappingType": 1, |
| "mappingTypes": [ |
| { |
| "name": "value to text", |
| "value": 1 |
| }, |
| { |
| "name": "range to text", |
| "value": 2 |
| } |
| ], |
| "maxDataPoints": 100, |
| "minSpan": 4, |
| "nullPointMode": "connected", |
| "nullText": null, |
| "postfix": "", |
| "postfixFontSize": "50%", |
| "prefix": "", |
| "prefixFontSize": "50%", |
| "rangeMaps": [ |
| { |
| "from": "null", |
| "text": "N/A", |
| "to": "null" |
| } |
| ], |
| "sparkline": { |
| "fillColor": "rgba(31, 118, 189, 0.18)", |
| "full": true, |
| "lineColor": "rgb(31, 120, 193)", |
| "show": true |
| }, |
| "tableColumn": "", |
| "targets": [ |
| { |
| "expr": "sum(irate(service_center_http_request_total{job=\"service-center\"}[1m]))", |
| "format": "time_series", |
| "instant": false, |
| "intervalFactor": 2, |
| "refId": "A" |
| } |
| ], |
| "thresholds": "", |
| "title": "Global Request Volume", |
| "type": "singlestat", |
| "valueFontSize": "80%", |
| "valueMaps": [ |
| { |
| "op": "=", |
| "text": "N/A", |
| "value": "null" |
| } |
| ], |
| "valueName": "avg" |
| }, |
| { |
| "cacheTimeout": null, |
| "colorBackground": false, |
| "colorValue": false, |
| "colors": [ |
| "#299c46", |
| "rgba(237, 129, 40, 0.89)", |
| "#d44a3a" |
| ], |
| "datasource": "${DS_LOCAL}", |
| "format": "rps", |
| "gauge": { |
| "maxValue": 100, |
| "minValue": 0, |
| "show": false, |
| "thresholdLabels": false, |
| "thresholdMarkers": true |
| }, |
| "gridPos": { |
| "h": 6, |
| "w": 4, |
| "x": 16, |
| "y": 0 |
| }, |
| "id": 10, |
| "interval": null, |
| "links": [], |
| "mappingType": 1, |
| "mappingTypes": [ |
| { |
| "name": "value to text", |
| "value": 1 |
| }, |
| { |
| "name": "range to text", |
| "value": 2 |
| } |
| ], |
| "maxDataPoints": 100, |
| "minSpan": 4, |
| "nullPointMode": "connected", |
| "nullText": null, |
| "postfix": "", |
| "postfixFontSize": "50%", |
| "prefix": "", |
| "prefixFontSize": "50%", |
| "rangeMaps": [ |
| { |
| "from": "null", |
| "text": "N/A", |
| "to": "null" |
| } |
| ], |
| "sparkline": { |
| "fillColor": "rgba(31, 118, 189, 0.18)", |
| "full": true, |
| "lineColor": "rgb(31, 120, 193)", |
| "show": true |
| }, |
| "tableColumn": "", |
| "targets": [ |
| { |
| "expr": "sum(irate(service_center_http_request_total{job=\"service-center\",code=~\"4.+\"}[1m]))", |
| "format": "time_series", |
| "instant": false, |
| "intervalFactor": 2, |
| "legendFormat": "", |
| "refId": "A" |
| } |
| ], |
| "thresholds": "", |
| "title": "4XX Errors", |
| "type": "singlestat", |
| "valueFontSize": "80%", |
| "valueMaps": [ |
| { |
| "op": "=", |
| "text": "N/A", |
| "value": "null" |
| } |
| ], |
| "valueName": "avg" |
| }, |
| { |
| "cacheTimeout": null, |
| "colorBackground": false, |
| "colorValue": false, |
| "colors": [ |
| "#299c46", |
| "rgba(237, 129, 40, 0.89)", |
| "#d44a3a" |
| ], |
| "datasource": "${DS_LOCAL}", |
| "format": "rps", |
| "gauge": { |
| "maxValue": 100, |
| "minValue": 0, |
| "show": false, |
| "thresholdLabels": false, |
| "thresholdMarkers": true |
| }, |
| "gridPos": { |
| "h": 6, |
| "w": 4, |
| "x": 20, |
| "y": 0 |
| }, |
| "id": 11, |
| "interval": null, |
| "links": [], |
| "mappingType": 1, |
| "mappingTypes": [ |
| { |
| "name": "value to text", |
| "value": 1 |
| }, |
| { |
| "name": "range to text", |
| "value": 2 |
| } |
| ], |
| "maxDataPoints": 100, |
| "minSpan": 4, |
| "nullPointMode": "connected", |
| "nullText": null, |
| "postfix": "", |
| "postfixFontSize": "50%", |
| "prefix": "", |
| "prefixFontSize": "50%", |
| "rangeMaps": [ |
| { |
| "from": "null", |
| "text": "N/A", |
| "to": "null" |
| } |
| ], |
| "sparkline": { |
| "fillColor": "rgba(31, 118, 189, 0.18)", |
| "full": true, |
| "lineColor": "rgb(31, 120, 193)", |
| "show": true |
| }, |
| "tableColumn": "", |
| "targets": [ |
| { |
| "expr": "sum(irate(service_center_http_request_total{job=\"service-center\",code=~\"5.+\"}[1m]))", |
| "format": "time_series", |
| "intervalFactor": 2, |
| "refId": "A" |
| } |
| ], |
| "thresholds": "", |
| "title": "5XX Errors", |
| "type": "singlestat", |
| "valueFontSize": "80%", |
| "valueMaps": [ |
| { |
| "op": "=", |
| "text": "N/A", |
| "value": "null" |
| } |
| ], |
| "valueName": "avg" |
| }, |
| { |
| "content": "<div class=\"text-center dashboard-header\">\n <span>INSTANCE METRICS</span>\n</div>\n", |
| "gridPos": { |
| "h": 3, |
| "w": 24, |
| "x": 0, |
| "y": 6 |
| }, |
| "height": "1px", |
| "id": 3, |
| "links": [], |
| "mode": "html", |
| "repeat": null, |
| "title": "", |
| "transparent": true, |
| "type": "text" |
| }, |
| { |
| "aliasColors": {}, |
| "bars": false, |
| "dashLength": 10, |
| "dashes": false, |
| "datasource": "${DS_LOCAL}", |
| "fill": 1, |
| "gridPos": { |
| "h": 7, |
| "w": 8, |
| "x": 0, |
| "y": 9 |
| }, |
| "height": "", |
| "id": 2, |
| "legend": { |
| "alignAsTable": true, |
| "avg": true, |
| "current": true, |
| "max": true, |
| "min": true, |
| "show": true, |
| "sort": "current", |
| "sortDesc": true, |
| "total": false, |
| "values": true |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "links": [], |
| "nullPointMode": "null", |
| "percentage": false, |
| "pointradius": 5, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "expr": "go_goroutines{job=\"service-center\"}", |
| "format": "time_series", |
| "instant": false, |
| "intervalFactor": 2, |
| "legendFormat": "goroutines_{{instance}}", |
| "refId": "A" |
| } |
| ], |
| "thresholds": [], |
| "timeFrom": null, |
| "timeShift": null, |
| "title": "Goroutines", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "buckets": null, |
| "mode": "time", |
| "name": null, |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "format": "none", |
| "label": null, |
| "logBase": 1, |
| "max": null, |
| "min": null, |
| "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": "${DS_LOCAL}", |
| "fill": 1, |
| "gridPos": { |
| "h": 7, |
| "w": 8, |
| "x": 8, |
| "y": 9 |
| }, |
| "height": "", |
| "id": 9, |
| "legend": { |
| "alignAsTable": true, |
| "avg": true, |
| "current": true, |
| "max": true, |
| "min": true, |
| "show": true, |
| "total": false, |
| "values": true |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "links": [], |
| "nullPointMode": "null", |
| "percentage": false, |
| "pointradius": 5, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "expr": "irate(process_cpu_seconds_total{job=\"service-center\"}[1m])", |
| "format": "time_series", |
| "instant": false, |
| "intervalFactor": 2, |
| "legendFormat": "cpu_{{instance}}", |
| "refId": "A" |
| } |
| ], |
| "thresholds": [], |
| "timeFrom": null, |
| "timeShift": null, |
| "title": "CPU", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "buckets": null, |
| "mode": "time", |
| "name": null, |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "format": "s", |
| "label": null, |
| "logBase": 1, |
| "max": null, |
| "min": null, |
| "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": "${DS_LOCAL}", |
| "fill": 1, |
| "gridPos": { |
| "h": 7, |
| "w": 8, |
| "x": 16, |
| "y": 9 |
| }, |
| "height": "", |
| "id": 8, |
| "legend": { |
| "alignAsTable": true, |
| "avg": true, |
| "current": true, |
| "max": true, |
| "min": true, |
| "show": true, |
| "total": false, |
| "values": true |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "links": [], |
| "nullPointMode": "null", |
| "percentage": false, |
| "pointradius": 5, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "expr": "max(max_over_time(go_gc_duration_seconds{job=\"service-center\"}[1m])) by (instance)", |
| "format": "time_series", |
| "instant": false, |
| "intervalFactor": 2, |
| "legendFormat": "gc_{{instance}}", |
| "refId": "A" |
| } |
| ], |
| "thresholds": [], |
| "timeFrom": null, |
| "timeShift": null, |
| "title": "GC Latency", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "buckets": null, |
| "mode": "time", |
| "name": null, |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "format": "s", |
| "label": null, |
| "logBase": 1, |
| "max": null, |
| "min": null, |
| "show": true |
| }, |
| { |
| "format": "short", |
| "label": null, |
| "logBase": 1, |
| "max": null, |
| "min": null, |
| "show": true |
| } |
| ], |
| "yaxis": { |
| "align": false, |
| "alignLevel": null |
| } |
| }, |
| { |
| "content": "<div class=\"text-center dashboard-header\">\n <span>RESOURCES</span>\n</div>\n", |
| "gridPos": { |
| "h": 3, |
| "w": 24, |
| "x": 0, |
| "y": 16 |
| }, |
| "height": "1px", |
| "id": 4, |
| "links": [], |
| "mode": "html", |
| "title": "", |
| "transparent": true, |
| "type": "text" |
| }, |
| { |
| "aliasColors": {}, |
| "bars": false, |
| "dashLength": 10, |
| "dashes": false, |
| "datasource": "${DS_LOCAL}", |
| "fill": 1, |
| "gridPos": { |
| "h": 7, |
| "w": 8, |
| "x": 0, |
| "y": 19 |
| }, |
| "id": 5, |
| "legend": { |
| "alignAsTable": true, |
| "avg": true, |
| "current": true, |
| "max": true, |
| "min": true, |
| "show": true, |
| "total": false, |
| "values": true |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "links": [], |
| "nullPointMode": "null", |
| "percentage": false, |
| "pointradius": 5, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "expr": "go_threads{job=\"service-center\"}", |
| "format": "time_series", |
| "intervalFactor": 2, |
| "legendFormat": "threads_{{instance}}", |
| "refId": "A" |
| } |
| ], |
| "thresholds": [], |
| "timeFrom": null, |
| "timeShift": null, |
| "title": "Threads", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "buckets": null, |
| "mode": "time", |
| "name": null, |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "format": "short", |
| "label": null, |
| "logBase": 1, |
| "max": null, |
| "min": null, |
| "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": "${DS_LOCAL}", |
| "fill": 1, |
| "gridPos": { |
| "h": 7, |
| "w": 8, |
| "x": 8, |
| "y": 19 |
| }, |
| "id": 6, |
| "legend": { |
| "alignAsTable": true, |
| "avg": true, |
| "current": true, |
| "max": true, |
| "min": true, |
| "show": true, |
| "total": false, |
| "values": true |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "links": [], |
| "nullPointMode": "null", |
| "percentage": false, |
| "pointradius": 5, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "expr": "process_open_fds{job=\"service-center\"}", |
| "format": "time_series", |
| "intervalFactor": 2, |
| "legendFormat": "fds_{{instance}}", |
| "refId": "A" |
| } |
| ], |
| "thresholds": [], |
| "timeFrom": null, |
| "timeShift": null, |
| "title": "File Descriptions", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "buckets": null, |
| "mode": "time", |
| "name": null, |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "format": "short", |
| "label": null, |
| "logBase": 1, |
| "max": null, |
| "min": null, |
| "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": "${DS_LOCAL}", |
| "fill": 1, |
| "gridPos": { |
| "h": 7, |
| "w": 8, |
| "x": 16, |
| "y": 19 |
| }, |
| "id": 14, |
| "legend": { |
| "alignAsTable": true, |
| "avg": true, |
| "current": true, |
| "max": true, |
| "min": true, |
| "show": true, |
| "total": false, |
| "values": true |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "links": [], |
| "nullPointMode": "null", |
| "percentage": false, |
| "pointradius": 5, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "expr": "go_memstats_heap_inuse_bytes{job=\"service-center\"} + go_memstats_heap_idle_bytes{job=\"service-center\"}", |
| "format": "time_series", |
| "intervalFactor": 1, |
| "legendFormat": "heap_{{instance}}", |
| "refId": "B" |
| }, |
| { |
| "expr": "go_memstats_heap_inuse_bytes{job=\"service-center\"}", |
| "format": "time_series", |
| "intervalFactor": 1, |
| "legendFormat": "inuse_{{instance}}", |
| "refId": "C" |
| }, |
| { |
| "expr": "process_resident_memory_bytes{job=\"service-center\"}", |
| "format": "time_series", |
| "intervalFactor": 1, |
| "legendFormat": "all_{{instance}}", |
| "refId": "A" |
| } |
| ], |
| "thresholds": [], |
| "timeFrom": null, |
| "timeShift": null, |
| "title": "Memory", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "buckets": null, |
| "mode": "time", |
| "name": null, |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "format": "decbytes", |
| "label": null, |
| "logBase": 1, |
| "max": null, |
| "min": null, |
| "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": "${DS_LOCAL}", |
| "fill": 1, |
| "gridPos": { |
| "h": 7, |
| "w": 24, |
| "x": 0, |
| "y": 26 |
| }, |
| "id": 7, |
| "legend": { |
| "alignAsTable": true, |
| "avg": false, |
| "current": true, |
| "max": true, |
| "min": false, |
| "rightSide": true, |
| "show": true, |
| "sort": "current", |
| "sortDesc": true, |
| "total": false, |
| "values": true |
| }, |
| "lines": true, |
| "linewidth": 1, |
| "links": [], |
| "nullPointMode": "null", |
| "percentage": false, |
| "pointradius": 5, |
| "points": false, |
| "renderer": "flot", |
| "seriesOverrides": [], |
| "spaceLength": 10, |
| "stack": false, |
| "steppedLine": false, |
| "targets": [ |
| { |
| "expr": "sum(service_center_local_cache_size_bytes{job=\"service-center\"}) by (resource,instance)", |
| "format": "time_series", |
| "intervalFactor": 2, |
| "legendFormat": "{{resource}}_{{instance}}", |
| "refId": "A" |
| }, |
| { |
| "expr": "sum(service_center_local_cache_size_bytes{job=\"service-center\"}) by (instance)", |
| "format": "time_series", |
| "intervalFactor": 2, |
| "legendFormat": "ALL_{{instance}}", |
| "refId": "B" |
| } |
| ], |
| "thresholds": [], |
| "timeFrom": null, |
| "timeShift": null, |
| "title": "Cache", |
| "tooltip": { |
| "shared": true, |
| "sort": 0, |
| "value_type": "individual" |
| }, |
| "type": "graph", |
| "xaxis": { |
| "buckets": null, |
| "mode": "time", |
| "name": null, |
| "show": true, |
| "values": [] |
| }, |
| "yaxes": [ |
| { |
| "format": "decbytes", |
| "label": null, |
| "logBase": 1, |
| "max": null, |
| "min": null, |
| "show": true |
| }, |
| { |
| "format": "short", |
| "label": null, |
| "logBase": 1, |
| "max": null, |
| "min": null, |
| "show": true |
| } |
| ], |
| "yaxis": { |
| "align": false, |
| "alignLevel": null |
| } |
| } |
| ], |
| "refresh": "5s", |
| "schemaVersion": 16, |
| "style": "dark", |
| "tags": [], |
| "templating": { |
| "list": [] |
| }, |
| "time": { |
| "from": "now-15m", |
| "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": "", |
| "title": "ServiceCenter", |
| "uid": "Zg6NoHGiz", |
| "version": 6 |
| } |