K8s: Prometheus结合Grafana监控应用数据及相关配置 (三)

《Kubernetes监控篇:Prometheus+Grafana+Alertmanager监控K8S集群实战》 系列文章目录 提示:这里可以添加系列文章的所有文章的目录,目录需要自己手动添加 例如:第一章 Python 机器学习入门之pandas的使用 提示:写完文章后,目录可以自动生成,如何生成可参考右边的帮助文档 文章目录系列文章目录前言一、pandas是什么?二、使用步骤1.引入库2.读入数据总结 前言 提示:这里可以添加本文要记录的大概内容: 例如:随着人工智能的不断发展,机器学习这门技术也越来越重要,很多人都开启了学习机器学习,本文就介绍了机器学习的基础内容。 提示:以下是本篇文章正文内容,下面案例 阅读详情

Prometheus 监控应用数据

  • 上文对Springboot的应用,去添加一些Prometheus的监控项,往外输出自己的监控数据
  • 有了这些matrix监控数据, Prometheus就能对它进行一个监控
  • 监控配置好了之后,还要在 Grafana 里面去显示 Prometheus 的一些数据
  • 首先,在 Prometheus 中定义一些 Matrix 去收集监控数据
    • 注意,里面的 static_configs 配置的地址是
      • Prometheus 的服务地址和端口
      • 以及博客应用提供的Prometheus的接口地址
      • 下面的配置文件中涉及到ip的配置请设置成自己的
    • 这个 configMap 将来会输出为 prometheus.yaml 文件
    • 这个文件会被 prometheus 的 pod 挂载到 prometheus 的配置文件项目里
    • 相当于通过 Deployment 去挂载,具体挂载路径为:/etc/prometheus/prometheus.yaml
          volumeMounts:
          - name: config-volume
            mountPath: /etc/prometheus
          volumes:
          - name: config-volume
            configMap:
              name: kubeblog-config
      
    • 启动起来之后,可以留意一下

2 )一键部署

  • 部署这个文件之前,可以先清理之前在这个命名空间,重新进行部署

    • $ kubectl delete ns monitoring
  • 现在编写这个文件 $ vi app-prometheus-all.yaml

  • 注意,下面两个 job_name 下定义的 target 地址 换成自己的

    apiVersion: v1
    kind: Namespace
    metadata:
      name: monitoring
    ---
    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRoleBinding
    metadata:
      name: prometheus
    roleRef:
      apiGroup: rbac.authorization.k8s.io
      kind: ClusterRole
      name: prometheus
    subjects:
    - kind: ServiceAccount
      name: prometheus-k8s
      namespace: monitoring
    ---
    apiVersion: rbac.authorization.k8s.io/v1
    kind: ClusterRole
    metadata:
      name: prometheus
    rules:
    - apiGroups: [""]
      resources:
      - nodes
      - nodes/proxy
      - services
      - endpoints
      - pods
      verbs: ["get", "list", "watch"]
    - apiGroups: [""]
      resources:
      - configmaps
      verbs: ["get"]
    - nonResourceURLs: ["/metrics"]
      verbs: ["get"]
    ---
    apiVersion: v1
    kind: ServiceAccount
    metadata:
      name: prometheus-k8s
      namespace: monitoring
    ---
    apiVersion: v1
    kind: Service
    metadata:
      name: prometheus
      namespace: monitoring
      labels:
        app: prometheus
        component: core
      annotations:
        prometheus.io/scrape: 'true'
    spec:
      type: NodePort
      ports:
        - port: 9090
          protocol: TCP
          name: webui
          nodePort: 30091
      selector:
        app: prometheus
        component: core
    ---
    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: kubeblog-config
      namespace: monitoring
    data:
      prometheus.yaml: |
        global:
          scrape_interval:     10s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
          evaluation_interval: 10s # Evaluate rules every 15 seconds. The default is every 1 minute.
        # Alertmanager configuration
        alerting:
          alertmanagers:
          - static_configs:
            - targets:
              # - alertmanager:9093
        # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
        rule_files:
          # - "first_rules.yml"
          # - "second_rules.yml"
        # A scrape configuration containing exactly one endpoint to scrape:
        # Here it's Prometheus itself.
        scrape_configs:
          # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
          - job_name: 'prometheus'
            # metrics_path defaults to '/metrics'
            # scheme defaults to 'http'.
            static_configs:
            - targets: ['10.211.10.5:30091']
          - job_name: 'spring-actuator'
            metrics_path: '/actuator/prometheus'
            scrape_interval: 5s
            static_configs:
            - targets: ['10.211.10.5:30002']
    ---
    apiVersion: v1
    kind: Secret
    data:
      admin-password: YWRtaW4=
      admin-username: YWRtaW4=
    metadata:
      name: grafana
      namespace: monitoring
    type: Opaque
    ---
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: prometheus-core
      namespace: monitoring
      labels:
        app: prometheus
        component: core
    spec:
      replicas: 1
      selector:
        matchLabels:
          app: prometheus
          component: core
      template:
        metadata:
          name: prometheus-main
          labels:
            app: prometheus
            component: core
        spec:
          serviceAccountName: prometheus-k8s
          containers:
          - name: prometheus
            image: prom/prometheus:v1.7.0
            args:
              - '-storage.local.retention=12h'
              - '-storage.local.memory-chunks=500000'
              - '-config.file=/etc/prometheus/prometheus.yaml'
              - '-alertmanager.url=http://alertmanager:9093/'
            ports:
            - name: webui
              containerPort: 9090
            resources:
              requests:
                cpu: 500m
                memory: 500M
              limits:
                cpu: 500m
                memory: 500M
            volumeMounts:
            - name: config-volume
              mountPath: /etc/prometheus
            # - name: rules-volume
            #   mountPath: /etc/prometheus-rules
          volumes:
          - name: config-volume
            configMap:
              name: kubeblog-config
    
  • $ vi app-grafana-all.yaml 编写 grafana 配置

    apiVersion: v1
    kind: ConfigMap
    metadata:
      creationTimestamp: null
      name: grafana-import-dashboards
      namespace: monitoring
    data:
      grafana-net-2-dashboard.json: |
        {
          "__inputs": [{
            "name": "DS_PROMETHEUS",
            "label": "Prometheus",
            "description": "",
            "type": "datasource",
            "pluginId": "prometheus",
            "pluginName": "Prometheus"
          }],
          "__requires": [{
            "type": "panel",
            "id": "singlestat",
            "name": "Singlestat",
            "version": ""
          }, {
            "type": "panel",
            "id": "text",
            "name": "Text",
            "version": ""
          }, {
            "type": "panel",
            "id": "graph",
            "name": "Graph",
            "version": ""
          }, {
            "type": "grafana",
            "id": "grafana",
            "name": "Grafana",
            "version": "3.1.0"
          }, {
            "type": "datasource",
            "id": "prometheus",
            "name": "Prometheus",
            "version": "1.0.0"
          }],
          "id": null,
          "title": "Prometheus Stats",
          "tags": [],
          "style": "dark",
          "timezone": "browser",
          "editable": true,
          "hideControls": true,
          "sharedCrosshair": false,
          "rows": [{
            "collapse": false,
            "editable": true,
            "height": 178,
            "panels": [{
              "cacheTimeout": null,
              "colorBackground": false,
              "colorValue": false,
              "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
              "datasource": "${DS_PROMETHEUS}",
              "decimals": 1,
              "editable": true,
              "error": false,
              "format": "s",
              "id": 5,
              "interval": null,
              "links": [],
              "maxDataPoints": 100,
              "nullPointMode": "connected",
              "nullText": null,
              "postfix": "",
              "postfixFontSize": "50%",
              "prefix": "",
              "prefixFontSize": "50%",
              "span": 3,
              "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": false
              },
              "targets": [{
                "expr": "(time() - process_start_time_seconds{job=\"prometheus\"})",
                "intervalFactor": 2,
                "refId": "A",
                "step": 4
              }],
              "thresholds": "",
              "title": "Uptime",
              "type": "singlestat",
              "valueFontSize": "80%",
              "valueMaps": [{
                "op": "=",
                "text": "N/A",
                "value": "null"
              }],
              "valueName": "current",
              "mappingTypes": [{
                "name": "value to text",
                "value": 1
              }, {
                "name": "range to text",
                "value": 2
              }],
              "rangeMaps": [{
                "from": "null",
                "to": "null",
                "text": "N/A"
              }],
              "mappingType": 1,
              "gauge": {
                "show": false,
                "minValue": 0,
                "maxValue": 100,
                "thresholdMarkers": true,
                "thresholdLabels": false
              }
            }, {
              "cacheTimeout": null,
              "colorBackground": false,
              "colorValue": false,
              "colors": ["rgba(50, 172, 45, 0.97)", "rgba(237, 129, 40, 0.89)", "rgba(245, 54, 54, 0.9)"],
              "datasource": "${DS_PROMETHEUS}",
              "editable": true,
              "error": false,
              "format": "none",
              "id": 6,
              "interval": null,
              "links": [],
              "maxDataPoints": 100,
              "nullPointMode": "connected",
              "nullText": null,
              "postfix": "",
              "postfixFontSize": "50%",
              "prefix": "",
              "prefixFontSize": "50%",
              "span": 3,
              "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": true
              },
              "targets": [{
                "expr": "prometheus_local_storage_memory_series",
                "intervalFactor": 2,
                "refId": "A",
                "step": 4
              }],
              "thresholds": "1,5",
              "title": "Local Storage Memory Series",
              "type": "singlestat",
              "valueFontSize": "70%",
              "valueMaps": [],
              "valueName": "current",
              "mappingTypes": [{
                "name": "value to text",
                "value": 1
              }, {
                "name": "range to text",
                "value": 2
              }],
              "rangeMaps": [{
                "from": "null",
                "to": "null",
                "text": "N/A"
              }],
              "mappingType": 1,
              "gauge": {
                "show": false,
                "minValue": 0,
                "maxValue": 100,
                "thresholdMarkers": true,
                "thresholdLabels": false
              }
            }, {
              "cacheTimeout": null,
              "colorBackground": false,
              "colorValue": true,
              "colors": ["rgba(50, 172, 45, 0.97)", "rgba(237, 129, 40, 0.89)", "rgba(245, 54, 54, 0.9)"],
              "datasource": "${DS_PROMETHEUS}",
              "editable": true,
              "error": false,
              "format": "none",
              "id": 7,
              "interval": null,
              "links": [],
              "maxDataPoints": 100,
              "nullPointMode": "connected",
              "nullText": null,
              "postfix": "",
              "postfixFontSize": "50%",
              "prefix": "",
              "prefixFontSize": "50%",
              "span": 3,
              "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": true
              },
              "targets": [{
                "expr": "prometheus_local_storage_indexing_queue_length",
                "intervalFactor": 2,
                "refId": "A",
                "step": 4
              }],
              "thresholds": "500,4000",
              "title": "Internal Storage Queue Length",
              "type": "singlestat",
              "valueFontSize": "70%",
              "valueMaps": [{
                "op": "=",
                "text": "Empty",
                "value": "0"
              }],
              "valueName": "current",
              "mappingTypes": [{
                "name": "value to text",
                "value": 1
              }, {
                "name": "range to text",
                "value": 2
              }],
              "rangeMaps": [{
                "from": "null",
                "to": "null",
                "text": "N/A"
              }],
              "mappingType": 1,
              "gauge": {
                "show": false,
                "minValue": 0,
                "maxValue": 100,
                "thresholdMarkers": true,
                "thresholdLabels": false
              }
            }, {
              "content": "<img src=\"http://prometheus.io/assets/prometheus_logo_grey.svg\" alt=\"Prometheus logo\" style=\"height: 40px;\">\n<span style=\"font-family: 'Open Sans', 'Helvetica Neue', Helvetica; font-size: 25px;vertical-align: text-top;color: #bbbfc2;margin-left: 10px;\">Prometheus</span>\n\n<p style=\"margin-top: 10px;\">You're using Prometheus, an open-source systems monitoring and alerting toolkit originally built at SoundCloud. For more information, check out the <a href=\"http://www.grafana.org/\">Grafana</a> and <a href=\"http://prometheus.io/\">Prometheus</a> projects.</p>",
              "editable": true,
              "error": false,
              "id": 9,
              "links": [],
              "mode": "html",
              "span": 3,
              "style": {},
              "title": "",
              "transparent": true,
              "type": "text"
            }],
            "title": "New row"
          }, {
            "collapse": false,
            "editable": true,
            "height": 227,
            "panels": [{
              "aliasColors": {
                "prometheus": "#C15C17",
                "{instance=\"localhost:9090\",job=\"prometheus\"}": "#C15C17"
              },
              "bars": false,
              "datasource": "${DS_PROMETHEUS}",
              "editable": true,
              "error": false,
              "fill": 1,
              "grid": {
                "threshold1": null,
                "threshold1Color": "rgba(216, 200, 27, 0.27)",
                "threshold2": null,
                "threshold2Color": "rgba(234, 112, 112, 0.22)"
              },
              "id": 3,
              "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
              },
              "lines": true,
              "linewidth": 2,
              "links": [],
              "nullPointMode": "connected",
              "percentage": false,
              "pointradius": 2,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [],
              "span": 9,
              "stack": false,
              "steppedLine": false,
              "targets": [{
                "expr": "rate(prometheus_local_storage_ingested_samples_total[5m])",
                "interval": "",
                "intervalFactor": 2,
                "legendFormat": "{{job}}",
                "metric": "",
                "refId": "A",
                "step": 2
              }],
              "timeFrom": null,
              "timeShift": null,
              "title": "Samples ingested (rate-5m)",
              "tooltip": {
                "shared": true,
                "value_type": "cumulative",
                "ordering": "alphabetical",
                "msResolution": false
              },
              "type": "graph",
              "yaxes": [{
                "show": true,
                "min": null,
                "max": null,
                "logBase": 1,
                "format": "short"
              }, {
                "show": true,
                "min": null,
                "max": null,
                "logBase": 1,
                "format": "short"
              }],
              "xaxis": {
                "show": true
              }
            }, {
              "content": "#### Samples Ingested\nThis graph displays the count of samples ingested by the Prometheus server, as measured over the last 5 minutes, per time series in the range vector. When troubleshooting an issue on IRC or Github, this is often the first stat requested by the Prometheus team. ",
              "editable": true,
              "error": false,
              "id": 8,
              "links": [],
              "mode": "markdown",
              "span": 2.995914043583536,
              "style": {},
              "title": "",
              "transparent": true,
              "type": "text"
            }],
            "title": "New row"
          }, {
            "collapse": false,
            "editable": true,
            "height": "250px",
            "panels": [{
              "aliasColors": {
                "prometheus": "#F9BA8F",
                "{instance=\"localhost:9090\",interval=\"5s\",job=\"prometheus\"}": "#F9BA8F"
              },
              "bars": false,
              "datasource": "${DS_PROMETHEUS}",
              "editable": true,
              "error": false,
              "fill": 1,
              "grid": {
                "threshold1": null,
                "threshold1Color": "rgba(216, 200, 27, 0.27)",
                "threshold2": null,
                "threshold2Color": "rgba(234, 112, 112, 0.22)"
              },
              "id": 2,
              "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
              },
              "lines": true,
              "linewidth": 2,
              "links": [],
              "nullPointMode": "connected",
              "percentage": false,
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [],
              "span": 5,
              "stack": false,
              "steppedLine": false,
              "targets": [{
                "expr": "rate(prometheus_target_interval_length_seconds_count[5m])",
                "intervalFactor": 2,
                "legendFormat": "{{job}}",
                "refId": "A",
                "step": 2
              }],
              "timeFrom": null,
              "timeShift": null,
              "title": "Target Scrapes (last 5m)",
              "tooltip": {
                "shared": true,
                "value_type": "cumulative",
                "ordering": "alphabetical",
                "msResolution": false
              },
              "type": "graph",
              "yaxes": [{
                "show": true,
                "min": null,
                "max": null,
                "logBase": 1,
                "format": "short"
              }, {
                "show": true,
                "min": null,
                "max": null,
                "logBase": 1,
                "format": "short"
              }],
              "xaxis": {
                "show": true
              }
            }, {
              "aliasColors": {},
              "bars": false,
              "datasource": "${DS_PROMETHEUS}",
              "editable": true,
              "error": false,
              "fill": 1,
              "grid": {
                "threshold1": null,
                "threshold1Color": "rgba(216, 200, 27, 0.27)",
                "threshold2": null,
                "threshold2Color": "rgba(234, 112, 112, 0.22)"
              },
              "id": 14,
              "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
              },
              "lines": true,
              "linewidth": 2,
              "links": [],
              "nullPointMode": "connected",
              "percentage": false,
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [],
              "span": 4,
              "stack": false,
              "steppedLine": false,
              "targets": [{
                "expr": "prometheus_target_interval_length_seconds{quantile!=\"0.01\", quantile!=\"0.05\"}",
                "interval": "",
                "intervalFactor": 2,
                "legendFormat": "{{quantile}} ({{interval}})",
                "metric": "",
                "refId": "A",
                "step": 2
              }],
              "timeFrom": null,
              "timeShift": null,
              "title": "Scrape Duration",
              "tooltip": {
                "shared": true,
                "value_type": "cumulative",
                "ordering": "alphabetical",
                "msResolution": false
              },
              "type": "graph",
              "yaxes": [{
                "show": true,
                "min": null,
                "max": null,
                "logBase": 1,
                "format": "short"
              }, {
                "show": true,
                "min": null,
                "max": null,
                "logBase": 1,
                "format": "short"
              }],
              "xaxis": {
                "show": true
              }
            }, {
              "content": "#### Scrapes\nPrometheus scrapes metrics from instrumented jobs, either directly or via an intermediary push gateway for short-lived jobs. Target scrapes will show how frequently targets are scraped, as measured over the last 5 minutes, per time series in the range vector. Scrape Duration will show how long the scrapes are taking, with percentiles available as series. ",
              "editable": true,
              "error": false,
              "id": 11,
              "links": [],
              "mode": "markdown",
              "span": 3,
              "style": {},
              "title": "",
              "transparent": true,
              "type": "text"
            }],
            "title": "New row"
          }, {
            "collapse": false,
            "editable": true,
            "height": "250px",
            "panels": [{
              "aliasColors": {},
              "bars": false,
              "datasource": "${DS_PROMETHEUS}",
              "decimals": null,
              "editable": true,
              "error": false,
              "fill": 1,
              "grid": {
                "threshold1": null,
                "threshold1Color": "rgba(216, 200, 27, 0.27)",
                "threshold2": null,
                "threshold2Color": "rgba(234, 112, 112, 0.22)"
              },
              "id": 12,
              "legend": {
                "alignAsTable": false,
                "avg": false,
                "current": false,
                "hideEmpty": true,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
              },
              "lines": true,
              "linewidth": 2,
              "links": [],
              "nullPointMode": "connected",
              "percentage": false,
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [],
              "span": 9,
              "stack": false,
              "steppedLine": false,
              "targets": [{
                "expr": "prometheus_evaluator_duration_milliseconds{quantile!=\"0.01\", quantile!=\"0.05\"}",
                "interval": "",
                "intervalFactor": 2,
                "legendFormat": "{{quantile}}",
                "refId": "A",
                "step": 2
              }],
              "timeFrom": null,
              "timeShift": null,
              "title": "Rule Eval Duration",
              "tooltip": {
                "shared": true,
                "value_type": "cumulative",
                "ordering": "alphabetical",
                "msResolution": false
              },
              "type": "graph",
              "yaxes": [{
                "show": true,
                "min": null,
                "max": null,
                "logBase": 1,
                "format": "percentunit",
                "label": ""
              }, {
                "show": true,
                "min": null,
                "max": null,
                "logBase": 1,
                "format": "short"
              }],
              "xaxis": {
                "show": true
              }
            }, {
              "content": "#### Rule Evaluation Duration\nThis graph panel plots the duration for all evaluations to execute. The 50th percentile, 90th percentile and 99th percentile are shown as three separate series to help identify outliers that may be skewing the data.",
              "editable": true,
              "error": false,
              "id": 15,
              "links": [],
              "mode": "markdown",
              "span": 3,
              "style": {},
              "title": "",
              "transparent": true,
              "type": "text"
            }],
            "title": "New row"
          }],
          "time": {
            "from": "now-5m",
            "to": "now"
          },
          "timepicker": {
            "now": true,
            "refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"],
            "time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"]
          },
          "templating": {
            "list": []
          },
          "annotations": {
            "list": []
          },
          "refresh": false,
          "schemaVersion": 12,
          "version": 0,
          "links": [{
            "icon": "info",
            "tags": [],
            "targetBlank": true,
            "title": "Grafana Docs",
            "tooltip": "",
            "type": "link",
            "url": "http://www.grafana.org/docs"
          }, {
            "icon": "info",
            "tags": [],
            "targetBlank": true,
            "title": "Prometheus Docs",
            "type": "link",
            "url": "http://prometheus.io/docs/introduction/overview/"
          }],
          "gnetId": 2,
          "description": "The  official, pre-built Prometheus Stats Dashboard."
        }
      grafana-net-737-dashboard.json: |
        {
          "__inputs": [{
            "name": "DS_PROMETHEUS",
            "label": "prometheus",
            "description": "",
            "type": "datasource",
            "pluginId": "prometheus",
            "pluginName": "Prometheus"
          }],
          "__requires": [{
            "type": "panel",
            "id": "singlestat",
            "name": "Singlestat",
            "version": ""
          }, {
            "type": "panel",
            "id": "graph",
            "name": "Graph",
            "version": ""
          }, {
            "type": "grafana",
            "id": "grafana",
            "name": "Grafana",
            "version": "3.1.0"
          }, {
            "type": "datasource",
            "id": "prometheus",
            "name": "Prometheus",
            "version": "1.0.0"
          }],
          "id": null,
          "title": "Kubernetes Pod Resources",
          "description": "Shows resource usage of Kubernetes pods.",
          "tags": [
            "kubernetes"
          ],
          "style": "dark",
          "timezone": "browser",
          "editable": true,
          "hideControls": false,
          "sharedCrosshair": false,
          "rows": [{
            "collapse": false,
            "editable": true,
            "height": "250px",
            "panels": [{
              "cacheTimeout": null,
              "colorBackground": false,
              "colorValue": true,
              "colors": [
                "rgba(50, 172, 45, 0.97)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(245, 54, 54, 0.9)"
              ],
              "datasource": "${DS_PROMETHEUS}",
              "editable": true,
              "error": false,
              "format": "percent",
              "gauge": {
                "maxValue": 100,
                "minValue": 0,
                "show": true,
                "thresholdLabels": false,
                "thresholdMarkers": true
              },
              "height": "180px",
              "id": 4,
              "interval": null,
              "isNew": true,
              "links": [],
              "mappingType": 1,
              "mappingTypes": [{
                "name": "value to text",
                "value": 1
              }, {
                "name": "range to text",
                "value": 2
              }],
              "maxDataPoints": 100,
              "nullPointMode": "connected",
              "nullText": null,
              "postfix": "",
              "postfixFontSize": "50%",
              "prefix": "",
              "prefixFontSize": "50%",
              "rangeMaps": [{
                "from": "null",
                "text": "N/A",
                "to": "null"
              }],
              "span": 4,
              "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": false
              },
              "targets": [{
                "expr": "sum (container_memory_working_set_bytes{id=\"/\",instance=~\"^$instance$\"}) / sum (machine_memory_bytes{instance=~\"^$instance$\"}) * 100",
                "interval": "",
                "intervalFactor": 2,
                "legendFormat": "",
                "refId": "A",
                "step": 2
              }],
              "thresholds": "65, 90",
              "timeFrom": "1m",
              "timeShift": null,
              "title": "Memory Working Set",
              "transparent": false,
              "type": "singlestat",
              "valueFontSize": "80%",
              "valueMaps": [{
                "op": "=",
                "text": "N/A",
                "value": "null"
              }],
              "valueName": "current"
            }, {
              "cacheTimeout": null,
              "colorBackground": false,
              "colorValue": true,
              "colors": [
                "rgba(50, 172, 45, 0.97)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(245, 54, 54, 0.9)"
              ],
              "datasource": "${DS_PROMETHEUS}",
              "decimals": 2,
              "editable": true,
              "error": false,
              "format": "percent",
              "gauge": {
                "maxValue": 100,
                "minValue": 0,
                "show": true,
                "thresholdLabels": false,
                "thresholdMarkers": true
              },
              "height": "180px",
              "id": 6,
              "interval": null,
              "isNew": true,
              "links": [],
              "mappingType": 1,
              "mappingTypes": [{
                "name": "value to text",
                "value": 1
              }, {
                "name": "range to text",
                "value": 2
              }],
              "maxDataPoints": 100,
              "nullPointMode": "connected",
              "nullText": null,
              "postfix": "",
              "postfixFontSize": "50%",
              "prefix": "",
              "prefixFontSize": "50%",
              "rangeMaps": [{
                "from": "null",
                "text": "N/A",
                "to": "null"
              }],
              "span": 4,
              "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": false
              },
              "targets": [{
                "expr": "sum(rate(container_cpu_usage_seconds_total{id=\"/\",instance=~\"^$instance$\"}[1m])) / sum (machine_cpu_cores{instance=~\"^$instance$\"}) * 100",
                "interval": "10s",
                "intervalFactor": 1,
                "refId": "A",
                "step": 10
              }],
              "thresholds": "65, 90",
              "timeFrom": "1m",
              "timeShift": null,
              "title": "Cpu Usage",
              "type": "singlestat",
              "valueFontSize": "80%",
              "valueMaps": [{
                "op": "=",
                "text": "N/A",
                "value": "null"
              }],
              "valueName": "current"
            }, {
              "cacheTimeout": null,
              "colorBackground": false,
              "colorValue": true,
              "colors": [
                "rgba(50, 172, 45, 0.97)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(245, 54, 54, 0.9)"
              ],
              "datasource": "${DS_PROMETHEUS}",
              "decimals": 2,
              "editable": true,
              "error": false,
              "format": "percent",
              "gauge": {
                "maxValue": 100,
                "minValue": 0,
                "show": true,
                "thresholdLabels": false,
                "thresholdMarkers": true
              },
              "height": "180px",
              "id": 7,
              "interval": null,
              "isNew": true,
              "links": [],
              "mappingType": 1,
              "mappingTypes": [{
                "name": "value to text",
                "value": 1
              }, {
                "name": "range to text",
                "value": 2
              }],
              "maxDataPoints": 100,
              "nullPointMode": "connected",
              "nullText": null,
              "postfix": "",
              "postfixFontSize": "50%",
              "prefix": "",
              "prefixFontSize": "50%",
              "rangeMaps": [{
                "from": "null",
                "text": "N/A",
                "to": "null"
              }],
              "span": 4,
              "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": false
              },
              "targets": [{
                "expr": "sum(container_fs_usage_bytes{id=\"/\",instance=~\"^$instance$\"}) / sum(container_fs_limit_bytes{id=\"/\",instance=~\"^$instance$\"}) * 100",
                "interval": "10s",
                "intervalFactor": 1,
                "legendFormat": "",
                "metric": "",
                "refId": "A",
                "step": 10
              }],
              "thresholds": "65, 90",
              "timeFrom": "1m",
              "timeShift": null,
              "title": "Filesystem Usage",
              "type": "singlestat",
              "valueFontSize": "80%",
              "valueMaps": [{
                "op": "=",
                "text": "N/A",
                "value": "null"
              }],
              "valueName": "current"
            }, {
              "cacheTimeout": null,
              "colorBackground": false,
              "colorValue": false,
              "colors": [
                "rgba(50, 172, 45, 0.97)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(245, 54, 54, 0.9)"
              ],
              "datasource": "${DS_PROMETHEUS}",
              "decimals": 2,
              "editable": true,
              "error": false,
              "format": "bytes",
              "gauge": {
                "maxValue": 100,
                "minValue": 0,
                "show": false,
                "thresholdLabels": false,
                "thresholdMarkers": true
              },
              "height": "1px",
              "hideTimeOverride": true,
              "id": 9,
              "interval": null,
              "isNew": true,
              "links": [],
              "mappingType": 1,
              "mappingTypes": [{
                "name": "value to text",
                "value": 1
              }, {
                "name": "range to text",
                "value": 2
              }],
              "maxDataPoints": 100,
              "nullPointMode": "connected",
              "nullText": null,
              "postfix": "",
              "postfixFontSize": "20%",
              "prefix": "",
              "prefixFontSize": "20%",
              "rangeMaps": [{
                "from": "null",
                "text": "N/A",
                "to": "null"
              }],
              "span": 2,
              "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": false
              },
              "targets": [{
                "expr": "sum(container_memory_working_set_bytes{id=\"/\",instance=~\"^$instance$\"})",
                "interval": "10s",
                "intervalFactor": 1,
                "refId": "A",
                "step": 10
              }],
              "thresholds": "",
              "timeFrom": "1m",
              "title": "Used",
              "type": "singlestat",
              "valueFontSize": "50%",
              "valueMaps": [{
                "op": "=",
                "text": "N/A",
                "value": "null"
              }],
              "valueName": "current"
            }, {
              "cacheTimeout": null,
              "colorBackground": false,
              "colorValue": false,
              "colors": [
                "rgba(50, 172, 45, 0.97)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(245, 54, 54, 0.9)"
              ],
              "datasource": "${DS_PROMETHEUS}",
              "decimals": 2,
              "editable": true,
              "error": false,
              "format": "bytes",
              "gauge": {
                "maxValue": 100,
                "minValue": 0,
                "show": false,
                "thresholdLabels": false,
                "thresholdMarkers": true
              },
              "height": "1px",
              "hideTimeOverride": true,
              "id": 10,
              "interval": null,
              "isNew": true,
              "links": [],
              "mappingType": 1,
              "mappingTypes": [{
                "name": "value to text",
                "value": 1
              }, {
                "name": "range to text",
                "value": 2
              }],
              "maxDataPoints": 100,
              "nullPointMode": "connected",
              "nullText": null,
              "postfix": "",
              "postfixFontSize": "50%",
              "prefix": "",
              "prefixFontSize": "50%",
              "rangeMaps": [{
                "from": "null",
                "text": "N/A",
                "to": "null"
              }],
              "span": 2,
              "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": false
              },
              "targets": [{
                "expr": "sum (machine_memory_bytes{instance=~\"^$instance$\"})",
                "interval": "10s",
                "intervalFactor": 1,
                "refId": "A",
                "step": 10
              }],
              "thresholds": "",
              "timeFrom": "1m",
              "title": "Total",
              "type": "singlestat",
              "valueFontSize": "50%",
              "valueMaps": [{
                "op": "=",
                "text": "N/A",
                "value": "null"
              }],
              "valueName": "current"
            }, {
              "cacheTimeout": null,
              "colorBackground": false,
              "colorValue": false,
              "colors": [
                "rgba(50, 172, 45, 0.97)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(245, 54, 54, 0.9)"
              ],
              "datasource": "${DS_PROMETHEUS}",
              "decimals": 2,
              "editable": true,
              "error": false,
              "format": "none",
              "gauge": {
                "maxValue": 100,
                "minValue": 0,
                "show": false,
                "thresholdLabels": false,
                "thresholdMarkers": true
              },
              "height": "1px",
              "hideTimeOverride": true,
              "id": 11,
              "interval": null,
              "isNew": true,
              "links": [],
              "mappingType": 1,
              "mappingTypes": [{
                "name": "value to text",
                "value": 1
              }, {
                "name": "range to text",
                "value": 2
              }],
              "maxDataPoints": 100,
              "nullPointMode": "connected",
              "nullText": null,
              "postfix": " cores",
              "postfixFontSize": "30%",
              "prefix": "",
              "prefixFontSize": "50%",
              "rangeMaps": [{
                "from": "null",
                "text": "N/A",
                "to": "null"
              }],
              "span": 2,
              "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": false
              },
              "targets": [{
                "expr": "sum (rate (container_cpu_usage_seconds_total{id=\"/\",instance=~\"^$instance$\"}[1m]))",
                "interval": "10s",
                "intervalFactor": 1,
                "refId": "A",
                "step": 10
              }],
              "thresholds": "",
              "timeFrom": "1m",
              "timeShift": null,
              "title": "Used",
              "type": "singlestat",
              "valueFontSize": "50%",
              "valueMaps": [{
                "op": "=",
                "text": "N/A",
                "value": "null"
              }],
              "valueName": "current"
            }, {
              "cacheTimeout": null,
              "colorBackground": false,
              "colorValue": false,
              "colors": [
                "rgba(50, 172, 45, 0.97)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(245, 54, 54, 0.9)"
              ],
              "datasource": "${DS_PROMETHEUS}",
              "decimals": 2,
              "editable": true,
              "error": false,
              "format": "none",
              "gauge": {
                "maxValue": 100,
                "minValue": 0,
                "show": false,
                "thresholdLabels": false,
                "thresholdMarkers": true
              },
              "height": "1px",
              "hideTimeOverride": true,
              "id": 12,
              "interval": null,
              "isNew": true,
              "links": [],
              "mappingType": 1,
              "mappingTypes": [{
                "name": "value to text",
                "value": 1
              }, {
                "name": "range to text",
                "value": 2
              }],
              "maxDataPoints": 100,
              "nullPointMode": "connected",
              "nullText": null,
              "postfix": " cores",
              "postfixFontSize": "30%",
              "prefix": "",
              "prefixFontSize": "50%",
              "rangeMaps": [{
                "from": "null",
                "text": "N/A",
                "to": "null"
              }],
              "span": 2,
              "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": false
              },
              "targets": [{
                "expr": "sum (machine_cpu_cores{instance=~\"^$instance$\"})",
                "interval": "10s",
                "intervalFactor": 1,
                "refId": "A",
                "step": 10
              }],
              "thresholds": "",
              "timeFrom": "1m",
              "title": "Total",
              "type": "singlestat",
              "valueFontSize": "50%",
              "valueMaps": [{
                "op": "=",
                "text": "N/A",
                "value": "null"
              }],
              "valueName": "current"
            }, {
              "cacheTimeout": null,
              "colorBackground": false,
              "colorValue": false,
              "colors": [
                "rgba(50, 172, 45, 0.97)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(245, 54, 54, 0.9)"
              ],
              "datasource": "${DS_PROMETHEUS}",
              "decimals": 2,
              "editable": true,
              "error": false,
              "format": "bytes",
              "gauge": {
                "maxValue": 100,
                "minValue": 0,
                "show": false,
                "thresholdLabels": false,
                "thresholdMarkers": true
              },
              "height": "1px",
              "hideTimeOverride": true,
              "id": 13,
              "interval": null,
              "isNew": true,
              "links": [],
              "mappingType": 1,
              "mappingTypes": [{
                "name": "value to text",
                "value": 1
              }, {
                "name": "range to text",
                "value": 2
              }],
              "maxDataPoints": 100,
              "nullPointMode": "connected",
              "nullText": null,
              "postfix": "",
              "postfixFontSize": "50%",
              "prefix": "",
              "prefixFontSize": "50%",
              "rangeMaps": [{
                "from": "null",
                "text": "N/A",
                "to": "null"
              }],
              "span": 2,
              "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": false
              },
              "targets": [{
                "expr": "sum(container_fs_usage_bytes{id=\"/\",instance=~\"^$instance$\"})",
                "interval": "10s",
                "intervalFactor": 1,
                "refId": "A",
                "step": 10
              }],
              "thresholds": "",
              "timeFrom": "1m",
              "title": "Used",
              "type": "singlestat",
              "valueFontSize": "50%",
              "valueMaps": [{
                "op": "=",
                "text": "N/A",
                "value": "null"
              }],
              "valueName": "current"
            }, {
              "cacheTimeout": null,
              "colorBackground": false,
              "colorValue": false,
              "colors": [
                "rgba(50, 172, 45, 0.97)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(245, 54, 54, 0.9)"
              ],
              "datasource": "${DS_PROMETHEUS}",
              "decimals": 2,
              "editable": true,
              "error": false,
              "format": "bytes",
              "gauge": {
                "maxValue": 100,
                "minValue": 0,
                "show": false,
                "thresholdLabels": false,
                "thresholdMarkers": true
              },
              "height": "1px",
              "hideTimeOverride": true,
              "id": 14,
              "interval": null,
              "isNew": true,
              "links": [],
              "mappingType": 1,
              "mappingTypes": [{
                "name": "value to text",
                "value": 1
              }, {
                "name": "range to text",
                "value": 2
              }],
              "maxDataPoints": 100,
              "nullPointMode": "connected",
              "nullText": null,
              "postfix": "",
              "postfixFontSize": "50%",
              "prefix": "",
              "prefixFontSize": "50%",
              "rangeMaps": [{
                "from": "null",
                "text": "N/A",
                "to": "null"
              }],
              "span": 2,
              "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": false
              },
              "targets": [{
                "expr": "sum (container_fs_limit_bytes{id=\"/\",instance=~\"^$instance$\"})",
                "interval": "10s",
                "intervalFactor": 1,
                "refId": "A",
                "step": 10
              }],
              "thresholds": "",
              "timeFrom": "1m",
              "title": "Total",
              "type": "singlestat",
              "valueFontSize": "50%",
              "valueMaps": [{
                "op": "=",
                "text": "N/A",
                "value": "null"
              }],
              "valueName": "current"
            }, {
              "aliasColors": {},
              "bars": false,
              "datasource": "${DS_PROMETHEUS}",
              "decimals": 2,
              "editable": true,
              "error": false,
              "fill": 1,
              "grid": {
                "threshold1": null,
                "threshold1Color": "rgba(216, 200, 27, 0.27)",
                "threshold2": null,
                "threshold2Color": "rgba(234, 112, 112, 0.22)",
                "thresholdLine": false
              },
              "height": "200px",
              "id": 32,
              "isNew": true,
              "legend": {
                "alignAsTable": true,
                "avg": true,
                "current": true,
                "max": false,
                "min": false,
                "rightSide": true,
                "show": true,
                "sideWidth": 200,
                "sort": "current",
                "sortDesc": true,
                "total": false,
                "values": true
              },
              "lines": true,
              "linewidth": 2,
              "links": [],
              "nullPointMode": "connected",
              "percentage": false,
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [],
              "span": 12,
              "stack": false,
              "steppedLine": false,
              "targets": [{
                "expr": "sum(rate(container_network_receive_bytes_total{instance=~\"^$instance$\",namespace=~\"^$namespace$\"}[1m]))",
                "interval": "",
                "intervalFactor": 2,
                "legendFormat": "receive",
                "metric": "network",
                "refId": "A",
                "step": 240
              }, {
                "expr": "- sum(rate(container_network_transmit_bytes_total{instance=~\"^$instance$\",namespace=~\"^$namespace$\"}[1m]))",
                "interval": "",
                "intervalFactor": 2,
                "legendFormat": "transmit",
                "metric": "network",
                "refId": "B",
                "step": 240
              }],
              "timeFrom": null,
              "timeShift": null,
              "title": "Network",
              "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
              },
              "transparent": false,
              "type": "graph",
              "xaxis": {
                "show": true
              },
              "yaxes": [{
                "format": "Bps",
                "label": "transmit / receive",
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              }, {
                "format": "Bps",
                "label": null,
                "logBase": 1,
                "max": null,
                "min": null,
                "show": false
              }]
            }],
            "showTitle": true,
            "title": "all pods"
          }, {
            "collapse": false,
            "editable": true,
            "height": "250px",
            "panels": [{
              "aliasColors": {},
              "bars": false,
              "datasource": "${DS_PROMETHEUS}",
              "decimals": 3,
              "editable": true,
              "error": false,
              "fill": 0,
              "grid": {
                "threshold1": null,
                "threshold1Color": "rgba(216, 200, 27, 0.27)",
                "threshold2": null,
                "threshold2Color": "rgba(234, 112, 112, 0.22)"
              },
              "height": "",
              "id": 17,
              "isNew": true,
              "legend": {
                "alignAsTable": true,
                "avg": true,
                "current": true,
                "hideEmpty": true,
                "hideZero": true,
                "max": false,
                "min": false,
                "rightSide": true,
                "show": true,
                "sideWidth": null,
                "sort": "current",
                "sortDesc": true,
                "total": false,
                "values": true
              },
              "lines": true,
              "linewidth": 2,
              "links": [],
              "nullPointMode": "connected",
              "percentage": false,
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [],
              "span": 12,
              "stack": false,
              "steppedLine": false,
              "targets": [{
                "expr": "sum(rate(container_cpu_usage_seconds_total{image!=\"\",name=~\"^k8s_.*\"}[1m])) by (pod_name)",
                "interval": "",
                "intervalFactor": 2,
                "legendFormat": "{{ pod_name }}",
                "metric": "container_cpu",
                "refId": "A",
                "step": 240
              }],
              "timeFrom": null,
              "timeShift": null,
              "title": "Cpu Usage",
              "tooltip": {
                "msResolution": true,
                "shared": false,
                "sort": 2,
                "value_type": "cumulative"
              },
              "transparent": false,
              "type": "graph",
              "xaxis": {
                "show": true
              },
              "yaxes": [{
                "format": "none",
                "label": "cores",
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              }, {
                "format": "short",
                "label": null,
                "logBase": 1,
                "max": null,
                "min": null,
                "show": false
              }]
            }, {
              "aliasColors": {},
              "bars": false,
              "datasource": "${DS_PROMETHEUS}",
              "decimals": 2,
              "editable": true,
              "error": false,
              "fill": 0,
              "grid": {
                "threshold1": null,
                "threshold1Color": "rgba(216, 200, 27, 0.27)",
                "threshold2": null,
                "threshold2Color": "rgba(234, 112, 112, 0.22)"
              },
              "id": 33,
              "isNew": true,
              "legend": {
                "alignAsTable": true,
                "avg": true,
                "current": true,
                "hideEmpty": true,
                "hideZero": true,
                "max": false,
                "min": false,
                "rightSide": true,
                "show": true,
                "sideWidth": null,
                "sort": "current",
                "sortDesc": true,
                "total": false,
                "values": true
              },
              "lines": true,
              "linewidth": 2,
              "links": [],
              "nullPointMode": "null",
              "percentage": false,
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [],
              "span": 12,
              "stack": false,
              "steppedLine": false,
              "targets": [{
                "expr": "sum (container_memory_working_set_bytes{image!=\"\",name=~\"^k8s_.*\",instance=~\"^$instance$\",namespace=~\"^$namespace$\"}) by (pod_name)",
                "interval": "",
                "intervalFactor": 2,
                "legendFormat": "{{ pod_name }}",
                "metric": "",
                "refId": "A",
                "step": 240
              }],
              "timeFrom": null,
              "timeShift": null,
              "title": "Memory Working Set",
              "tooltip": {
                "msResolution": false,
                "shared": false,
                "sort": 2,
                "value_type": "cumulative"
              },
              "type": "graph",
              "xaxis": {
                "show": true
              },
              "yaxes": [{
                "format": "bytes",
                "label": "used",
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              }, {
                "format": "short",
                "label": null,
                "logBase": 1,
                "max": null,
                "min": null,
                "show": false
              }]
            }, {
              "aliasColors": {},
              "bars": false,
              "datasource": "${DS_PROMETHEUS}",
              "decimals": 2,
              "editable": true,
              "error": false,
              "fill": 1,
              "grid": {
                "threshold1": null,
                "threshold1Color": "rgba(216, 200, 27, 0.27)",
                "threshold2": null,
                "threshold2Color": "rgba(234, 112, 112, 0.22)"
              },
              "id": 16,
              "isNew": true,
              "legend": {
                "alignAsTable": true,
                "avg": true,
                "current": true,
                "hideEmpty": true,
                "hideZero": true,
                "max": false,
                "min": false,
                "rightSide": true,
                "show": true,
                "sideWidth": 200,
                "sort": "avg",
                "sortDesc": true,
                "total": false,
                "values": true
              },
              "lines": true,
              "linewidth": 2,
              "links": [],
              "nullPointMode": "null",
              "percentage": false,
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [],
              "span": 12,
              "stack": false,
              "steppedLine": false,
              "targets": [{
                "expr": "sum (rate (container_network_receive_bytes_total{image!=\"\",name=~\"^k8s_.*\",instance=~\"^$instance$\",namespace=~\"^$namespace$\"}[1m])) by (pod_name)",
                "interval": "",
                "intervalFactor": 2,
                "legendFormat": "{{ pod_name }} < in",
                "metric": "network",
                "refId": "A",
                "step": 240
              }, {
                "expr": "- sum (rate (container_network_transmit_bytes_total{image!=\"\",name=~\"^k8s_.*\",instance=~\"^$instance$\",namespace=~\"^$namespace$\"}[1m])) by (pod_name)",
                "interval": "",
                "intervalFactor": 2,
                "legendFormat": "{{ pod_name }} > out",
                "metric": "network",
                "refId": "B",
                "step": 240
              }],
              "timeFrom": null,
              "timeShift": null,
              "title": "Network",
              "tooltip": {
                "msResolution": false,
                "shared": false,
                "sort": 2,
                "value_type": "cumulative"
              },
              "type": "graph",
              "xaxis": {
                "show": true
              },
              "yaxes": [{
                "format": "Bps",
                "label": "transmit / receive",
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              }, {
                "format": "short",
                "label": null,
                "logBase": 1,
                "max": null,
                "min": null,
                "show": false
              }]
            }, {
              "aliasColors": {},
              "bars": false,
              "datasource": "${DS_PROMETHEUS}",
              "decimals": 2,
              "editable": true,
              "error": false,
              "fill": 1,
              "grid": {
                "threshold1": null,
                "threshold1Color": "rgba(216, 200, 27, 0.27)",
                "threshold2": null,
                "threshold2Color": "rgba(234, 112, 112, 0.22)"
              },
              "id": 34,
              "isNew": true,
              "legend": {
                "alignAsTable": true,
                "avg": true,
                "current": true,
                "hideEmpty": true,
                "hideZero": true,
                "max": false,
                "min": false,
                "rightSide": true,
                "show": true,
                "sideWidth": 200,
                "sort": "current",
                "sortDesc": true,
                "total": false,
                "values": true
              },
              "lines": true,
              "linewidth": 2,
              "links": [],
              "nullPointMode": "null",
              "percentage": false,
              "pointradius": 5,
              "points": false,
              "renderer": "flot",
              "seriesOverrides": [],
              "span": 12,
              "stack": false,
              "steppedLine": false,
              "targets": [{
                "expr": "sum(container_fs_usage_bytes{image!=\"\",name=~\"^k8s_.*\",instance=~\"^$instance$\",namespace=~\"^$namespace$\"}) by (pod_name)",
                "interval": "",
                "intervalFactor": 2,
                "legendFormat": "{{ pod_name }}",
                "metric": "network",
                "refId": "A",
                "step": 240
              }],
              "timeFrom": null,
              "timeShift": null,
              "title": "Filesystem",
              "tooltip": {
                "msResolution": false,
                "shared": false,
                "sort": 2,
                "value_type": "cumulative"
              },
              "type": "graph",
              "xaxis": {
                "show": true
              },
              "yaxes": [{
                "format": "bytes",
                "label": "used",
                "logBase": 1,
                "max": null,
                "min": null,
                "show": true
              }, {
                "format": "short",
                "label": null,
                "logBase": 1,
                "max": null,
                "min": null,
                "show": false
              }]
            }],
            "showTitle": true,
            "title": "each pod"
          }],
          "time": {
            "from": "now-3d",
            "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"
            ]
          },
          "templating": {
            "list": [{
              "allValue": ".*",
              "current": {},
              "datasource": "${DS_PROMETHEUS}",
              "hide": 0,
              "includeAll": true,
              "label": "Instance",
              "multi": false,
              "name": "instance",
              "options": [],
              "query": "label_values(instance)",
              "refresh": 1,
              "regex": "",
              "type": "query"
            }, {
              "current": {},
              "datasource": "${DS_PROMETHEUS}",
              "hide": 0,
              "includeAll": true,
              "label": "Namespace",
              "multi": true,
              "name": "namespace",
              "options": [],
              "query": "label_values(namespace)",
              "refresh": 1,
              "regex": "",
              "type": "query"
            }]
          },
          "annotations": {
            "list": []
          },
          "refresh": false,
          "schemaVersion": 12,
          "version": 8,
          "links": [],
          "gnetId": 737
        }
      prometheus-datasource.json: |
        {
          "name": "prometheus",
          "type": "prometheus",
          "url": "http://prometheus:9090",
          "access": "proxy",
          "basicAuth": false
        }
    ---
    apiVersion: v1
    kind: Service
    metadata:
      name: grafana
      namespace: monitoring
      labels:
        app: grafana
        component: core
    spec:
      type: NodePort
      ports:
        - port: 3000
      selector:
        app: grafana
        component: core
    ---
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: grafana-core
      namespace: monitoring
      labels:
        app: grafana
        component: core
    spec:
      replicas: 1
      selector:
        matchLabels:
          app: grafana
          component: core
      template:
        metadata:
          labels:
            app: grafana
            component: core
        spec:
          containers:
    #     - image: grafana/grafana:4.2.0
          - image: grafana/grafana:4.2.0
            name: grafana-core
            imagePullPolicy: IfNotPresent
            # env:
            resources:
              # keep request = limit to keep this container in guaranteed class
              limits:
                cpu: 100m
                memory: 100Mi
              requests:
                cpu: 100m
                memory: 100Mi
            env:
              # The following env variables set up basic auth twith the default admin user and admin password.
              - name: GF_AUTH_BASIC_ENABLED
                value: "true"
              - name: GF_SECURITY_ADMIN_USER
                valueFrom:
                  secretKeyRef:
                    name: grafana
                    key: admin-username
              - name: GF_SECURITY_ADMIN_PASSWORD
                valueFrom:
                  secretKeyRef:
                    name: grafana
                    key: admin-password
              - name: GF_AUTH_ANONYMOUS_ENABLED
                value: "false"
              # - name: GF_AUTH_ANONYMOUS_ORG_ROLE
              #   value: Admin
              # does not really work, because of template variables in exported dashboards:
              # - name: GF_DASHBOARDS_JSON_ENABLED
              #   value: "true"
            readinessProbe:
              httpGet:
                path: /login
                port: 3000
              # initialDelaySeconds: 30
              # timeoutSeconds: 1
            volumeMounts:
            - name: grafana-persistent-storage
              mountPath: /var/lib/grafana
          volumes:
          - name: grafana-persistent-storage
            emptyDir: {}
    ---
    apiVersion: batch/v1
    kind: Job
    metadata:
      name: grafana-import-dashboards
      namespace: monitoring
      labels:
        app: grafana
        component: import-dashboards
    spec:
      template:
        metadata:
          name: grafana-import-dashboards
          labels:
            app: grafana
            component: import-dashboards
        spec:
          serviceAccountName: prometheus-k8s
          initContainers:
          - name: wait-for-grafana
    #       image: giantswarm/tiny-tools
            image: giantswarm/tiny-tools
            args:
            - /bin/sh
            - -c
            - >
              set -x;
              while [ $(curl -sw '%{http_code}' "http://grafana:3000" -o /dev/null) -ne 200]; do
                echo '.'
                sleep 15;
              done
          containers:
          - name: grafana-import-dashboards
    #       image: giantswarm/tiny-tools      
            image: giantswarm/tiny-tools
            command: ["/bin/sh", "-c"]
            workingDir: /opt/grafana-import-dashboards
            args:
              - >
                for file in *-datasource.json ; do
                  if [ -e "$file" ] ; then
                    echo "importing $file" &&
                    curl --silent --fail --show-error \
                      --request POST http://${GF_ADMIN_USER}:${GF_ADMIN_PASSWORD}@grafana:3000/api/datasources \
                      --header "Content-Type: application/json" \
                      --data-binary "@$file" ;
                    echo "" ;
                  fi
                done ;
                for file in *-dashboard.json ; do
                  if [ -e "$file" ] ; then
                    echo "importing $file" &&
                    ( echo '{"dashboard":'; \
                      cat "$file"; \
                      echo ',"overwrite":true,"inputs":[{"name":"DS_PROMETHEUS","type":"datasource","pluginId":"prometheus","value":"prometheus"}]}' ) \
                    | jq -c '.' \
                    | curl --silent --fail --show-error \
                      --request POST http://${GF_ADMIN_USER}:${GF_ADMIN_PASSWORD}@grafana:3000/api/dashboards/import \
                      --header "Content-Type: application/json" \
                      --data-binary "@-" ;
                    echo "" ;
                  fi
                done
    
            env:
            - name: GF_ADMIN_USER
              valueFrom:
                secretKeyRef:
                  name: grafana
                  key: admin-username
            - name: GF_ADMIN_PASSWORD
              valueFrom:
                secretKeyRef:
                  name: grafana
                  key: admin-password
            volumeMounts:
            - name: config-volume
              mountPath: /opt/grafana-import-dashboards
          restartPolicy: Never
          volumes:
          - name: config-volume
            configMap:
              name: grafana-import-dashboards
    
  • 部署 Grafana $ kubectl apply -f app-grafana.yaml

  • 上面两套都部署完成后,验证状态

    • $ kubectl get svc -n monitoring 查看 grafana (比如 30982) 和 prometheus (比如:30091) 服务端口
  • 访问 Grafana UI界面 ip:30982 登录 添加 DataSource

    • config 选项卡中 Type 选择 Prometheus, url 填写 prometheus部署的node的ip:30091
      • 注意,在 prometheus部署的node的ip:30091 这个 prometheus 的 UI界面下,上面的导航栏中有 Status
      • 在 Status的 下拉选项中有 Targets 点击进去可以看到 监控目标的 State 值一定是 UP,否则就是服务没有起来,就监控不到
  • 之后进行 Grafana Dashboard 的配置,现在换一个监控的模板

    • 添加数据源 Prometheus
    • 添加 dashboard: “dashboard->import” 输入模板 json内容
    • 可以参考如下文件:jvm-micrometer.json
    • 之后点击 Load, 之后 Options 下的 Select a Prometheus data source 选择 prome
    • 之后,点击 Import 这时候界面就可以看到,非常漂亮的界面
  • 数据面板会有延时,也可自行刷新查看,每个指标都是配置文件中定义的

  • 状态会基本实时反馈到这个界面中,可以定刷新的时间,也可主动刷新

  • jvm-micrometer.json 文件如下

    {
        "__inputs": [
        {
            "name": "DS_PROMETHEUS",
            "label": "Prometheus",
            "description": "",
            "type": "datasource",
            "pluginId": "prometheus",
            "pluginName": "Prometheus"
        }
        ],
        "__requires": [
        {
            "type": "grafana",
            "id": "grafana",
            "name": "Grafana",
            "version": "4.6.1"
        },
        {
            "type": "panel",
            "id": "graph",
            "name": "Graph",
            "version": ""
        },
        {
            "type": "datasource",
            "id": "prometheus",
            "name": "Prometheus",
            "version": "1.0.0"
        },
        {
            "type": "panel",
            "id": "singlestat",
            "name": "Singlestat",
            "version": ""
        }
        ],
        "annotations": {
        "list": [
            {
            "builtIn": 1,
            "datasource": "-- Grafana --",
            "enable": true,
            "hide": true,
            "iconColor": "rgba(0, 211, 255, 1)",
            "limit": 100,
            "name": "Annotations & Alerts",
            "showIn": 0,
            "type": "dashboard"
            },
            {
            "datasource": "${DS_PROMETHEUS}",
            "enable": true,
            "expr": "resets(process_uptime_seconds{application=\"$application\", instance=\"$instance\"}[1m]) > 0",
            "iconColor": "rgba(255, 96, 96, 1)",
            "name": "Restart Detection",
            "showIn": 0,
            "step": "1m",
            "tagKeys": "restart-tag",
            "textFormat": "uptime reset",
            "titleFormat": "Restart"
            }
        ]
        },
        "description": "Dashboard for Micrometer instrumented applications (Java, Spring Boot, Micronaut)",
        "editable": true,
        "gnetId": 4701,
        "graphTooltip": 1,
        "hideControls": false,
        "id": null,
        "links": [],
        "refresh": "30s",
        "rows": [
        {
            "collapse": false,
            "height": "100px",
            "panels": [
            {
                "cacheTimeout": null,
                "colorBackground": false,
                "colorValue": true,
                "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
                ],
                "datasource": "${DS_PROMETHEUS}",
                "decimals": 1,
                "editable": true,
                "error": false,
                "format": "s",
                "gauge": {
                "maxValue": 100,
                "minValue": 0,
                "show": false,
                "thresholdLabels": false,
                "thresholdMarkers": true
                },
                "height": "",
                "id": 63,
                "interval": null,
                "links": [],
                "mappingType": 1,
                "mappingTypes": [
                {
                    "name": "value to text",
                    "value": 1
                },
                {
                    "name": "range to text",
                    "value": 2
                }
                ],
                "maxDataPoints": 100,
                "nullPointMode": "connected",
                "nullText": null,
                "postfix": "",
                "postfixFontSize": "50%",
                "prefix": "",
                "prefixFontSize": "70%",
                "rangeMaps": [
                {
                    "from": "null",
                    "text": "N/A",
                    "to": "null"
                }
                ],
                "span": 3,
                "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": false
                },
                "tableColumn": "",
                "targets": [
                {
                    "expr": "process_uptime_seconds{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "",
                    "metric": "",
                    "refId": "A",
                    "step": 14400
                }
                ],
                "thresholds": "",
                "title": "Uptime",
                "transparent": false,
                "type": "singlestat",
                "valueFontSize": "80%",
                "valueMaps": [
                {
                    "op": "=",
                    "text": "N/A",
                    "value": "null"
                }
                ],
                "valueName": "current"
            },
            {
                "cacheTimeout": null,
                "colorBackground": false,
                "colorValue": true,
                "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
                ],
                "datasource": "${DS_PROMETHEUS}",
                "decimals": null,
                "editable": true,
                "error": false,
                "format": "dateTimeAsIso",
                "gauge": {
                "maxValue": 100,
                "minValue": 0,
                "show": false,
                "thresholdLabels": false,
                "thresholdMarkers": true
                },
                "height": "",
                "id": 92,
                "interval": null,
                "links": [],
                "mappingType": 1,
                "mappingTypes": [
                {
                    "name": "value to text",
                    "value": 1
                },
                {
                    "name": "range to text",
                    "value": 2
                }
                ],
                "maxDataPoints": 100,
                "nullPointMode": "connected",
                "nullText": null,
                "postfix": "",
                "postfixFontSize": "50%",
                "prefix": "",
                "prefixFontSize": "70%",
                "rangeMaps": [
                {
                    "from": "null",
                    "text": "N/A",
                    "to": "null"
                }
                ],
                "span": 3,
                "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": false
                },
                "tableColumn": "",
                "targets": [
                {
                    "expr": "process_start_time_seconds{application=\"$application\", instance=\"$instance\"}*1000",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "",
                    "metric": "",
                    "refId": "A",
                    "step": 14400
                }
                ],
                "thresholds": "",
                "title": "Start time",
                "transparent": false,
                "type": "singlestat",
                "valueFontSize": "70%",
                "valueMaps": [
                {
                    "op": "=",
                    "text": "N/A",
                    "value": "null"
                }
                ],
                "valueName": "current"
            },
            {
                "cacheTimeout": null,
                "colorBackground": false,
                "colorValue": true,
                "colors": [
                "rgba(50, 172, 45, 0.97)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(245, 54, 54, 0.9)"
                ],
                "datasource": "${DS_PROMETHEUS}",
                "decimals": 2,
                "editable": true,
                "error": false,
                "format": "percent",
                "gauge": {
                "maxValue": 100,
                "minValue": 0,
                "show": false,
                "thresholdLabels": false,
                "thresholdMarkers": true
                },
                "id": 65,
                "interval": null,
                "links": [],
                "mappingType": 1,
                "mappingTypes": [
                {
                    "name": "value to text",
                    "value": 1
                },
                {
                    "name": "range to text",
                    "value": 2
                }
                ],
                "maxDataPoints": 100,
                "nullPointMode": "connected",
                "nullText": null,
                "postfix": "",
                "postfixFontSize": "50%",
                "prefix": "",
                "prefixFontSize": "70%",
                "rangeMaps": [
                {
                    "from": "null",
                    "text": "N/A",
                    "to": "null"
                }
                ],
                "span": 3,
                "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": false
                },
                "tableColumn": "",
                "targets": [
                {
                    "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"})*100/sum(jvm_memory_max_bytes{application=\"$application\",instance=\"$instance\", area=\"heap\"})",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "",
                    "refId": "A",
                    "step": 14400
                }
                ],
                "thresholds": "70,90",
                "title": "Heap used",
                "type": "singlestat",
                "valueFontSize": "80%",
                "valueMaps": [
                {
                    "op": "=",
                    "text": "N/A",
                    "value": "null"
                }
                ],
                "valueName": "current"
            },
            {
                "cacheTimeout": null,
                "colorBackground": false,
                "colorValue": true,
                "colors": [
                "rgba(50, 172, 45, 0.97)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(245, 54, 54, 0.9)"
                ],
                "datasource": "${DS_PROMETHEUS}",
                "decimals": 2,
                "editable": true,
                "error": false,
                "format": "percent",
                "gauge": {
                "maxValue": 100,
                "minValue": 0,
                "show": false,
                "thresholdLabels": false,
                "thresholdMarkers": true
                },
                "id": 75,
                "interval": null,
                "links": [],
                "mappingType": 2,
                "mappingTypes": [
                {
                    "name": "value to text",
                    "value": 1
                },
                {
                    "name": "range to text",
                    "value": 2
                }
                ],
                "maxDataPoints": 100,
                "nullPointMode": "connected",
                "nullText": null,
                "postfix": "",
                "postfixFontSize": "50%",
                "prefix": "",
                "prefixFontSize": "70%",
                "rangeMaps": [
                {
                    "from": "null",
                    "text": "N/A",
                    "to": "null"
                },
                {
                    "from": "-99999999999999999999999999999999",
                    "text": "N/A",
                    "to": "0"
                }
                ],
                "span": 3,
                "sparkline": {
                "fillColor": "rgba(31, 118, 189, 0.18)",
                "full": false,
                "lineColor": "rgb(31, 120, 193)",
                "show": false
                },
                "tableColumn": "",
                "targets": [
                {
                    "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\"})*100/sum(jvm_memory_max_bytes{application=\"$application\",instance=\"$instance\", area=\"nonheap\"})",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "",
                    "refId": "A",
                    "step": 14400
                }
                ],
                "thresholds": "70,90",
                "title": "Non-Heap used",
                "type": "singlestat",
                "valueFontSize": "80%",
                "valueMaps": [
                {
                    "op": "=",
                    "text": "N/A",
                    "value": "null"
                },
                {
                    "op": "=",
                    "text": "x",
                    "value": ""
                }
                ],
                "valueName": "current"
            }
            ],
            "repeat": null,
            "repeatIteration": null,
            "repeatRowId": null,
            "showTitle": true,
            "title": "Quick Facts",
            "titleSize": "h6"
        },
        {
            "collapse": false,
            "height": 250,
            "panels": [
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "fill": 1,
                "id": 111,
                "legend": {
                "avg": false,
                "current": true,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", instance=\"$instance\"}[1m]))",
                    "format": "time_series",
                    "intervalFactor": 1,
                    "legendFormat": "HTTP",
                    "refId": "A"
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Rate",
                "tooltip": {
                "shared": true,
                "sort": 0,
                "value_type": "individual"
                },
                "type": "graph",
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "yaxes": [
                {
                    "decimals": null,
                    "format": "ops",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": "0",
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {
                "HTTP": "#890f02",
                "HTTP - 5xx": "#bf1b00"
                },
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "fill": 1,
                "id": 112,
                "legend": {
                "avg": false,
                "current": true,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", instance=\"$instance\", status=~\"5..\"}[1m]))",
                    "format": "time_series",
                    "intervalFactor": 1,
                    "legendFormat": "HTTP - 5xx",
                    "refId": "A"
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Errors",
                "tooltip": {
                "shared": true,
                "sort": 0,
                "value_type": "individual"
                },
                "type": "graph",
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "yaxes": [
                {
                    "decimals": null,
                    "format": "ops",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": "0",
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "fill": 1,
                "id": 113,
                "legend": {
                "avg": false,
                "current": true,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "sum(rate(http_server_requests_seconds_sum{application=\"$application\", instance=\"$instance\", status!~\"5..\"}[1m]))/sum(rate(http_server_requests_seconds_count{application=\"$application\", instance=\"$instance\", status!~\"5..\"}[1m]))",
                    "format": "time_series",
                    "hide": false,
                    "intervalFactor": 1,
                    "legendFormat": "HTTP - AVG",
                    "refId": "A"
                },
                {
                    "expr": "max(http_server_requests_seconds_max{application=\"$application\", instance=\"$instance\", status!~\"5..\"})",
                    "format": "time_series",
                    "hide": false,
                    "intervalFactor": 1,
                    "legendFormat": "HTTP - MAX",
                    "refId": "B"
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Duration",
                "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": "0",
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "description": "",
                "fill": 1,
                "id": 119,
                "legend": {
                "alignAsTable": false,
                "avg": false,
                "current": true,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "tomcat_threads_busy_threads{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "hide": false,
                    "intervalFactor": 2,
                    "legendFormat": "TOMCAT - BSY",
                    "refId": "A"
                },
                {
                    "expr": "tomcat_threads_current_threads{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "hide": false,
                    "intervalFactor": 2,
                    "legendFormat": "TOMCAT - CUR",
                    "refId": "B"
                },
                {
                    "expr": "tomcat_threads_config_max_threads{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "hide": false,
                    "intervalFactor": 2,
                    "legendFormat": "TOMCAT - MAX",
                    "refId": "C"
                },
                {
                    "expr": "jetty_threads_busy{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "hide": false,
                    "intervalFactor": 2,
                    "legendFormat": "JETTY - BSY",
                    "refId": "D"
                },
                {
                    "expr": "jetty_threads_current{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "hide": false,
                    "intervalFactor": 2,
                    "legendFormat": "JETTY - CUR",
                    "refId": "E"
                },
                {
                    "expr": "jetty_threads_config_max{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "hide": false,
                    "intervalFactor": 2,
                    "legendFormat": "JETTY - MAX",
                    "refId": "F"
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Utilisation",
                "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": "0",
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            }
            ],
            "repeat": null,
            "repeatIteration": null,
            "repeatRowId": null,
            "showTitle": true,
            "title": "I/O Overview",
            "titleSize": "h6"
        },
        {
            "collapse": false,
            "height": "250px",
            "panels": [
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 24,
                "legend": {
                "avg": false,
                "current": true,
                "max": true,
                "min": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"})",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "used",
                    "metric": "",
                    "refId": "A",
                    "step": 2400
                },
                {
                    "expr": "sum(jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"})",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "committed",
                    "refId": "B",
                    "step": 2400
                },
                {
                    "expr": "sum(jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"})",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "max",
                    "refId": "C",
                    "step": 2400
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "JVM Heap",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "mbytes",
                "short"
                ],
                "yaxes": [
                {
                    "format": "bytes",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": 0,
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 25,
                "legend": {
                "avg": false,
                "current": true,
                "max": true,
                "min": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\"})",
                    "format": "time_series",
                    "interval": "",
                    "intervalFactor": 2,
                    "legendFormat": "used",
                    "metric": "",
                    "refId": "A",
                    "step": 2400
                },
                {
                    "expr": "sum(jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\"})",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "committed",
                    "refId": "B",
                    "step": 2400
                },
                {
                    "expr": "sum(jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\"})",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "max",
                    "refId": "C",
                    "step": 2400
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "JVM Non-Heap",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "mbytes",
                "short"
                ],
                "yaxes": [
                {
                    "format": "bytes",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": 0,
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 26,
                "legend": {
                "alignAsTable": false,
                "avg": false,
                "current": true,
                "max": true,
                "min": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\"})",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "used",
                    "metric": "",
                    "refId": "A",
                    "step": 2400
                },
                {
                    "expr": "sum(jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\"})",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "committed",
                    "refId": "B",
                    "step": 2400
                },
                {
                    "expr": "sum(jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\"})",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "max",
                    "refId": "C",
                    "step": 2400
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "JVM Total",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "mbytes",
                "short"
                ],
                "yaxes": [
                {
                    "format": "bytes",
                    "label": "",
                    "logBase": 1,
                    "max": null,
                    "min": 0,
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 86,
                "legend": {
                "avg": false,
                "current": true,
                "max": true,
                "min": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "process_memory_vss_bytes{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "hide": true,
                    "intervalFactor": 2,
                    "legendFormat": "vss",
                    "metric": "",
                    "refId": "A",
                    "step": 2400
                },
                {
                    "expr": "process_memory_rss_bytes{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "rss",
                    "refId": "B"
                },
                {
                    "expr": "process_memory_swap_bytes{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "swap",
                    "refId": "C"
                },
                {
                    "expr": "process_memory_rss_bytes{application=\"$application\", instance=\"$instance\"} + process_memory_swap_bytes{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "total",
                    "refId": "D"
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "JVM Process Memory",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "mbytes",
                "short"
                ],
                "yaxes": [
                {
                    "format": "bytes",
                    "label": "",
                    "logBase": 1,
                    "max": null,
                    "min": "0",
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            }
            ],
            "repeat": null,
            "repeatIteration": null,
            "repeatRowId": null,
            "showTitle": true,
            "title": "JVM Memory",
            "titleSize": "h6"
        },
        {
            "collapse": false,
            "height": 250,
            "panels": [
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 106,
                "legend": {
                "avg": false,
                "current": true,
                "max": true,
                "min": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "system_cpu_usage{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "hide": false,
                    "intervalFactor": 1,
                    "legendFormat": "system",
                    "metric": "",
                    "refId": "A",
                    "step": 2400
                },
                {
                    "expr": "process_cpu_usage{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "hide": false,
                    "intervalFactor": 1,
                    "legendFormat": "process",
                    "refId": "B"
                },
                {
                    "expr": "avg_over_time(process_cpu_usage{application=\"$application\", instance=\"$instance\"}[1h])",
                    "format": "time_series",
                    "hide": false,
                    "intervalFactor": 1,
                    "legendFormat": "process-1h",
                    "refId": "C"
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "CPU Usage",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "short",
                "short"
                ],
                "yaxes": [
                {
                    "decimals": 1,
                    "format": "percentunit",
                    "label": "",
                    "logBase": 1,
                    "max": "1",
                    "min": 0,
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 93,
                "legend": {
                "avg": false,
                "current": true,
                "max": true,
                "min": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "system_load_average_1m{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "system-1m",
                    "metric": "",
                    "refId": "A",
                    "step": 2400
                },
                {
                    "expr": "system_cpu_count{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "cpus",
                    "refId": "B"
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Load",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "short",
                "short"
                ],
                "yaxes": [
                {
                    "decimals": 1,
                    "format": "short",
                    "label": "",
                    "logBase": 1,
                    "max": null,
                    "min": 0,
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 32,
                "legend": {
                "avg": false,
                "current": true,
                "max": true,
                "min": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "jvm_threads_live_threads{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "live",
                    "metric": "",
                    "refId": "A",
                    "step": 2400
                },
                {
                    "expr": "jvm_threads_daemon_threads{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "daemon",
                    "metric": "",
                    "refId": "B",
                    "step": 2400
                },
                {
                    "expr": "jvm_threads_peak_threads{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "peak",
                    "refId": "C",
                    "step": 2400
                },
                {
                    "expr": "process_threads{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "interval": "",
                    "intervalFactor": 2,
                    "legendFormat": "process",
                    "refId": "D",
                    "step": 2400
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Threads",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "short",
                "short"
                ],
                "yaxes": [
                {
                    "decimals": 0,
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": 0,
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {
                "blocked": "#bf1b00",
                "new": "#fce2de",
                "runnable": "#7eb26d",
                "terminated": "#511749",
                "timed-waiting": "#c15c17",
                "waiting": "#eab839"
                },
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "fill": 1,
                "id": 124,
                "legend": {
                "alignAsTable": false,
                "avg": false,
                "current": true,
                "max": true,
                "min": false,
                "rightSide": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "jvm_threads_states_threads{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "{{state}}",
                    "refId": "A"
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Thread States",
                "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
                }
                ]
            },
            {
                "aliasColors": {
                "debug": "#1F78C1",
                "error": "#BF1B00",
                "info": "#508642",
                "trace": "#6ED0E0",
                "warn": "#EAB839"
                },
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "height": "",
                "id": 91,
                "legend": {
                "alignAsTable": false,
                "avg": false,
                "current": true,
                "hideEmpty": false,
                "hideZero": false,
                "max": true,
                "min": false,
                "rightSide": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": true,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [
                {
                    "alias": "error",
                    "yaxis": 1
                },
                {
                    "alias": "warn",
                    "yaxis": 1
                }
                ],
                "spaceLength": 10,
                "span": 9,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "increase(logback_events_total{application=\"$application\", instance=\"$instance\"}[1m])",
                    "format": "time_series",
                    "interval": "",
                    "intervalFactor": 2,
                    "legendFormat": "{{level}}",
                    "metric": "",
                    "refId": "A",
                    "step": 1200
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Log Events",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "individual"
                },
                "transparent": false,
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "short",
                "short"
                ],
                "yaxes": [
                {
                    "decimals": 0,
                    "format": "opm",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": "0",
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 61,
                "legend": {
                "avg": false,
                "current": true,
                "max": true,
                "min": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "process_files_open_files{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "hide": false,
                    "intervalFactor": 2,
                    "legendFormat": "open",
                    "metric": "",
                    "refId": "A",
                    "step": 2400
                },
                {
                    "expr": "process_files_max_files{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "hide": false,
                    "intervalFactor": 2,
                    "legendFormat": "max",
                    "metric": "",
                    "refId": "B",
                    "step": 2400
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "File Descriptors",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "short",
                "short"
                ],
                "yaxes": [
                {
                    "decimals": 0,
                    "format": "short",
                    "label": null,
                    "logBase": 10,
                    "max": null,
                    "min": 0,
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            }
            ],
            "repeat": null,
            "repeatIteration": null,
            "repeatRowId": null,
            "showTitle": true,
            "title": "JVM Misc",
            "titleSize": "h6"
        },
        {
            "collapse": false,
            "height": "250px",
            "panels": [
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 3,
                "legend": {
                "alignAsTable": false,
                "avg": false,
                "current": true,
                "max": true,
                "min": false,
                "rightSide": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "minSpan": 4,
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "repeat": "jvm_memory_pool_heap",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 4,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_heap\"}",
                    "format": "time_series",
                    "hide": false,
                    "interval": "",
                    "intervalFactor": 2,
                    "legendFormat": "used",
                    "metric": "",
                    "refId": "A",
                    "step": 1800
                },
                {
                    "expr": "jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_heap\"}",
                    "format": "time_series",
                    "hide": false,
                    "interval": "",
                    "intervalFactor": 2,
                    "legendFormat": "commited",
                    "metric": "",
                    "refId": "B",
                    "step": 1800
                },
                {
                    "expr": "jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_heap\"}",
                    "format": "time_series",
                    "hide": false,
                    "interval": "",
                    "intervalFactor": 2,
                    "legendFormat": "max",
                    "metric": "",
                    "refId": "C",
                    "step": 1800
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "$jvm_memory_pool_heap",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "mbytes",
                "short"
                ],
                "yaxes": [
                {
                    "format": "bytes",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": 0,
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            }
            ],
            "repeat": "persistence_counts",
            "repeatIteration": null,
            "repeatRowId": null,
            "showTitle": true,
            "title": "JVM Memory Pools (Heap)",
            "titleSize": "h6"
        },
        {
            "collapse": false,
            "height": 250,
            "panels": [
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 78,
                "legend": {
                "alignAsTable": false,
                "avg": false,
                "current": true,
                "max": true,
                "min": false,
                "rightSide": false,
                "show": true,
                "total": false,
                "values": true
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "minSpan": 4,
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "repeat": "jvm_memory_pool_nonheap",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 4,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_nonheap\"}",
                    "format": "time_series",
                    "hide": false,
                    "interval": "",
                    "intervalFactor": 2,
                    "legendFormat": "used",
                    "metric": "",
                    "refId": "A",
                    "step": 1800
                },
                {
                    "expr": "jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_nonheap\"}",
                    "format": "time_series",
                    "hide": false,
                    "interval": "",
                    "intervalFactor": 2,
                    "legendFormat": "commited",
                    "metric": "",
                    "refId": "B",
                    "step": 1800
                },
                {
                    "expr": "jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_nonheap\"}",
                    "format": "time_series",
                    "hide": false,
                    "interval": "",
                    "intervalFactor": 2,
                    "legendFormat": "max",
                    "metric": "",
                    "refId": "C",
                    "step": 1800
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "$jvm_memory_pool_nonheap",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "mbytes",
                "short"
                ],
                "yaxes": [
                {
                    "format": "bytes",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": 0,
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            }
            ],
            "repeat": null,
            "repeatIteration": null,
            "repeatRowId": null,
            "showTitle": true,
            "title": "JVM Memory Pools (Non-Heap)",
            "titleSize": "h6"
        },
        {
            "collapse": false,
            "height": 250,
            "panels": [
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "fill": 1,
                "id": 98,
                "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 4,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "rate(jvm_gc_pause_seconds_count{application=\"$application\", instance=\"$instance\"}[1m])",
                    "format": "time_series",
                    "hide": false,
                    "intervalFactor": 1,
                    "legendFormat": "{{action}} ({{cause}})",
                    "refId": "A"
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Collections",
                "tooltip": {
                "shared": true,
                "sort": 0,
                "value_type": "individual"
                },
                "type": "graph",
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "yaxes": [
                {
                    "format": "ops",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": "0",
                    "show": true
                },
                {
                    "format": "short",
                    "label": "",
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "fill": 1,
                "id": 101,
                "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 4,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "rate(jvm_gc_pause_seconds_sum{application=\"$application\", instance=\"$instance\"}[1m])/rate(jvm_gc_pause_seconds_count{application=\"$application\", instance=\"$instance\"}[1m])",
                    "format": "time_series",
                    "hide": false,
                    "instant": false,
                    "intervalFactor": 1,
                    "legendFormat": "avg {{action}} ({{cause}})",
                    "refId": "A"
                },
                {
                    "expr": "jvm_gc_pause_seconds_max{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "hide": false,
                    "instant": false,
                    "intervalFactor": 1,
                    "legendFormat": "max {{action}} ({{cause}})",
                    "refId": "B"
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Pause Durations",
                "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": "0",
                    "show": true
                },
                {
                    "format": "short",
                    "label": "",
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "fill": 1,
                "id": 99,
                "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 4,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "rate(jvm_gc_memory_allocated_bytes_total{application=\"$application\", instance=\"$instance\"}[1m])",
                    "format": "time_series",
                    "interval": "",
                    "intervalFactor": 1,
                    "legendFormat": "allocated",
                    "refId": "A"
                },
                {
                    "expr": "rate(jvm_gc_memory_promoted_bytes_total{application=\"$application\", instance=\"$instance\"}[1m])",
                    "format": "time_series",
                    "interval": "",
                    "intervalFactor": 1,
                    "legendFormat": "promoted",
                    "refId": "B"
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Allocated/Promoted",
                "tooltip": {
                "shared": true,
                "sort": 0,
                "value_type": "individual"
                },
                "type": "graph",
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "yaxes": [
                {
                    "format": "Bps",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": "0",
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            }
            ],
            "repeat": null,
            "repeatIteration": null,
            "repeatRowId": null,
            "showTitle": true,
            "title": "Garbage Collection",
            "titleSize": "h6"
        },
        {
            "collapse": false,
            "height": "250px",
            "panels": [
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 37,
                "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 6,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "jvm_classes_loaded_classes{application=\"$application\", instance=\"$instance\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "loaded",
                    "metric": "",
                    "refId": "A",
                    "step": 1200
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Classes loaded",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "short",
                "short"
                ],
                "yaxes": [
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": 0,
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 38,
                "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 6,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "delta(jvm_classes_loaded_classes{application=\"$application\",instance=\"$instance\"}[1m])",
                    "format": "time_series",
                    "hide": false,
                    "interval": "",
                    "intervalFactor": 1,
                    "legendFormat": "delta-1m",
                    "metric": "",
                    "refId": "A",
                    "step": 1200
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Class delta",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "ops",
                "short"
                ],
                "yaxes": [
                {
                    "decimals": null,
                    "format": "short",
                    "label": "",
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            }
            ],
            "repeat": null,
            "repeatIteration": null,
            "repeatRowId": null,
            "showTitle": true,
            "title": "Classloading",
            "titleSize": "h6"
        },
        {
            "collapse": false,
            "height": "250px",
            "panels": [
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 33,
                "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "jvm_buffer_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=\"direct\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "used",
                    "metric": "",
                    "refId": "A",
                    "step": 2400
                },
                {
                    "expr": "jvm_buffer_total_capacity_bytes{application=\"$application\", instance=\"$instance\", id=\"direct\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "capacity",
                    "metric": "",
                    "refId": "B",
                    "step": 2400
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Direct Buffers",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "short",
                "short"
                ],
                "yaxes": [
                {
                    "format": "bytes",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": 0,
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 83,
                "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "jvm_buffer_count_buffers{application=\"$application\", instance=\"$instance\", id=\"direct\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "count",
                    "metric": "",
                    "refId": "A",
                    "step": 2400
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Direct Buffers",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "short",
                "short"
                ],
                "yaxes": [
                {
                    "decimals": 0,
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": 0,
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 85,
                "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "jvm_buffer_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=\"mapped\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "used",
                    "metric": "",
                    "refId": "A",
                    "step": 2400
                },
                {
                    "expr": "jvm_buffer_total_capacity_bytes{application=\"$application\", instance=\"$instance\", id=\"mapped\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "capacity",
                    "metric": "",
                    "refId": "B",
                    "step": 2400
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Mapped Buffers",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "short",
                "short"
                ],
                "yaxes": [
                {
                    "format": "bytes",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": 0,
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            },
            {
                "aliasColors": {},
                "bars": false,
                "dashLength": 10,
                "dashes": false,
                "datasource": "${DS_PROMETHEUS}",
                "editable": true,
                "error": false,
                "fill": 1,
                "grid": {
                "leftLogBase": 1,
                "leftMax": null,
                "leftMin": null,
                "rightLogBase": 1,
                "rightMax": null,
                "rightMin": null
                },
                "id": 84,
                "legend": {
                "avg": false,
                "current": false,
                "max": false,
                "min": false,
                "show": true,
                "total": false,
                "values": false
                },
                "lines": true,
                "linewidth": 1,
                "links": [],
                "nullPointMode": "null",
                "percentage": false,
                "pointradius": 5,
                "points": false,
                "renderer": "flot",
                "seriesOverrides": [],
                "spaceLength": 10,
                "span": 3,
                "stack": false,
                "steppedLine": false,
                "targets": [
                {
                    "expr": "jvm_buffer_count_buffers{application=\"$application\", instance=\"$instance\", id=\"mapped\"}",
                    "format": "time_series",
                    "intervalFactor": 2,
                    "legendFormat": "count",
                    "metric": "",
                    "refId": "A",
                    "step": 2400
                }
                ],
                "thresholds": [],
                "timeFrom": null,
                "timeShift": null,
                "title": "Mapped Buffers",
                "tooltip": {
                "msResolution": false,
                "shared": true,
                "sort": 0,
                "value_type": "cumulative"
                },
                "type": "graph",
                "x-axis": true,
                "xaxis": {
                "buckets": null,
                "mode": "time",
                "name": null,
                "show": true,
                "values": []
                },
                "y-axis": true,
                "y_formats": [
                "short",
                "short"
                ],
                "yaxes": [
                {
                    "decimals": 0,
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": 0,
                    "show": true
                },
                {
                    "format": "short",
                    "label": null,
                    "logBase": 1,
                    "max": null,
                    "min": null,
                    "show": true
                }
                ]
            }
            ],
            "repeat": null,
            "repeatIteration": null,
            "repeatRowId": null,
            "showTitle": true,
            "title": "Buffer Pools",
            "titleSize": "h6"
        }
        ],
        "schemaVersion": 14,
        "style": "dark",
        "tags": [],
        "templating": {
        "list": [
            {
            "allValue": null,
            "current": {},
            "datasource": "${DS_PROMETHEUS}",
            "hide": 0,
            "includeAll": false,
            "label": "Application",
            "multi": false,
            "name": "application",
            "options": [],
            "query": "label_values(application)",
            "refresh": 2,
            "regex": "",
            "sort": 0,
            "tagValuesQuery": "",
            "tags": [],
            "tagsQuery": "",
            "type": "query",
            "useTags": false
            },
            {
            "allFormat": "glob",
            "allValue": null,
            "current": {},
            "datasource": "${DS_PROMETHEUS}",
            "hide": 0,
            "includeAll": false,
            "label": "Instance",
            "multi": false,
            "multiFormat": "glob",
            "name": "instance",
            "options": [],
            "query": "label_values(jvm_memory_used_bytes{application=\"$application\"}, instance)",
            "refresh": 2,
            "regex": "",
            "sort": 0,
            "tagValuesQuery": "",
            "tags": [],
            "tagsQuery": "",
            "type": "query",
            "useTags": false
            },
            {
            "allFormat": "glob",
            "allValue": null,
            "current": {},
            "datasource": "${DS_PROMETHEUS}",
            "hide": 0,
            "includeAll": true,
            "label": "JVM Memory Pools Heap",
            "multi": false,
            "multiFormat": "glob",
            "name": "jvm_memory_pool_heap",
            "options": [],
            "query": "label_values(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"},id)",
            "refresh": 1,
            "regex": "",
            "sort": 1,
            "tagValuesQuery": "",
            "tags": [],
            "tagsQuery": "",
            "type": "query",
            "useTags": false
            },
            {
            "allFormat": "glob",
            "allValue": null,
            "current": {},
            "datasource": "${DS_PROMETHEUS}",
            "hide": 0,
            "includeAll": true,
            "label": "JVM Memory Pools Non-Heap",
            "multi": false,
            "multiFormat": "glob",
            "name": "jvm_memory_pool_nonheap",
            "options": [],
            "query": "label_values(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\"},id)",
            "refresh": 1,
            "regex": "",
            "sort": 2,
            "tagValuesQuery": "",
            "tags": [],
            "tagsQuery": "",
            "type": "query",
            "useTags": false
            }
        ]
        },
        "time": {
        "from": "now-24h",
        "to": "now"
        },
        "timepicker": {
        "now": true,
        "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": "JVM (Micrometer)",
        "version": 24
    }
    
  • 注意,上述模板可以在 grafana 官网中找到相关模板

    • 可以 Copy ID,也可以 Download JSON 之后上传 (推荐)
  • 配置完成后,数据可以立即展现出来

kubernetes部署prometheus监控 阅读详情

相关推荐

基于Grafana+Prometheus实现k8s上的SpringBoot工程JVM监控

一文教你部署在k8s上面的springboot应用如何实时监控硬件状态、JVM状态。

富强说 4329

k8s监控方案实践(三):部署与配置Grafana可视化平台

Grafana 是一个开源的可视化监控平台,能够与 Prometheus、InfluxDB、Loki 等多种数据源集成,通过丰富的图表和仪表盘展示监控数据,帮助用户实时掌握系统状态和趋势。多数据源支持:支持 Prometheus、Elasticsearch、Loki、MySQL 等众多数据源丰富的图表展示能力:支持折线图、柱状图、饼图、热力图等灵活的仪表盘配置:支持变量、查询模板、权限控制强大的社区生态:拥有大量社区共享的仪表盘模板告警功能。

沉淀自己 3462

《kubernetes》Prometheus监控

本文介绍了在Kubernetes集群中部署Prometheus+Grafana监控系统的完整方案。主要内容包括:1)Prometheus监控系统架构及组件解析,包括server、node_exporter等;2)详细部署步骤:创建Prometheus Deployment/Service/ConfigMap/RBAC,部署Node_exporter DaemonSet,安装Grafana可视化组件;3)配置验证,通过NodePort访问Prometheus(9090端口)和Grafana(3000端口);

2301_80348933的博客 1217

Kubernetes运维之使用Prometheus全方位监控K8S

目录: Prometheus架构 K8S监控指标及实现思路 在K8S平台部署Prometheus 基于K8S服务发现的配置解析 在K8S平台部署Grafana 监控K8S集群中Pod、Node、资源对象 使用Grafana可视化展示Prometheus监控数据 告警规则与告警通知 说在前面的话,现在监控首选的话,肯定是Prometheus+Grafana,也就是很多大型公司也都在用,像RBM,360,网易,基本都是使用这一套监控系统。 一、Prometheus 是什么? Prometheu

Vic的博客 2万+

kubernetes监控-prometheus+Grafana打造高逼格监控

监控方案 cAdvisor+Heapster+InfluxDB+Grafana Y 简单 容器监控 cAdvisor/exporter+Prometheus+Grafana Y 扩展性好 容器,应用,主机全方面监控 Prome...

kubernetes中文社区 2623

Kubernetes精讲之prometheus

Prometheus是一个开源的服务监控系统和时序数据库其提供了通用的数据模型和快捷数据采集、存储和查询接口它的核心组件Prometheus服务器定期从静态配置的监控目标或者基于服务发现自动配置的目标中进行拉取数据新拉取到啊的 数据大于配置的内存缓存区时,数据就会持久化到存储设备当中。

m2282475145的博客 2053

Prometheus+Grafana 监控 Kubernetes

Prometheus+Grafana 监控 Kubernetes

qq_44930876的博客 2462

k8s部署 普罗米修斯(Prometheus)监控

Prometheus是一个开源的服务监控系统和时序数据库其提供了通用的数据模型和快捷数据采集、存储和查询接口它的核心组件Prometheus服务器定期从静态配置的监控目标或者基于服务发现自动配置的目标中进行拉 取数据新拉取到啊的 数据大于配置的内存缓存区时,数据就会持久化到存储设备当中。

D2961953033的博客 3856

Prometheus监控实战之Prometheus监控K8S

Prometheus监控K8S

sre救赎之路 1万+

【监控】k8s部署prometheus + grafana

Kubernetes可以约定好带哪些annotation前缀的服务是自主暴露监控指标的服务。应用添加约定的这些annotations,Prometheus可以根据annotation实现抓取。Prometheus根据这些annotations可以获知相应service是需要被探测的,探测的网络协议可以是http、tcp或其他,以及具体的探测端口。http探测需要知道探测的具体url。...

m0_54252387的博客 2万+

prometheus监控kubernetes集群并使用 grafana展示数据

整个监控系统的核心 ,有以下功能数据采集 :通过http协议主动从目标服务器pull(拉取)指标数据,也可以通过 Pushgateway接受推送数据数据存储:将采集的时序数据存储到本地的时序数库,默认保留15天查询与聚合提供PromeQL的查询语言,支持实时分析聚合数据告警与评估根据定义的告警规则计算是否触发告警,并将告警发送给Alertmanager。

tt666qq的博客 1011

Prometheus监控K8S

Prometheus监控K8S,此文章附带yam文件

礁之的博客 1万+

c语言实现语音检测vad_壹鸽技术科普·智能语音客服系统中的前端语音处理技术...

随着智能客服机器人产业的迅速发展,尤其是伴随着人工智能AI的风潮,预计在2020年我国智能客服市场将达到万亿级别。在智能客服机器人领域中对电话信道语音进行端点检测处理的应用正在不断扩展和深化。目前语音端点检测(Voice Active Detection,简称VAD)的主要任务是准确快速判决出待处理的语音信号有话还是无话,作为自动语音识别(Automatic Speech Recognition,...

weixin_36431018的博客 508

在k8s中部署Prometheus并实现对k8s集群的监控

本文详细介绍了如何在Kubernetes(k8s)集群中部署Prometheus,并实现对整个集群的监控。首先,文章简要概述了Prometheus作为一款开源系统监控和警报工具包的强大功能,以及它在现代云原生架构中的重要性。接着,文章详细阐述了在k8s集群中部署Prometheus的步骤,包括安装必要的组件

博客虽小,世界尽在其中 1万+

金蝶云星空API实战:从零到一,用Postman打通业务数据流

本文详细介绍了如何使用Postman调试金蝶云星空API,从创建第三方应用到实战调试技巧,帮助开发者快速打通业务数据流。文章重点讲解了API配置的关键细节、常见问题排查方法以及自动化测试方案,提升开发效率与准确性。

weixin_33712987的博客 520

Ai数字人直播系统搭建,本地源码部署,源码交付--支持OEM系统贴牌

AI 数字人直播系统是利用人工智能技术创建虚拟主播,并通过数字化技术实现直播互动的系统1。以下是其相关介绍:Ai数字人直播系统搭建,本地源码部署,源码交付--支持OEM系统贴牌。

weixin_ggwwsscc的博客 621

kubernetes+prometheus+grafana监控+alertmanager实现qq邮箱报警

node_exporter可以采集机器(物理机、虚拟机、云主机等)的监控指标数据,能够采集到的指标包括CPU、内存、磁盘、网络、文件数等信息Grafana是一个跨平台的开源的度量分析和可视化工具,可以将采集的数据可视化的展示,并及时通知给告警接收方。它主要有以下六大特点:1、展示方式:快速灵活的客户端图表,面板插件有许多不同方式的可视化指标和日志,官方库中具有丰富的仪表盘插件,比如热图、折线图、图表等多种展示方式;

嗨 你又来啦 2822

Python爬取拼多多商品数据保姆级教程(附源码及效果图)

本文介绍了使用Python爬取拼多多商品数据的完整教程。通过DrissionPage库模拟浏览器操作,利用正则表达式提取嵌入在HTML中的商品数据(关键步骤是从window.rawData变量获取),解析后转换为结构化数据并导出Excel。教程包含八大步骤:环境配置、浏览器初始化、网络监听、搜索模拟、数据提取(核心是正则匹配JSON)、数据验证、字段解析和Excel导出,最后提供了封装好的函数可直接调用。该方法特别适合课程作业或毕业设计获取电商数据,能爬取商品名称、价格、销量等关键信息,处理了价格单位转换等

weixin_46449236的博客 2083

【云原生】Prometheus+Grafana 监控 k8s 资源实战操作

Prometheus是一个开源的系统监控和报警系统,现在已经加入到CNCF基金会,成为继k8s之后第二个在CNCF托管的项目,在kubernetes容器管理系统中,通常会搭配prometheus进行监控,同时也支持多种exporter采集数据,还支持pushgateway进行数据上报,Prometheus性能足够支撑上万台规模的集群。

匠人精神,持之以恒! 1万+

游程理论提取灾害事件特征V2---基于MATLAB语言的编程实现

游程理论,灾害事件,MATLAB

EWBA_GIS_RS_ER的博客 3794

WhatsApp网页版扫码分析

扫码登录本质上是WhatsApp的多设备登录,设备之间可以独立运行,那么当我们首次通过WhatsApp扫码登录二维码时,到底发生了那些事情?交换了那些数据?

SocialMarketing的博客 5231

k8s部署prometheus + grafana

k8s以Deployment方式部署prometheus + grafana: 主机说明: 系统 ip 角色 cpu 内存 hostname CentOS 7.8 192.168.30.128 master >=2 >=2G master1 CentOS 7.8 192.168.30.129 master >=2 >=2G master2 CentOS 7.8 192.168.30.130 node >=2 >=2G node1 Cent

变成习惯 1万+

PR工具timing report中setup time的计算过程

然后去pr工具里报告report_delay_calculation/reportDelayCalculation -from related_pin -to constraint_pin。这里constraint pin就是D pin (D0 D1 D2 D3),related pin就是 CK pin。我正在「拾陆楼」和朋友们讨论有趣的话题,你⼀起来吧?

m0_61544122的博客 458

基于Prometheus+grafana部署k8s监控

kube-state-metrics组件会监听api server生成有关资源对象的动态指标,是为Prometheus采集k8s资源数据的exporter,能够采集绝大多数k8s内置资源的相关数据,如pod、deployment、service等,同时也提供自己的数据,主要是采集资源个数和采集发生的异常次数统计。②,Grafana:它是一款用go语言开发的开源可视化监控工具,可以与Prometheus等数据源集成,提供仪表盘和图表展示,它还支持灵活的查询和可视化选项,使用户能够直观的监控k8s集群的状态。

回锅呦的博客 2929

VT-Refine:基于仿真微调的视觉-触觉反馈双臂装配强化学习

本研究提出VT-Refine框架,通过融合真实世界示范、高保真触觉仿真与强化学习,解决高精度双臂装配任务。方法分为两阶段:首先利用少量人类示范数据预训练视觉-触觉扩散策略;随后在数字孪生仿真环境中进行强化学习微调。关键创新包括:开发GPU加速的触觉仿真模块精确模拟压阻式传感器;采用基于点云的多模态表征实现无缝的跨领域迁移。实验表明,该方法在五个双臂装配任务中显著提升性能,触觉反馈使成功率提高40%。研究首次实现仿真环境中的大规模双臂视觉-触觉强化学习及sim-to-real迁移,为接触密集型任务提供了新解决

2506_90492529的博客 1799

SAP B1中文培訓教材_SDK

公司内部培训资料,对开发工具 ,DIAPI, UIAPI,Add-ON有详细解说

K8S的Kafka监控(Prometheus+Grafana)

本文实战操作如何在K8S环境对kafka做监控(Prometheus+Grafana)

程序员欣宸的博客 4146

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

上一篇: K8s: Prometheus结合Grafana监控应用数据及相关配置 (二)
下一篇: K8s: Kubernetes扩展之自定义资源
Wang's Blog
博客等级 码龄12年 7433粉丝 2421原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Wang's Blog

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值