您的位置:首页 > 游戏 > 游戏 > 免费申请qq账号_谷歌推广开户_用手机制作自己的网站_上海seo怎么优化

免费申请qq账号_谷歌推广开户_用手机制作自己的网站_上海seo怎么优化

2025/1/8 4:22:32 来源:https://blog.csdn.net/binqian/article/details/144175539  浏览:    关键词:免费申请qq账号_谷歌推广开户_用手机制作自己的网站_上海seo怎么优化
免费申请qq账号_谷歌推广开户_用手机制作自己的网站_上海seo怎么优化

数据采集组件

kube-state-metrics介绍

       kube-state-metrics 是一个用于从 Kubernetes API进行交互来收集数据,并将这些状态信息存储在本地存储中,导出各种对象的状态指标的工具。它暴露的指标包括各种 Kubernetes 对象的状态信息,如 Pod、Node、Namespace、Deployment、ReplicaSet 等。它可以给Prometheus 提供数据,用于监控k8s集群。(默认kube-state-metrics服务不在Kubernetes集群中),go语言编写.

    kube-state-metrics 能提供的信息包括:

 kube_pod_info: 提供关于 Pod 的基本信息。
kube_pod_start_time: Pod 的启动时间。
kube_pod_completion_time: Pod 的完成时间(如果有)。
kube_pod_status_phase: Pod 当前所处的生命周期阶段(Pending, Running, Succeeded, Failed 等)。
kube_pod_status_ready: 表示 Pod 是否准备就绪。
kube_pod_status_scheduled: Pod 调度状态。
kube_pod_container_info: Pod 中容器的基本信息。
kube_pod_container_status_waiting: 描述容器是否处于等待状态及其原因。

kube-state-metrics安装

   版本对应关系

下载地址: GitHub - kubernetes/kube-state-metrics: Add-on agent to generate and expose cluster-level metrics.

  我自己安装的时v2.10.1,因为k8s是1.27.5版本

 下载相应yaml和镜像

     下载相应的源码[Release v2.10.1 / 2023-10-09 · kubernetes/kube-state-metrics · GitHub]【https://download.csdn.net/download/binqian/90066879】, 在 源码/kube-state-metrics/examples/standard/ 文件夹中有安装需要的yaml文件。

   下面是我自己在官方上改的一个yaml,就改了镜像地址和添加了下载私库镜像的验证信息,其他没变

apiVersion: v1
automountServiceAccountToken: false
kind: ServiceAccount
metadata:labels:app.kubernetes.io/component: exporterapp.kubernetes.io/name: kube-state-metricsapp.kubernetes.io/version: 2.10.1name: kube-state-metricsnamespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:labels:app.kubernetes.io/component: exporterapp.kubernetes.io/name: kube-state-metricsapp.kubernetes.io/version: 2.10.1name: kube-state-metrics
rules:
- apiGroups:- ""resources:- configmaps- secrets- nodes- pods- services- serviceaccounts- resourcequotas- replicationcontrollers- limitranges- persistentvolumeclaims- persistentvolumes- namespaces- endpointsverbs:- list- watch
- apiGroups:- appsresources:- statefulsets- daemonsets- deployments- replicasetsverbs:- list- watch
- apiGroups:- batchresources:- cronjobs- jobsverbs:- list- watch
- apiGroups:- autoscalingresources:- horizontalpodautoscalersverbs:- list- watch
- apiGroups:- authentication.k8s.ioresources:- tokenreviewsverbs:- create
- apiGroups:- authorization.k8s.ioresources:- subjectaccessreviewsverbs:- create
- apiGroups:- policyresources:- poddisruptionbudgetsverbs:- list- watch
- apiGroups:- certificates.k8s.ioresources:- certificatesigningrequestsverbs:- list- watch
- apiGroups:- discovery.k8s.ioresources:- endpointslicesverbs:- list- watch
- apiGroups:- storage.k8s.ioresources:- storageclasses- volumeattachmentsverbs:- list- watch
- apiGroups:- admissionregistration.k8s.ioresources:- mutatingwebhookconfigurations- validatingwebhookconfigurationsverbs:- list- watch
- apiGroups:- networking.k8s.ioresources:- networkpolicies- ingressclasses- ingressesverbs:- list- watch
- apiGroups:- coordination.k8s.ioresources:- leasesverbs:- list- watch
- apiGroups:- rbac.authorization.k8s.ioresources:- clusterrolebindings- clusterroles- rolebindings- rolesverbs:- list- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:labels:app.kubernetes.io/component: exporterapp.kubernetes.io/name: kube-state-metricsapp.kubernetes.io/version: 2.10.1name: kube-state-metrics
roleRef:apiGroup: rbac.authorization.k8s.iokind: ClusterRolename: kube-state-metrics
subjects:
- kind: ServiceAccountname: kube-state-metricsnamespace: kube-system
---
apiVersion: v1
kind: Service
metadata:labels:app.kubernetes.io/component: exporterapp.kubernetes.io/name: kube-state-metricsapp.kubernetes.io/version: 2.10.1name: kube-state-metricsnamespace: kube-system
spec:clusterIP: Noneports:- name: http-metricsport: 8080targetPort: http-metrics- name: telemetryport: 8081targetPort: telemetryselector:app.kubernetes.io/name: kube-state-metrics
---apiVersion: apps/v1
kind: Deployment
metadata:labels:app.kubernetes.io/component: exporterapp.kubernetes.io/name: kube-state-metricsapp.kubernetes.io/version: 2.10.1name: kube-state-metricsnamespace: kube-system
spec:replicas: 1selector:matchLabels:app.kubernetes.io/name: kube-state-metricstemplate:metadata:labels:app.kubernetes.io/component: exporterapp.kubernetes.io/name: kube-state-metricsapp.kubernetes.io/version: 2.10.1spec:imagePullSecrets:   [这个自己后面添加的,用户下载私库中的镜像验证的]- name: harborregcred   [这个自己后面添加的,用户下载私库中的镜像验证的]automountServiceAccountToken: truecontainers:- image: xx.xx.xx.22:444/base/kube-state-metrics:v2.10.1[改成自己的镜像地址]livenessProbe:httpGet:path: /healthzport: 8080initialDelaySeconds: 5timeoutSeconds: 5name: kube-state-metricsports:- containerPort: 8080name: http-metrics- containerPort: 8081name: telemetryreadinessProbe:httpGet:path: /port: 8081initialDelaySeconds: 5timeoutSeconds: 5securityContext:allowPrivilegeEscalation: falsecapabilities:drop:- ALLreadOnlyRootFilesystem: truerunAsNonRoot: truerunAsUser: 65534seccompProfile:type: RuntimeDefaultnodeSelector:kubernetes.io/os: linuxserviceAccountName: kube-state-metrics

下载相应的镜像,镜像怎么下载只能自己想办法。

registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.10.1

安装

kubectl apply -f   kube-state-metrics:v2.10.1

然后把kube-state-metrics:v2.10.1 的service通过ingress或者通过nodeport暴露出,提供给监控工具,我选择的是Prometheus。我选择的是ingress 方式,通过http://xxxx:port 结果如下,说明代理成功了。

http://xx.xx.xx.22:9099/metrics  获取详细监控信息

http://xx.xx.xx.22:9099/healthz  返回ok 说明kube-state-metrics实例健康

监控组件

  Prometheus数据源

     此工具负责调用kube-state-metrics 接口,采集数据存放在自己的时序数据库TSDB中

      由于Prometheus没有安装在k8s集群里面,而是在外边,它是通过调用kube-state-metrics暴露的服务来采集k8s集群信息的,以便进行监控。具体怎么安装【CSDN】。

     下面就是怎么配置,我是手动安装了 Prometheus,配置文件于 /etc/prometheus/prometheus.yml 

# my global config
global:scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.# scrape_timeout is set to the global default (10s).# 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: ["localhost:9090"]- job_name: 'kube-state-metrics'  #添加这个配置static_configs:- targets: ['xx.xx.xx.22:9099']  

然后重启Prometheus.

访问:Prometheus ,可以看到已经采集到k8s集群的信息了。

 

Grafana 安装及配置

   Grafana是一个展示工具,它从Prometheus获取到监控数据,进行可视化展示。

安装

yum install -y https://dl.grafana.com/enterprise/release/grafana-enterprise-10.0.1-1.x86_64.rpm
 

安装ok。图片是相关的依赖

启动服务

#设置服务开机自启动
systemctl enable grafana-server.service

#启动服务
systemctl start grafana-server.service

#查看服务状态
systemctl status grafana-server.service

关闭看服务:
systemctl stop grafana-server.service

说明启动ok了。 

  默认登录端口:3000 

http://xx.xx.xx.124:3000/login

  • 默认的登录用户名/密码:admin/admin

登录之后默认页面;

Grafana设置中文

      在默认情况下,Grafana使用英文作为其用户界面语言。Grafana提供了设置中文的选项,

在 grafana默认配置 grafana安装目录/conf/defaults.ini 中,将default_language = en-US改为 zh-Hans即可,linux安装默认目录:/usr/share/grafana/conf/defaults.ini

#default_language = en-US
default_language = zh-Hans
重启

Grafana的使用参考文章: https://zhuanlan.zhihu.com/p/613505002?utm_id=0

Prometheus数据源

配置展示模版

官方模版地址:Grafana dashboards | Grafana Labs

下载模版要先注册一个grafana账号,然后下载自己要的模版

进入刚才的kube-state-metrics-v2模版,修改自己的配置

 

- job_name: k8s-kube-state-metrics-YourDefinedK8sClusterName(自定义的k8s集群名字)
honor_timestamps: true
metrics_path: /metrics
scheme: http
static_configs:- targets: ['IP:PORT']
metric_relabel_configs:
- target_label: clusterreplacement: YourDefinedK8sClusterName(自定义的k8s集群名字,我的)修改如下- job_name: k8s-kube-state-metrics-kubernetes
honor_timestamps: true
metrics_path: /metrics
scheme: http
static_configs:- targets: ['xx.xx.xx.22:9099'] #k8s-kube-state-metrics的接口url
metric_relabel_configs:
- target_label: clusterreplacement: kubernetes

 修改之后重启: prometheus。

 导入下载的模版

 

{"__inputs": [{"name": "DS_PROMETHEUS","label": "Prometheus","description": "","type": "datasource","pluginId": "prometheus","pluginName": "Prometheus"},{"name": "VAR_DATASOURCE","type": "constant","label": "datasource","value": "Prometheus","description": ""}],"__requires": [{"type": "grafana","id": "grafana","name": "Grafana","version": "7.1.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": ""},{"type": "panel","id": "table-old","name": "Table (old)","version": ""}],"annotations": {"list": [{"builtIn": 1,"datasource": "-- Grafana --","enable": true,"hide": true,"iconColor": "rgba(0, 211, 255, 1)","name": "Annotations & Alerts","type": "dashboard"}]},"description": "Summary metrics about kube-state-metrics v2 version(https://github.com/kubernetes/kube-state-metrics); Referenced 6417","editable": true,"gnetId": 13332,"graphTooltip": 1,"id": null,"iteration": 1627560367926,"links": [{"asDropdown": true,"icon": "external link","includeVars": true,"keepTime": false,"tags": ["kubernetes-app"],"title": "Dashboards","type": "dashboards"}],"panels": [{"collapsed": false,"datasource": "${DS_PROMETHEUS}","gridPos": {"h": 1,"w": 24,"x": 0,"y": 0},"id": 58,"panels": [],"title": "Cluster","type": "row"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "percentunit","gauge": {"maxValue": 100,"minValue": 0,"show": true,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 4,"w": 6,"x": 0,"y": 1},"id": 4,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": false},"tableColumn": "","targets": [{"expr": "sum(kube_pod_info{cluster=~\"$cluster\",node=~\"$node\"}) / sum(kube_node_status_allocatable{cluster=~\"$cluster\",resource=\"pods\",node=~\"$node\"})","format": "time_series","interval": "","intervalFactor": 1,"legendFormat": "","refId": "A"}],"thresholds": "80,90","title": "Cluster Pod Requested","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "percentunit","gauge": {"maxValue": 100,"minValue": 0,"show": true,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 4,"w": 6,"x": 6,"y": 1},"id": 5,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": false},"tableColumn": "","targets": [{"expr": "sum(kube_pod_container_resource_requests{cluster=~\"$cluster\",resource=\"cpu\",node=~\"$node\"})/ sum(kube_node_status_allocatable{node=~\"$node\",cluster=~\"$cluster\",resource=\"cpu\"})","format": "time_series","intervalFactor": 1,"refId": "A"}],"thresholds": "80,90","title": "Cluster CPU Requested","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "percentunit","gauge": {"maxValue": 100,"minValue": 0,"show": true,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 4,"w": 6,"x": 12,"y": 1},"id": 6,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": false},"tableColumn": "","targets": [{"expr": "sum(kube_pod_container_resource_requests{cluster=~\"$cluster\",resource=\"memory\",node=~\"$node\"}) / sum(kube_node_status_allocatable{node=~\"$node\",cluster=~\"$cluster\",resource=\"memory\"})","format": "time_series","intervalFactor": 1,"refId": "A"}],"thresholds": "80,90","title": "Cluster Memory  Requested","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"fill": 1,"fillGradient": 0,"gridPos": {"h": 5,"w": 6,"x": 0,"y": 5},"hiddenSeries": false,"id": 9,"legend": {"avg": false,"current": false,"max": false,"min": false,"show": true,"total": false,"values": false},"lines": true,"linewidth": 1,"links": [],"nullPointMode": "null","options": {"alertThreshold": true},"percentage": false,"pluginVersion": "7.1.1","pointradius": 5,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"expr": "sum(kube_node_status_allocatable{cluster=~\"$cluster\",resource=\"pods\",node=~\"$node\"})","format": "time_series","intervalFactor": 1,"legendFormat": "allocatable","refId": "A"},{"expr": "sum(kube_pod_info{node=~\"$node\",cluster=~\"$cluster\"})","format": "time_series","intervalFactor": 1,"legendFormat": "requested","refId": "C"}],"thresholds": [],"timeFrom": null,"timeRegions": [],"timeShift": null,"title": "Cluster Pod Capacity","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"buckets": null,"mode": "time","name": null,"show": true,"values": []},"yaxes": [{"format": "short","label": "pods","logBase": 1,"max": null,"min": null,"show": true},{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true}],"yaxis": {"align": false,"alignLevel": null}},{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"fill": 1,"fillGradient": 0,"gridPos": {"h": 5,"w": 6,"x": 6,"y": 5},"hiddenSeries": false,"id": 10,"legend": {"avg": false,"current": false,"max": false,"min": false,"show": true,"total": false,"values": false},"lines": true,"linewidth": 1,"links": [],"nullPointMode": "null","options": {"alertThreshold": true},"percentage": false,"pluginVersion": "7.1.1","pointradius": 5,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"expr": "sum(kube_node_status_capacity{node=~\"$node\",cluster=~\"$cluster\",resource=\"cpu\"})","format": "time_series","intervalFactor": 1,"legendFormat": "allocatable","refId": "A"},{"expr": "sum(kube_node_status_allocatable{node=~\"$node\",cluster=~\"$cluster\",resource=\"cpu\"})","format": "time_series","intervalFactor": 1,"legendFormat": "capacity","refId": "B"},{"expr": "sum(kube_pod_container_resource_requests{cluster=~\"$cluster\",resource=\"cpu\",node=~\"$node\"})","format": "time_series","intervalFactor": 1,"legendFormat": "requested","refId": "C"},{"expr": "sum(kube_pod_container_resource_limits{cluster=~\"$cluster\",resource=\"cpu\",node=~\"$node\"})","format": "time_series","intervalFactor": 1,"legendFormat": "limited","refId": "D"}],"thresholds": [],"timeFrom": null,"timeRegions": [],"timeShift": null,"title": "Cluster CPU Capacity","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"buckets": null,"mode": "time","name": null,"show": true,"values": []},"yaxes": [{"decimals": null,"format": "short","label": "cores","logBase": 1,"max": null,"min": null,"show": true},{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": false}],"yaxis": {"align": false,"alignLevel": null}},{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"fill": 1,"fillGradient": 0,"gridPos": {"h": 5,"w": 6,"x": 12,"y": 5},"hiddenSeries": false,"id": 11,"legend": {"avg": false,"current": false,"max": false,"min": false,"show": true,"total": false,"values": false},"lines": true,"linewidth": 1,"links": [],"nullPointMode": "null","options": {"alertThreshold": true},"percentage": false,"pluginVersion": "7.1.1","pointradius": 5,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"expr": "sum(kube_node_status_allocatable{node=~\"$node\",cluster=~\"$cluster\",resource=\"memory\"})","format": "time_series","intervalFactor": 1,"legendFormat": "allocatable","refId": "A"},{"expr": "sum(kube_node_status_capacity{node=~\"$node\",cluster=~\"$cluster\",resource=\"memory\"})","format": "time_series","intervalFactor": 1,"legendFormat": "capacity","refId": "B"},{"expr": "sum(kube_pod_container_resource_requests{cluster=~\"$cluster\",resource=\"memory\",node=~\"$node\"})","format": "time_series","intervalFactor": 1,"legendFormat": "requested","refId": "C"},{"expr": "sum(kube_pod_container_resource_limits{cluster=~\"$cluster\",resource=\"memory\",node=~\"$node\"})","format": "time_series","intervalFactor": 1,"legendFormat": "limited","refId": "D"}],"thresholds": [],"timeFrom": null,"timeRegions": [],"timeShift": null,"title": "Cluster Mem Capacity","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"buckets": null,"mode": "time","name": null,"show": true,"values": []},"yaxes": [{"format": "bits","label": null,"logBase": 1,"max": null,"min": null,"show": true},{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": false}],"yaxis": {"align": false,"alignLevel": null}},{"collapsed": true,"datasource": "${DS_PROMETHEUS}","gridPos": {"h": 1,"w": 24,"x": 0,"y": 10},"id": 22,"panels": [{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 4,"x": 0,"y": 11},"id": 24,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": false},"tableColumn": "","targets": [{"expr": "sum(kube_node_info{cluster=~\"$cluster\"})","format": "time_series","instant": true,"interval": "","intervalFactor": 1,"legendFormat": "","refId": "A"}],"thresholds": "","title": "Number Of Nodes","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "avg"},{"cacheTimeout": null,"colorBackground": true,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 4,"x": 4,"y": 11},"id": 26,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": false},"tableColumn": "","targets": [{"expr": "sum(kube_node_spec_unschedulable{cluster=~\"$cluster\"})","format": "time_series","interval": "","intervalFactor": 1,"legendFormat": "","refId": "A"}],"thresholds": "1","title": "Nodes Unavailable","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"aliasColors": {},"bars": false,"cacheTimeout": null,"dashLength": 10,"dashes": false,"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"fill": 1,"fillGradient": 0,"gridPos": {"h": 3,"w": 8,"x": 8,"y": 11},"hiddenSeries": false,"id": 78,"legend": {"alignAsTable": true,"avg": false,"current": false,"max": false,"min": false,"rightSide": true,"show": true,"total": false,"values": false},"lines": true,"linewidth": 1,"links": [],"nullPointMode": "null","options": {"alertThreshold": true},"percentage": false,"pluginVersion": "7.1.1","pointradius": 2,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"expr": "kube_node_status_condition{cluster=~\"$cluster\",condition=\"Ready\",status=\"false\"}==1","format": "time_series","interval": "","intervalFactor": 1,"legendFormat": "{{node}}","refId": "A"}],"thresholds": [],"timeFrom": null,"timeRegions": [],"timeShift": null,"title": "Node NotReady","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"buckets": null,"mode": "time","name": null,"show": true,"values": []},"yaxes": [{"decimals": 0,"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true},{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true}],"yaxis": {"align": false,"alignLevel": null}},{"aliasColors": {},"bars": false,"cacheTimeout": null,"dashLength": 10,"dashes": false,"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"fill": 1,"fillGradient": 0,"gridPos": {"h": 3,"w": 8,"x": 16,"y": 11},"hiddenSeries": false,"id": 51,"legend": {"alignAsTable": true,"avg": false,"current": false,"max": false,"min": false,"rightSide": true,"show": true,"total": false,"values": false},"lines": true,"linewidth": 1,"links": [],"nullPointMode": "null","options": {"alertThreshold": true},"percentage": false,"pluginVersion": "7.1.1","pointradius": 2,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"expr": "kube_node_status_condition{condition=\"DiskPressure\",cluster=~\"$cluster\",status=\"true\"}==1","format": "time_series","instant": false,"interval": "","intervalFactor": 1,"legendFormat": "{{node}} {{condition}}","refId": "A"},{"expr": "kube_node_status_condition{condition=\"MemoryPressure\",node=~\"$node\",cluster=~\"$cluster\",status=\"true\"}==1","format": "time_series","intervalFactor": 1,"legendFormat": "{{node}} {{condition}}","refId": "B"},{"expr": "kube_node_status_condition{condition=~\"PIDPressure\",node=~\"$node\",cluster=~\"$cluster\",status=\"true\"}==1","format": "time_series","intervalFactor": 1,"legendFormat": "{{node}} {{condition}}","refId": "C"}],"thresholds": [],"timeFrom": null,"timeRegions": [],"timeShift": null,"title": "Node Pressure","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"buckets": null,"mode": "time","name": null,"show": true,"values": []},"yaxes": [{"decimals": 0,"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true},{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true}],"yaxis": {"align": false,"alignLevel": null}},{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": "${DS_PROMETHEUS}","decimals": 0,"fieldConfig": {"defaults": {"custom": {}},"overrides": []},"fill": 1,"fillGradient": 0,"gridPos": {"h": 7,"w": 24,"x": 0,"y": 14},"hiddenSeries": false,"id": 88,"legend": {"avg": true,"current": true,"max": true,"min": true,"show": true,"total": false,"values": true},"lines": true,"linewidth": 1,"nullPointMode": "null","percentage": false,"pluginVersion": "7.1.1","pointradius": 2,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"expr": "sum(kube_node_info{cluster=~\"$cluster\"})","interval": "","legendFormat": "","refId": "A"}],"thresholds": [],"timeFrom": null,"timeRegions": [],"timeShift": null,"title": "node number","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"buckets": null,"mode": "time","name": null,"show": true,"values": []},"yaxes": [{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true},{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true}],"yaxis": {"align": false,"alignLevel": null}}],"title": "Node","type": "row"},{"collapsed": true,"datasource": "${DS_PROMETHEUS}","gridPos": {"h": 1,"w": 24,"x": 0,"y": 11},"id": 14,"panels": [{"columns": [],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"fontSize": "100%","gridPos": {"h": 5,"w": 6,"x": 0,"y": 17},"id": 16,"links": [],"pageSize": null,"scroll": true,"showHeader": true,"sort": {"col": 2,"desc": true},"styles": [{"alias": "Time","align": "auto","dateFormat": "YYYY-MM-DD HH:mm:ss","pattern": "Time","type": "date"},{"alias": "","align": "auto","colorMode": "row","colors": ["rgba(245, 54, 54, 0.9)","rgba(237, 129, 40, 0.89)","rgba(50, 172, 45, 0.97)"],"decimals": 0,"pattern": "Metric","thresholds": ["0","0",".9"],"type": "string","unit": "none"},{"alias": "","align": "auto","colorMode": "row","colors": ["rgba(245, 54, 54, 0.9)","rgba(237, 129, 40, 0.89)","rgba(50, 172, 45, 0.97)"],"dateFormat": "YYYY-MM-DD HH:mm:ss","decimals": 0,"link": false,"pattern": "Value","thresholds": ["0","1"],"type": "number","unit": "none"}],"targets": [{"expr": "kube_deployment_status_replicas{namespace=~\"$namespace\",cluster=~\"$cluster\"}","format": "time_series","instant": true,"interval": "","intervalFactor": 1,"legendFormat": "{{ deployment }}","refId": "A"}],"title": "Deployment Replicas - Up To Date","transform": "timeseries_to_rows","type": "table-old"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 5,"w": 6,"x": 6,"y": 17},"id": 18,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": false},"tableColumn": "","targets": [{"expr": "sum(kube_deployment_status_replicas{namespace=~\"$namespace\",cluster=~\"$cluster\"})","format": "time_series","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "Deployment Replicas","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "avg"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 5,"w": 6,"x": 12,"y": 17},"id": 19,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": false},"tableColumn": "","targets": [{"expr": "sum(kube_deployment_status_replicas_updated{namespace=~\"$namespace\",cluster=~\"$cluster\"})","format": "time_series","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "Deployment Replicas - Updated","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "avg"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 5,"w": 6,"x": 18,"y": 17},"id": 20,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": false},"tableColumn": "","targets": [{"expr": "sum(kube_deployment_status_replicas_unavailable{namespace=~\"$namespace\",cluster=~\"$cluster\"})","format": "time_series","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "Deployment Replicas - Unavailable","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "avg"}],"title": "Deployments","type": "row"},{"collapsed": true,"datasource": "${DS_PROMETHEUS}","gridPos": {"h": 1,"w": 24,"x": 0,"y": 12},"id": 71,"panels": [{"columns": [],"datasource": "$datasource","fontSize": "100%","gridPos": {"h": 5,"w": 6,"x": 0,"y": 7},"id": 75,"links": [],"options": {},"pageSize": null,"scroll": true,"showHeader": true,"sort": {"col": 2,"desc": true},"styles": [{"alias": "Time","align": "auto","dateFormat": "YYYY-MM-DD HH:mm:ss","pattern": "Time","type": "date"},{"alias": "","align": "auto","colorMode": "row","colors": ["rgba(245, 54, 54, 0.9)","rgba(237, 129, 40, 0.89)","rgba(50, 172, 45, 0.97)"],"decimals": 0,"pattern": "Metric","thresholds": ["0","0",".9"],"type": "string","unit": "none"},{"alias": "","align": "auto","colorMode": "row","colors": ["rgba(245, 54, 54, 0.9)","rgba(237, 129, 40, 0.89)","rgba(50, 172, 45, 0.97)"],"dateFormat": "YYYY-MM-DD HH:mm:ss","decimals": 0,"link": false,"pattern": "Value","thresholds": ["0","1"],"type": "number","unit": "none"}],"targets": [{"expr": "kube_statefulset_status_replicas_ready{namespace=~\"$namespace\",cluster=~\"$cluster\"}","format": "time_series","instant": true,"interval": "","intervalFactor": 1,"legendFormat": "{{ statefulset}}","refId": "A"}],"title": "Statefulset Replicas - Up To Date","transform": "timeseries_to_rows","type": "table-old"},{"aliasColors": {},"bars": false,"cacheTimeout": null,"dashLength": 10,"dashes": false,"datasource": "$datasource","fill": 1,"gridPos": {"h": 5,"w": 12,"x": 6,"y": 7},"id": 73,"legend": {"avg": false,"current": false,"max": false,"min": false,"show": true,"total": false,"values": false},"lines": true,"linewidth": 1,"links": [],"nullPointMode": "null","options": {},"percentage": false,"pluginVersion": "6.2.5","pointradius": 2,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"expr": "kube_statefulset_status_replicas_ready{namespace=~\"$namespace\",cluster=~\"$cluster\"}/kube_statefulset_status_replicas{namespace=~\"$namespace\",cluster=~\"$cluster\"}*100","format": "time_series","instant": false,"intervalFactor": 1,"legendFormat": "{{statefulset}}","refId": "A"}],"thresholds": [],"timeFrom": null,"timeRegions": [],"timeShift": null,"title": "Statefulset replicas","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"buckets": null,"mode": "time","name": null,"show": true,"values": []},"yaxes": [{"format": "percent","label": null,"logBase": 1,"max": null,"min": null,"show": true},{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true}],"yaxis": {"align": false,"alignLevel": null}}],"title": "Statefuleset","type": "row"},{"collapsed": true,"datasource": "${DS_PROMETHEUS}","gridPos": {"h": 1,"w": 24,"x": 0,"y": 13},"id": 28,"panels": [{"cacheTimeout": null,"columns": [],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"fontSize": "100%","gridPos": {"h": 9,"w": 6,"x": 0,"y": 26},"id": 68,"links": [],"pageSize": null,"pluginVersion": "6.2.5","scroll": true,"showHeader": true,"sort": {"col": 2,"desc": true},"styles": [{"alias": "Time","align": "auto","colorMode": null,"colors": ["rgba(245, 54, 54, 0.9)","rgba(237, 129, 40, 0.89)","rgba(50, 172, 45, 0.97)"],"dateFormat": "YYYY-MM-DD HH:mm:ss","decimals": 2,"mappingType": 1,"pattern": "Time","thresholds": [],"type": "hidden","unit": "short"},{"alias": "","align": "auto","colorMode": null,"colors": ["#56A64B","#73BF69","#B877D9"],"decimals": 2,"pattern": "/.*/","thresholds": [""],"type": "number","unit": "short"}],"targets": [{"expr": "changes(kube_pod_container_status_restarts_total{namespace=~\"$namespace\",cluster=~\"$cluster\"}[30m])>1","format": "time_series","instant": true,"interval": "","intervalFactor": 1,"legendFormat": "{{pod}}","refId": "A"}],"timeFrom": null,"timeShift": null,"title": "Pods restart in 30m","transform": "timeseries_to_rows","type": "table-old"},{"aliasColors": {},"bars": false,"cacheTimeout": null,"dashLength": 10,"dashes": false,"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"fill": 1,"fillGradient": 0,"gridPos": {"h": 9,"w": 6,"x": 6,"y": 26},"hiddenSeries": false,"id": 77,"legend": {"alignAsTable": false,"avg": false,"current": false,"max": false,"min": false,"rightSide": false,"show": true,"total": false,"values": false},"lines": true,"linewidth": 1,"links": [],"nullPointMode": "null","percentage": false,"pluginVersion": "7.1.1","pointradius": 2,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"expr": "kube_pod_status_reason{cluster=~\"$cluster\",namespace=~\"$namespace\", reason=\"Evicted\"}==1","format": "time_series","instant": false,"interval": "","intervalFactor": 1,"legendFormat": "{{pod}}","refId": "A"}],"thresholds": [],"timeFrom": null,"timeRegions": [],"timeShift": null,"title": "Evicted","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"buckets": null,"mode": "time","name": null,"show": true,"values": []},"yaxes": [{"decimals": 0,"format": "short","label": "","logBase": 1,"max": null,"min": null,"show": true},{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true}],"yaxis": {"align": false,"alignLevel": null}},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 12,"x": 12,"y": 26},"id": 30,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(78, 203, 42, 0.28)","full": false,"lineColor": "#629e51","show": true},"tableColumn": "","targets": [{"expr": "sum(kube_pod_status_phase{cluster=~\"$cluster\",namespace=~\"$namespace\", phase=\"Running\"})","format": "time_series","interval": "","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "Pods Running","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 6,"x": 12,"y": 29},"id": 33,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(78, 203, 42, 0.28)","full": false,"lineColor": "#629e51","show": true},"tableColumn": "","targets": [{"expr": "sum(kube_pod_status_phase{cluster=~\"$cluster\",namespace=~\"$namespace\", phase=\"Succeeded\"})","format": "time_series","interval": "","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "Pods Succeeded","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 6,"x": 18,"y": 29},"id": 32,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(78, 203, 42, 0.28)","full": false,"lineColor": "#629e51","show": true},"tableColumn": "","targets": [{"expr": "sum(kube_pod_status_phase{cluster=~\"$cluster\",namespace=~\"$namespace\", phase=\"Failed\"})","format": "time_series","interval": "","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "Pods Failed","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 6,"x": 12,"y": 32},"id": 31,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(78, 203, 42, 0.28)","full": false,"lineColor": "#629e51","show": true},"tableColumn": "","targets": [{"expr": "sum(kube_pod_status_phase{cluster=~\"$cluster\",namespace=~\"$namespace\", phase=\"Pending\"})","format": "time_series","interval": "","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "Pods Pending","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 6,"x": 18,"y": 32},"id": 34,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(78, 203, 42, 0.28)","full": false,"lineColor": "#629e51","show": true},"tableColumn": "","targets": [{"expr": "sum(kube_pod_status_phase{cluster=~\"$cluster\",namespace=~\"$namespace\", phase=\"Unknown\"})","format": "time_series","interval": "","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "Pods Unknown","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"}],"title": "Pods","type": "row"},{"collapsed": true,"datasource": "${DS_PROMETHEUS}","gridPos": {"h": 1,"w": 24,"x": 0,"y": 14},"id": 36,"panels": [{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 6,"x": 0,"y": 15},"id": 38,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": true},"tableColumn": "","targets": [{"expr": "sum(kube_pod_container_status_running{namespace=~\"$namespace\",cluster=~\"$cluster\"})","format": "time_series","interval": "","intervalFactor": 1,"legendFormat": "","refId": "A"}],"thresholds": "","title": "Containers Running","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 6,"x": 6,"y": 15},"id": 39,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": true},"tableColumn": "","targets": [{"expr": "sum(kube_pod_container_status_waiting{namespace=~\"$namespace\",cluster=~\"$cluster\"})","format": "time_series","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "Containers Waiting","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 6,"x": 12,"y": 15},"id": 40,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": true},"tableColumn": "","targets": [{"expr": "sum(kube_pod_container_status_terminated{namespace=~\"$namespace\",cluster=~\"$cluster\"})","format": "time_series","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "Containers Terminated","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 6,"x": 18,"y": 15},"id": 41,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": true},"tableColumn": "","targets": [{"expr": "sum(changes(kube_pod_container_status_restarts_total{namespace=~\"$namespace\",cluster=~\"$cluster\"}[30m]))","format": "time_series","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "Containers Restarts (Last 30 Minutes)","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 12,"x": 0,"y": 18},"id": 43,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": true},"tableColumn": "","targets": [{"expr": "sum(kube_pod_container_resource_requests_cpu_cores{namespace=~\"$namespace\",cluster=~\"$cluster\"})","format": "time_series","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "CPU Cores Requested by Containers","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "decbytes","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 12,"x": 12,"y": 18},"id": 42,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": true},"tableColumn": "","targets": [{"expr": "sum(kube_pod_container_resource_requests_memory_bytes{namespace=~\"$namespace\" ,cluster=~\"$cluster\"})","format": "time_series","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "Memory Requested By Containers","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"}],"repeat": null,"title": "Containers","type": "row"},{"collapsed": true,"datasource": "${DS_PROMETHEUS}","gridPos": {"h": 1,"w": 24,"x": 0,"y": 15},"id": 80,"panels": [{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": "${DS_PROMETHEUS}","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"fill": 1,"fillGradient": 0,"gridPos": {"h": 8,"w": 24,"x": 0,"y": 7},"hiddenSeries": false,"id": 82,"legend": {"alignAsTable": false,"avg": false,"current": false,"max": false,"min": false,"rightSide": true,"show": true,"total": false,"values": false},"lines": true,"linewidth": 1,"nullPointMode": "null","options": {"alertThreshold": true},"percentage": false,"pluginVersion": "7.1.1","pointradius": 2,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"expr": "kube_hpa_status_current_replicas{cluster=~\"$cluster\",namespace=~\"$namespace\"}","instant": false,"interval": "","legendFormat": "current_{{hpa}}","refId": "A"},{"expr": "kube_hpa_spec_max_replicas{cluster=~\"$cluster\",namespace=~\"$namespace\"}","instant": false,"interval": "","legendFormat": "max_{{hpa}}","refId": "B"},{"expr": "kube_hpa_spec_min_replicas{cluster=~\"$cluster\",namespace=~\"$namespace\"}","instant": false,"interval": "","legendFormat": "min_{{hpa}}","refId": "C"}],"thresholds": [],"timeFrom": null,"timeRegions": [],"timeShift": null,"title": "hpa","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"buckets": null,"mode": "time","name": null,"show": true,"values": []},"yaxes": [{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true},{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true}],"yaxis": {"align": false,"alignLevel": null}},{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": "${DS_PROMETHEUS}","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"fill": 1,"fillGradient": 0,"gridPos": {"h": 8,"w": 24,"x": 0,"y": 15},"hiddenSeries": false,"id": 89,"legend": {"alignAsTable": false,"avg": true,"current": true,"max": true,"min": true,"rightSide": false,"show": true,"total": false,"values": true},"lines": true,"linewidth": 1,"nullPointMode": "null","percentage": false,"pluginVersion": "7.1.1","pointradius": 2,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"expr": "sum(kube_hpa_status_current_replicas{hpa=~\".*\"})","instant": false,"interval": "","legendFormat": "kube_hpa_status_current_replicas","refId": "A"}],"thresholds": [],"timeFrom": null,"timeRegions": [],"timeShift": null,"title": "total-hpa-current","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"buckets": null,"mode": "time","name": null,"show": true,"values": []},"yaxes": [{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true},{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true}],"yaxis": {"align": false,"alignLevel": null}},{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": "${DS_PROMETHEUS}","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"fill": 1,"fillGradient": 0,"gridPos": {"h": 10,"w": 12,"x": 0,"y": 23},"hiddenSeries": false,"id": 90,"legend": {"alignAsTable": false,"avg": false,"current": false,"max": false,"min": false,"rightSide": false,"show": true,"total": false,"values": false},"lines": true,"linewidth": 1,"nullPointMode": "null","percentage": false,"pluginVersion": "7.1.1","pointradius": 2,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"expr": "kube_hpa_status_current_replicas{hpa=~\".*\"} == kube_hpa_spec_max_replicas{hpa=~\".*\"}","instant": false,"interval": "","legendFormat": "{{hpa}}","refId": "A"}],"thresholds": [],"timeFrom": null,"timeRegions": [],"timeShift": null,"title": "current==max","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"buckets": null,"mode": "time","name": null,"show": true,"values": []},"yaxes": [{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true},{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true}],"yaxis": {"align": false,"alignLevel": null}},{"aliasColors": {},"bars": false,"dashLength": 10,"dashes": false,"datasource": "${DS_PROMETHEUS}","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"fill": 1,"fillGradient": 0,"gridPos": {"h": 10,"w": 12,"x": 12,"y": 23},"hiddenSeries": false,"id": 92,"legend": {"alignAsTable": false,"avg": false,"current": false,"max": false,"min": false,"rightSide": false,"show": true,"total": false,"values": false},"lines": true,"linewidth": 1,"nullPointMode": "null","percentage": false,"pluginVersion": "7.1.1","pointradius": 2,"points": false,"renderer": "flot","seriesOverrides": [],"spaceLength": 10,"stack": false,"steppedLine": false,"targets": [{"expr": "kube_hpa_status_current_replicas{hpa=~\".*\"} == kube_hpa_spec_min_replicas{hpa=~\".*\"}","instant": false,"interval": "","legendFormat": "{{hpa}}","refId": "B"}],"thresholds": [],"timeFrom": null,"timeRegions": [],"timeShift": null,"title": "current==min","tooltip": {"shared": true,"sort": 0,"value_type": "individual"},"type": "graph","xaxis": {"buckets": null,"mode": "time","name": null,"show": true,"values": []},"yaxes": [{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true},{"format": "short","label": null,"logBase": 1,"max": null,"min": null,"show": true}],"yaxis": {"align": false,"alignLevel": null}}],"title": "HPA","type": "row"},{"collapsed": true,"datasource": "${DS_PROMETHEUS}","gridPos": {"h": 1,"w": 24,"x": 0,"y": 16},"id": 45,"panels": [{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 8,"x": 0,"y": 8},"id": 47,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": true},"tableColumn": "","targets": [{"expr": "sum(kube_job_status_succeeded{namespace=~\"$namespace\",cluster=~\"$cluster\"})","format": "time_series","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "Jobs Succeeded","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"cacheTimeout": null,"columns": [],"datasource": "$datasource","description": "","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"fontSize": "100%","gridPos": {"h": 9,"w": 8,"x": 8,"y": 8},"hideTimeOverride": false,"id": 62,"links": [],"pageSize": null,"pluginVersion": "6.2.5","scroll": true,"showHeader": true,"sort": {"col": null,"desc": false},"styles": [{"alias": "Time","align": "auto","dateFormat": "YYYY-MM-DD HH:mm:ss","pattern": "Time","type": "date"},{"alias": "Job","align": "auto","colorMode": null,"colors": ["rgba(245, 54, 54, 0.9)","rgba(237, 129, 40, 0.89)","rgba(50, 172, 45, 0.97)"],"decimals": 2,"pattern": "Metric","thresholds": [],"type": "string","unit": "short"},{"alias": "Day","align": "auto","colorMode": null,"colors": ["rgba(245, 54, 54, 0.9)","rgba(237, 129, 40, 0.89)","rgba(50, 172, 45, 0.97)"],"dateFormat": "YYYY-MM-DD HH:mm:ss","decimals": 4,"mappingType": 1,"pattern": "Value","thresholds": [],"type": "number","unit": "none"}],"targets": [{"expr": "(time()-kube_job_status_completion_time{namespace=~\"$namespace\",cluster=~\"$cluster\"})/60/60/24>1","format": "time_series","instant": true,"interval": "","intervalFactor": 1,"legendFormat": "{{job_name}}","refId": "A"}],"timeFrom": null,"timeShift": null,"title": "Job last success time from now","transform": "timeseries_to_rows","transparent": true,"type": "table-old"},{"cacheTimeout": null,"columns": [],"datasource": "$datasource","description": "","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"fontSize": "100%","gridPos": {"h": 9,"w": 8,"x": 16,"y": 8},"hideTimeOverride": false,"id": 76,"links": [],"pageSize": null,"pluginVersion": "6.2.5","scroll": true,"showHeader": true,"sort": {"col": 2,"desc": true},"styles": [{"alias": "Time","align": "auto","dateFormat": "YYYY-MM-DD HH:mm:ss","pattern": "Time","type": "date"},{"alias": "Job","align": "auto","colorMode": null,"colors": ["rgba(245, 54, 54, 0.9)","rgba(237, 129, 40, 0.89)","rgba(50, 172, 45, 0.97)"],"decimals": 2,"pattern": "Metric","thresholds": [],"type": "number","unit": "short"},{"alias": "Failed Pod number","align": "auto","colorMode": null,"colors": ["rgba(245, 54, 54, 0.9)","rgba(237, 129, 40, 0.89)","rgba(50, 172, 45, 0.97)"],"dateFormat": "YYYY-MM-DD HH:mm:ss","decimals": 0,"mappingType": 1,"pattern": "Value","thresholds": [],"type": "number","unit": "short"}],"targets": [{"expr": "kube_job_status_failed{namespace=~\"$namespace\",cluster=~\"$cluster\"}>1","format": "time_series","instant": true,"interval": "","intervalFactor": 1,"legendFormat": "{{job_name}}","refId": "A"}],"timeFrom": null,"timeShift": null,"title": "Job failed","transform": "timeseries_to_rows","transparent": true,"type": "table-old"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 8,"x": 0,"y": 11},"id": 48,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": true},"tableColumn": "","targets": [{"expr": "sum(kube_job_status_active{namespace=~\"$namespace\",cluster=~\"$cluster\"})","format": "time_series","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "Jobs Active","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","fieldConfig": {"defaults": {"custom": {}},"overrides": []},"format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 3,"w": 8,"x": 0,"y": 14},"id": 49,"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": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": true},"tableColumn": "","targets": [{"expr": "sum(kube_job_status_failed{namespace=~\"$namespace\",cluster=~\"$cluster\"})","format": "time_series","intervalFactor": 1,"refId": "A"}],"thresholds": "","title": "Jobs Failed","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"}],"title": "Jobs","type": "row"},{"collapsed": true,"datasource": "${DS_PROMETHEUS}","gridPos": {"h": 1,"w": 24,"x": 0,"y": 17},"id": 64,"panels": [{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 8,"w": 6,"x": 0,"y": 17},"id": 66,"interval": null,"links": [],"mappingType": 1,"mappingTypes": [{"name": "value to text","value": 1},{"name": "range to text","value": 2}],"maxDataPoints": 100,"nullPointMode": "connected","nullText": null,"options": {},"pluginVersion": "6.2.5","postfix": "","postfixFontSize": "50%","prefix": "","prefixFontSize": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": false},"tableColumn": "","targets": [{"expr": "sum(kube_persistentvolumeclaim_status_phase{phase=\"Bound\"}==1)","format": "time_series","intervalFactor": 1,"legendFormat": "{{persistentvolumeclaim=}}","refId": "A"}],"thresholds": "","timeFrom": null,"timeShift": null,"title": "pvc is bound","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"cacheTimeout": null,"colorBackground": false,"colorValue": false,"colors": ["#299c46","rgba(237, 129, 40, 0.89)","#d44a3a"],"datasource": "$datasource","format": "none","gauge": {"maxValue": 100,"minValue": 0,"show": false,"thresholdLabels": false,"thresholdMarkers": true},"gridPos": {"h": 8,"w": 6,"x": 6,"y": 17},"id": 69,"interval": null,"links": [],"mappingType": 1,"mappingTypes": [{"name": "value to text","value": 1},{"name": "range to text","value": 2}],"maxDataPoints": 100,"nullPointMode": "connected","nullText": null,"options": {},"pluginVersion": "6.2.5","postfix": "","postfixFontSize": "50%","prefix": "","prefixFontSize": "50%","rangeMaps": [{"from": "null","text": "N/A","to": "null"}],"sparkline": {"fillColor": "rgba(31, 118, 189, 0.18)","full": false,"lineColor": "rgb(31, 120, 193)","show": false},"tableColumn": "","targets": [{"expr": "sum(kube_persistentvolumeclaim_status_phase{phase!=\"Bound\"}==1)","format": "time_series","intervalFactor": 1,"legendFormat": "{{persistentvolumeclaim=}}","refId": "A"}],"thresholds": "","timeFrom": null,"timeShift": null,"title": "pvc is not bound","type": "singlestat","valueFontSize": "80%","valueMaps": [{"op": "=","text": "N/A","value": "null"}],"valueName": "current"},{"cacheTimeout": null,"columns": [],"datasource": "$datasource","fontSize": "100%","gridPos": {"h": 8,"w": 12,"x": 12,"y": 17},"id": 67,"links": [],"options": {},"pageSize": null,"pluginVersion": "6.2.5","scroll": true,"showHeader": true,"sort": {"col": 0,"desc": true},"styles": [{"alias": "Time","align": "auto","dateFormat": "YYYY-MM-DD HH:mm:ss","pattern": "Time","type": "date"},{"alias": "","align": "auto","colorMode": null,"colors": ["rgba(245, 54, 54, 0.9)","rgba(237, 129, 40, 0.89)","rgba(50, 172, 45, 0.97)"],"decimals": 2,"pattern": "/.*/","thresholds": [],"type": "number","unit": "short"}],"targets": [{"expr": "kube_persistentvolumeclaim_resource_requests_storage_bytes/1024/1024/1024","format": "time_series","instant": true,"intervalFactor": 1,"legendFormat": "{{persistentvolumeclaim}}","refId": "A"}],"timeFrom": null,"timeShift": null,"title": "pvc","transform": "timeseries_to_rows","type": "table-old"}],"title": "PVC","type": "row"}],"refresh": false,"schemaVersion": 26,"style": "dark","tags": ["kubernetes","kubernetes-app"],"templating": {"list": [{"allValue": null,"current": {},"datasource": "$datasource","definition": "label_values(kube_node_info, cluster)","error": null,"hide": 0,"includeAll": false,"label": null,"multi": false,"name": "cluster","options": [],"query": "label_values(kube_node_info, cluster)","refresh": 1,"regex": "","skipUrlSync": false,"sort": 0,"tagValuesQuery": "","tags": [],"tagsQuery": "","type": "query","useTags": false},{"allValue": null,"current": {},"datasource": "$datasource","definition": "label_values(kube_node_info{cluster=~\"$cluster\"}, node)","error": null,"hide": 0,"includeAll": true,"label": null,"multi": false,"name": "node","options": [],"query": "label_values(kube_node_info{cluster=~\"$cluster\"}, node)","refresh": 1,"regex": "","skipUrlSync": false,"sort": 0,"tagValuesQuery": "","tags": [],"tagsQuery": "","type": "query","useTags": false},{"allValue": "","current": {},"datasource": "$datasource","definition": "","error": null,"hide": 0,"includeAll": true,"label": "","multi": false,"name": "namespace","options": [],"query": "label_values(kube_namespace_created{cluster=~\"$cluster\"}, namespace)","refresh": 1,"regex": "","skipUrlSync": false,"sort": 0,"tagValuesQuery": "","tags": [],"tagsQuery": "","type": "query","useTags": false},{"current": {"value": "${VAR_DATASOURCE}","text": "${VAR_DATASOURCE}","selected": false},"error": null,"hide": 2,"label": null,"name": "datasource","options": [{"value": "${VAR_DATASOURCE}","text": "${VAR_DATASOURCE}","selected": false}],"query": "${VAR_DATASOURCE}","skipUrlSync": false,"type": "constant"}]},"time": {"from": "now-24h","to": "now"},"timepicker": {"refresh_intervals": ["10s","30s","1m","5m","15m","30m","1h","2h","1d"],"time_options": ["5m","15m","1h","6h","12h","24h","2d","7d","30d"]},"timezone": "browser","title": "kube-state-metrics-v2","uid": "garysdevil-kube-state-metrics-v2","version": 12
}

浏览器导入上面的json文件,然后操作如下图: 

 

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com