aliyun-exporterを使用してアリ監視からプライベートprometheusデータベースを取得し、表示します.
119132 ワード
1、アリクラウドモニタリングを開始する
2、アリクラウドアクセスキーの取得
3、アリクラウドプロファイル及びdockerfileの準備
4、k 8 s運転容器準備yaml
aliyun-exporterの作成
サービスが正常であることを確認
正常かどうかを表示
https://pypi.org/project/aliyun-exporter/
https://github.com/aylei/aliyun-exporter
, 。 ECS
api 100w
2、アリクラウドアクセスキーの取得
AccessKey AccessKey AccessKey key 。 RAM
3、アリクラウドプロファイル及びdockerfileの準備
vi aliyun-exporter.yml
credential:
access_key_id: # AccessKey ID
access_key_secret: # AccessKey secret
region_id: cn-shenzhen # ecs
metrics:
acs_ecs_dashboard:
- name: CPUUtilization
period: 60
- name: InternetInRate
period: 60
- name: IntranetInRate
period: 60
- name: InternetOutRate
period: 60
- name: IntranetOutRate
period: 60
- name: InternetOutRate_Percent
period: 60
- name: DiskReadBPS
period: 60
- name: DiskWriteBPS
period: 60
- name: DiskReadIOPS
period: 60
- name: DiskWriteIOPS
period: 60
- name: VPC_PublicIP_InternetInRate
period: 60
- name: VPC_PublicIP_InternetOutRate
period: 60
- name: VPC_PublicIP_InternetOutRate_Percent
period: 60
- name: cpu_idle
period: 15
- name: cpu_system
period: 15
- name: cpu_user
period: 15
- name: cpu_wait
period: 15
- name: cpu_other
period: 15
- name: cpu_total
period: 15
- name: memory_totalspace
period: 15
- name: memory_usedspace
period: 15
- name: memory_actualusedspace
period: 15
- name: memory_freespace
period: 15
- name: memory_freeutilization
period: 15
- name: memory_usedutilization
period: 15
- name: load_1m
period: 15
- name: load_5m
period: 15
- name: load_15m
period: 15
- name: diskusage_used
period: 15
- name: diskusage_utilization
period: 15
- name: diskusage_free
period: 15
- name: diskusage_total
period: 15
- name: disk_readbytes
period: 15
- name: disk_writebytes
period: 15
- name: disk_readiops
period: 15
- name: disk_writeiops
period: 15
- name: fs_inodeutilization
period: 15
- name: networkin_rate
period: 15
- name: networkout_rate
period: 15
- name: networkin_packages
period: 15
- name: networkout_packages
period: 15
- name: networkin_errorpackages
period: 15
- name: networkout_errorpackages
period: 15
- name: net_tcpconnection
period: 15
info_metrics:
- ecs
Dockerfile
vi Dockerfile
FROM alpine:latest
MAINTAINER QIST Docker Maintainers "[email protected]"
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk update \
&& apk add --no-cache gcc python3 libc-dev python3-dev \
&& pip3 install aliyun-exporter \
&& apk del gcc libc-dev python3-dev \
&& rm -rf /var/cache/apk/* \
&& rm -r /usr/lib/python*/ensurepip \
&& rm -r /root/.cache \
&& mkdir -p /etc/aliyun-exporter
COPY aliyun-exporter.yml /etc/aliyun-exporter/aliyun-exporter.yml
EXPOSE 9525
CMD ["/usr/bin/aliyun-exporter", "-p", "9525", "-c", "/etc/aliyun-exporter/aliyun-exporter.yml"]
docker build -t aliyun-exporter .
docker tag aliyun-exporter xxxx.com/aliyun-exporter # xxxx.com docker
docker
docker run -ti --rm -p9525:9525 aliyun-exporter
http://127.0.0.1:9525/metrics
push docker
docker push xxxx.com/aliyun-exporter
4、k 8 s運転容器準備yaml
shenzhen
vi shenzhen-aliyun-exporter.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: ali-shenzhen
namespace: monitoring
data:
aliyun-exporter.yml: |
credential:
access_key_id: AccessKey ID
access_key_secret: AccessKey secret
region_id: cn-shenzhen #
metrics:
acs_ecs_dashboard:
- name: CPUUtilization
period: 60
- name: InternetInRate
period: 60
- name: IntranetInRate
period: 60
- name: InternetOutRate
period: 60
- name: IntranetOutRate
period: 60
- name: InternetOutRate_Percent
period: 60
- name: DiskReadBPS
period: 60
- name: DiskWriteBPS
period: 60
- name: DiskReadIOPS
period: 60
- name: DiskWriteIOPS
period: 60
- name: VPC_PublicIP_InternetInRate
period: 60
- name: VPC_PublicIP_InternetOutRate
period: 60
- name: VPC_PublicIP_InternetOutRate_Percent
period: 60
- name: cpu_idle
period: 15
- name: cpu_system
period: 15
- name: cpu_user
period: 15
- name: cpu_wait
period: 15
- name: cpu_other
period: 15
- name: cpu_total
period: 15
- name: memory_totalspace
period: 15
- name: memory_usedspace
period: 15
- name: memory_actualusedspace
period: 15
- name: memory_freespace
period: 15
- name: memory_freeutilization
period: 15
- name: memory_usedutilization
period: 15
- name: load_1m
period: 15
- name: load_5m
period: 15
- name: load_15m
period: 15
- name: diskusage_used
period: 15
- name: diskusage_utilization
period: 15
- name: diskusage_free
period: 15
- name: diskusage_total
period: 15
- name: disk_readbytes
period: 15
- name: disk_writebytes
period: 15
- name: disk_readiops
period: 15
- name: disk_writeiops
period: 15
- name: fs_inodeutilization
period: 15
- name: networkin_rate
period: 15
- name: networkout_rate
period: 15
- name: networkin_packages
period: 15
- name: networkout_packages
period: 15
- name: networkin_errorpackages
period: 15
- name: networkout_errorpackages
period: 15
- name: net_tcpconnection
period: 15
info_metrics:
- ecs
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ali-shenzhen
namespace: monitoring
spec:
replicas: 1
selector:
matchLabels:
k8s-app: aliyun-exporter
template:
metadata:
labels:
k8s-app: aliyun-exporter
spec:
volumes:
- name: config
configMap:
name: ali-shenzhen
containers:
- name: ali-shenzhen
image: xxxx.com/aliyun-exporter
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9525
name: http-metrics
protocol: TCP
readinessProbe:
tcpSocket:
port: http-metrics
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
tcpSocket:
port: http-metrics
initialDelaySeconds: 15
periodSeconds: 20
initialDelaySeconds: 3
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 3
resources:
requests:
cpu: 200m
memory: 30Mi
limits:
memory: 50Mi
cpu: 250m
volumeMounts:
- mountPath: /etc/aliyun-exporter
name: "config"
---
kind: Service
apiVersion: v1
metadata:
labels:
k8s-app: aliyun-exporter
name: ali-shenzhen
namespace: monitoring
spec:
selector:
k8s-app: aliyun-exporter
ports:
- protocol: TCP
port: 9525
name: http-metrics
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
k8s-app: aliyun-exporter
name: ali-shenzhen
namespace: monitoring
spec:
endpoints:
- honorLabels: true
interval: 30s
port: http-metrics
jobLabel: k8s-app
selector:
matchLabels:
k8s-app: aliyun-exporter
name: ali-shenzhen ,
k8s-app: aliyun-exporter grafana
ConfigMap AccessKey ConfigMap
aliyun-exporterの作成
kubectl apply -f shenzhen-aliyun-exporter.yaml
サービスが正常であることを確認
prometheus
http://10.65.1.43:9525/metrics
grafana Dashboard
vi ECS-Overview.json
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "6.3.2"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "singlestat",
"name": "Singlestat",
"version": ""
},
{
"type": "panel",
"id": "table",
"name": "Table",
"version": ""
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "",
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": null,
"iteration": 1565320060700,
"links": [],
"panels": [
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_PROMETHEUS}",
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"id": 12,
"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": {},
"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": [
{
"annotations": false,
"expr": "quantile(0.95, aliyun_acs_ecs_dashboard_CPUUtilization)",
"format": "time_series",
"intervalFactor": 1,
"labelSelector": "*",
"legendFormat": "",
"refId": "A",
"target": "Query",
"type": "timeserie"
}
],
"thresholds": "60,80",
"title": "P95 CPU Utilization",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_PROMETHEUS}",
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 6,
"x": 6,
"y": 0
},
"id": 14,
"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": {},
"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": [
{
"annotations": false,
"expr": "quantile(0.95, aliyun_acs_ecs_dashboard_load_5m)",
"format": "time_series",
"intervalFactor": 1,
"labelSelector": "*",
"legendFormat": "",
"refId": "A",
"target": "Query",
"type": "timeserie"
}
],
"thresholds": "10,20",
"title": "P95 Load",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_PROMETHEUS}",
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 6,
"x": 12,
"y": 0
},
"id": 13,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"options": {},
"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": [
{
"annotations": false,
"expr": "quantile(0.95, aliyun_acs_ecs_dashboard_memory_usedutilization)",
"format": "time_series",
"intervalFactor": 1,
"labelSelector": "*",
"legendFormat": "",
"refId": "A",
"target": "Query",
"type": "timeserie"
}
],
"thresholds": "60,80",
"title": "P95 Memory",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"columns": [],
"fontSize": "100%",
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 3
},
"id": 2,
"links": [],
"options": {},
"pageSize": null,
"scroll": true,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"alias": "Time",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "hidden"
},
{
"alias": "",
"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,
"link": true,
"linkTargetBlank": false,
"linkTooltip": "detail view",
"linkUrl": "/d/yOtBAPZWk/ecs-detail?orgId=1&var-instanceId=${__cell}",
"mappingType": 1,
"pattern": "instanceId",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"colorMode": "row",
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Value",
"thresholds": [
"80",
"95"
],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "HostName",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "hidden",
"unit": "short"
}
],
"targets": [
{
"expr": "(avg_over_time(aliyun_acs_ecs_dashboard_CPUUtilization[$interval]) > 80) * on (instanceId) group_left(VpcAttributes,HostName,InnerIpAddress)
label_replace(aliyun_meta_ecs_info,\"instanceId\",\"$1\",\"InstanceId\",\"(.*)\")",
"format": "table",
"instant": true,
"intervalFactor": 1,
"refId": "A"
}
],
"title": "CPU Pressure",
"transform": "table",
"type": "table"
},
{
"columns": [],
"fontSize": "100%",
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 3
},
"id": 3,
"links": [],
"options": {},
"pageSize": null,
"scroll": true,
"showHeader": true,
"sort": {
"col": 8,
"desc": true
},
"styles": [
{
"alias": "Time",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "hidden"
},
{
"alias": "",
"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,
"link": true,
"linkTargetBlank": false,
"linkTooltip": "detail view",
"linkUrl": "/d/yOtBAPZWk/ecs-detail?orgId=1&var-instanceId=${__cell}",
"mappingType": 1,
"pattern": "instanceId",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"colorMode": "row",
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Value",
"thresholds": [
"95",
"99"
],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "HostName",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "hidden",
"unit": "short"
}
],
"targets": [
{
"expr": "(avg_over_time(aliyun_acs_ecs_dashboard_memory_usedutilization[$interval]) > 95) * on (instanceId) group_left(VpcAttributes,HostName,InnerIpAddress)
label_replace(aliyun_meta_ecs_info,\"instanceId\",\"$1\",\"InstanceId\",\"(.*)\")",
"format": "table",
"instant": true,
"intervalFactor": 1,
"refId": "A"
}
],
"title": "Memory Pressure",
"transform": "table",
"type": "table"
},
{
"columns": [],
"fontSize": "100%",
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 10
},
"id": 5,
"links": [],
"options": {},
"pageSize": null,
"scroll": true,
"showHeader": true,
"sort": {
"col": 8,
"desc": true
},
"styles": [
{
"alias": "Time",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "hidden"
},
{
"alias": "",
"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,
"link": true,
"linkTooltip": "detail view",
"linkUrl": "/d/yOtBAPZWk/ecs-detail?orgId=1&var-instanceId=${__cell}",
"mappingType": 1,
"pattern": "instanceId",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"colorMode": "row",
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Value",
"thresholds": [
"10",
"20"
],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "HostName",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "hidden",
"unit": "short"
}
],
"targets": [
{
"expr": "(avg_over_time(aliyun_acs_ecs_dashboard_load_5m[$interval]) > 10) * on (instanceId) group_left(VpcAttributes,HostName,InnerIpAddress)
label_replace(aliyun_meta_ecs_info,\"instanceId\",\"$1\",\"InstanceId\",\"(.*)\")",
"format": "table",
"instant": true,
"intervalFactor": 1,
"refId": "A"
}
],
"title": "Load Pressure",
"transform": "table",
"type": "table"
},
{
"columns": [],
"fontSize": "100%",
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 10
},
"id": 6,
"links": [],
"options": {},
"pageSize": null,
"scroll": true,
"showHeader": true,
"sort": {
"col": 8,
"desc": true
},
"styles": [
{
"alias": "Time",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "hidden"
},
{
"alias": "",
"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,
"link": true,
"linkTooltip": "detail view",
"linkUrl": "/d/yOtBAPZWk/ecs-detail?orgId=1&var-instanceId=${__cell}",
"mappingType": 1,
"pattern": "instanceId",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"colorMode": "row",
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Value",
"thresholds": [
"90",
"95"
],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "HostName",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "hidden",
"unit": "short"
}
],
"targets": [
{
"expr": "(avg_over_time(aliyun_acs_ecs_dashboard_diskusage_utilization[$interval]) > 90) * on (instanceId) group_left(VpcAttributes,HostName,InnerIpAddress)
label_replace(aliyun_meta_ecs_info,\"instanceId\",\"$1\",\"InstanceId\",\"(.*)\")",
"format": "table",
"instant": true,
"intervalFactor": 1,
"refId": "A"
}
],
"title": "Disk Pressure",
"transform": "table",
"type": "table"
},
{
"columns": [],
"fontSize": "100%",
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 17
},
"id": 4,
"links": [],
"options": {},
"pageSize": null,
"scroll": true,
"showHeader": true,
"sort": {
"col": 8,
"desc": true
},
"styles": [
{
"alias": "Time",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "hidden"
},
{
"alias": "",
"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,
"link": true,
"linkTooltip": "detail view",
"linkUrl": "/d/yOtBAPZWk/ecs-detail?orgId=1&var-instanceId=${__cell}",
"mappingType": 1,
"pattern": "instanceId",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"colorMode": "row",
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Value",
"thresholds": [
"2000",
"4000"
],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "HostName",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "hidden",
"unit": "short"
}
],
"targets": [
{
"expr": "(avg_over_time(aliyun_acs_ecs_dashboard_net_tcpconnection{state=\"TCP_TOTAL\"}[10m]) > 1000) * on (instanceId) group_left(VpcAttributes,HostName,InnerIpAddress)
label_replace(aliyun_meta_ecs_info,\"instanceId\",\"$1\",\"InstanceId\",\"(.*)\")",
"format": "table",
"instant": true,
"intervalFactor": 1,
"refId": "A"
}
],
"title": "Too Many Connections",
"transform": "table",
"type": "table"
}
],
"refresh": "30s",
"schemaVersion": 19,
"style": "dark",
"tags": [
"ECS",
"Overview"
],
"templating": {
"list": [
{
"auto": false,
"auto_count": 30,
"auto_min": "10s",
"current": {
"text": "1m",
"value": "1m"
},
"hide": 0,
"label": null,
"name": "interval",
"options": [
{
"selected": true,
"text": "1m",
"value": "1m"
},
{
"selected": false,
"text": "5m",
"value": "5m"
},
{
"selected": false,
"text": "10m",
"value": "10m"
},
{
"selected": false,
"text": "30m",
"value": "30m"
},
{
"selected": false,
"text": "1h",
"value": "1h"
},
{
"selected": false,
"text": "6h",
"value": "6h"
}
],
"query": "1m,5m,10m,30m,1h,6h",
"refresh": 2,
"skipUrlSync": false,
"type": "interval"
},
{
"allValue": null,
"current": {},
"datasource": "${DS_PROMETHEUS}",
"definition": "label_values(aliyun_meta_ecs_info, ZoneId)",
"hide": 0,
"includeAll": true,
"label": null,
"multi": true,
"name": "zone",
"options": [],
"query": "label_values(aliyun_meta_ecs_info, ZoneId)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-1h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "ECS Overview",
"uid": "1wdHfglmk",
"version": 7
}
vi ECS-Detail.json
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__requires": [
{
"type": "panel",
"id": "farski-blendstat-panel",
"name": "Blendstat",
"version": "1.0.1"
},
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "6.3.2"
},
{
"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",
"name": "Table",
"version": ""
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": null,
"iteration": 1565320198258,
"links": [],
"panels": [
{
"columns": [],
"fontSize": "120%",
"gridPos": {
"h": 4,
"w": 24,
"x": 0,
"y": 0
},
"id": 48,
"links": [],
"options": {},
"pageSize": 1,
"scroll": false,
"showHeader": true,
"sort": {
"col": 30,
"desc": false
},
"styles": [
{
"alias": "Time",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "hidden"
},
{
"alias": "",
"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": "HostName",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "Vpc IP",
"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": "VpcAttributes",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "Inner IP",
"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": "InnerIpAddress",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "InstanceType",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "Status",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "Cpu",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "Memory",
"thresholds": [],
"type": "number",
"unit": "decmbytes"
},
{
"alias": "",
"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": "OSName",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "RegionId",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "ZoneId",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "InstanceName",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "ExpiredTime",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "CreationTime",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"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": "hidden",
"unit": "short"
}
],
"targets": [
{
"expr": "aliyun_meta_ecs_info{InstanceId=\"$instanceId\"}",
"format": "table",
"instant": true,
"intervalFactor": 1,
"refId": "A"
}
],
"title": "",
"transform": "table",
"transparent": true,
"type": "table"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#d44a3a",
"#56A64B",
"#37872D"
],
"datasource": "${DS_PROMETHEUS}",
"format": "percent",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 3,
"x": 0,
"y": 4
},
"id": 10,
"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": {},
"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": "aliyun_acs_ecs_dashboard_cpu_idle{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "",
"refId": "A"
}
],
"thresholds": "80,90",
"timeFrom": null,
"timeShift": null,
"title": " CPU ",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorPrefix": false,
"colorValue": false,
"colors": [
"#37872D",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_PROMETHEUS}",
"format": "percent",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 3,
"x": 3,
"y": 4
},
"id": 2,
"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": {},
"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": "aliyun_acs_ecs_dashboard_CPUUtilization{instanceId=\"$instanceId\"}",
"format": "time_series",
"instant": false,
"intervalFactor": 1,
"legendFormat": "CPU ",
"refId": "A"
}
],
"thresholds": "80,90",
"timeFrom": null,
"timeShift": null,
"title": "CPU ",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"blendName": "total",
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#37872D",
"rgba(237, 129, 40, 0.89)",
"#C4162A"
],
"datasource": "${DS_PROMETHEUS}",
"format": "percent",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 3,
"x": 6,
"y": 4
},
"id": 12,
"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.1.6",
"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": "aliyun_acs_ecs_dashboard_cpu_system{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " CPU ",
"refId": "A"
}
],
"thresholds": "50,80",
"timeFrom": null,
"timeShift": null,
"title": " CPU ",
"type": "farski-blendstat-panel",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"#FA6400",
"#d44a3a"
],
"datasource": "${DS_PROMETHEUS}",
"format": "percent",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 3,
"x": 9,
"y": 4
},
"id": 14,
"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": {},
"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": "aliyun_acs_ecs_dashboard_cpu_user{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " CPU ",
"refId": "A"
}
],
"thresholds": "80,90",
"timeFrom": null,
"timeShift": null,
"title": " CPU ",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#d44a3a",
"rgba(237, 129, 40, 0.89)",
"#299c46"
],
"datasource": "${DS_PROMETHEUS}",
"format": "percent",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 3,
"x": 12,
"y": 4
},
"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,
"options": {},
"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": "aliyun_acs_ecs_dashboard_memory_usedutilization{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"thresholds": "80,90",
"timeFrom": null,
"timeShift": null,
"title": " ",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_PROMETHEUS}",
"format": "percent",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 3,
"x": 15,
"y": 4
},
"id": 16,
"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": {},
"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": "aliyun_acs_ecs_dashboard_cpu_wait{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " IO CPU ",
"refId": "A"
}
],
"thresholds": "80,90",
"timeFrom": null,
"timeShift": null,
"title": " IO CPU ",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_PROMETHEUS}",
"format": "percent",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 3,
"x": 18,
"y": 4
},
"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,
"options": {},
"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": "aliyun_acs_ecs_dashboard_cpu_other{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " CUP ",
"refId": "A"
}
],
"thresholds": "80,90",
"timeFrom": null,
"timeShift": null,
"title": " CUP ",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": true,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_PROMETHEUS}",
"format": "percent",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 3,
"x": 21,
"y": 4
},
"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,
"options": {},
"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": "aliyun_acs_ecs_dashboard_cpu_total{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"thresholds": "80,90",
"timeFrom": null,
"timeShift": null,
"title": " CPU ",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_PROMETHEUS}",
"format": "percent",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": true,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 4,
"w": 3,
"x": 0,
"y": 8
},
"id": 22,
"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": {},
"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": "aliyun_acs_ecs_dashboard_memory_freeutilization{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"refId": "A"
}
],
"thresholds": "80,90",
"timeFrom": null,
"timeShift": null,
"title": " ",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "current"
},
{
"aliasColors": {
"ESTABLISHED": "dark-green",
"NON_ESTABLISHED": "dark-blue",
"TCP_TOTAL": "dark-red"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"fill": 0,
"fillGradient": 0,
"gridPos": {
"h": 4,
"w": 21,
"x": 3,
"y": 8
},
"id": 46,
"interval": "",
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"hideEmpty": false,
"max": true,
"min": true,
"rightSide": true,
"show": true,
"sort": "max",
"sortDesc": true,
"total": true,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "aliyun_acs_ecs_dashboard_net_tcpconnection{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{ state }}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "TCP Connections",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "none",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "none",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
" ": "dark-blue",
" ": "dark-purple",
" ": "dark-green",
" ": "dark-red"
},
"bars": false,
"cacheTimeout": null,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 12
},
"id": 4,
"legend": {
"alignAsTable": false,
"avg": true,
"current": true,
"hideEmpty": false,
"hideZero": false,
"max": true,
"min": true,
"show": true,
"total": true,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pluginVersion": "6.1.6",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "aliyun_acs_ecs_dashboard_IntranetInRate{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " ",
"refId": "A"
},
{
"expr": "aliyun_acs_ecs_dashboard_IntranetOutRate{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " ",
"refId": "B"
},
{
"expr": "aliyun_acs_ecs_dashboard_InternetOutRate{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": " ",
"refId": "C"
},
{
"expr": "aliyun_acs_ecs_dashboard_InternetInRate{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": " ",
"refId": "D"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": " ",
"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": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
" BPS": "dark-blue",
" BPS": "dark-green"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 20
},
"id": 6,
"legend": {
"avg": false,
"current": true,
"max": false,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "connected",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "aliyun_acs_ecs_dashboard_DiskReadBPS{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " BPS",
"refId": "A"
},
{
"expr": "aliyun_acs_ecs_dashboard_DiskWriteBPS{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " BPS",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": " ",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "decbits",
"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": {
" IOPS": "semi-dark-red",
" IOPS": "dark-orange"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 20
},
"id": 8,
"legend": {
"avg": false,
"current": true,
"hideEmpty": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "aliyun_acs_ecs_dashboard_DiskReadIOPS{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " IOPS",
"refId": "A"
},
{
"expr": "aliyun_acs_ecs_dashboard_DiskWriteIOPS{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " IOPS",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": " IOPS",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "iops",
"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": {
" ": "dark-blue",
" +buffers + cached": "semi-dark-red",
" ": "dark-red",
" +buffers + cached": "dark-green",
" ": "dark-blue",
" ": "dark-orange",
" ": "dark-green",
" ": "dark-yellow"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"fill": 6,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 29
},
"id": 32,
"legend": {
"avg": false,
"current": true,
"hideZero": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 3,
"links": [],
"nullPointMode": "connected",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "aliyun_acs_ecs_dashboard_memory_totalspace{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " ",
"refId": "A"
},
{
"expr": "aliyun_acs_ecs_dashboard_memory_usedspace{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " +buffers + cached",
"refId": "B"
},
{
"expr": "aliyun_acs_ecs_dashboard_memory_actualusedspace{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " ",
"refId": "C"
},
{
"expr": "aliyun_acs_ecs_dashboard_memory_freespace{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " ",
"refId": "D"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": " ",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "cumulative"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
"load_15m": "dark-orange",
"load_1m": "dark-purple",
"load_5m": "dark-red"
},
"bars": false,
"cacheTimeout": null,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 29
},
"id": 34,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {
"dataLinks": []
},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "load_1m",
"yaxis": 1
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "aliyun_acs_ecs_dashboard_load_1m{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "load_1m",
"refId": "A"
},
{
"expr": "aliyun_acs_ecs_dashboard_load_5m{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "load_5m",
"refId": "B"
},
{
"expr": "aliyun_acs_ecs_dashboard_load_15m{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "load_15m",
"refId": "C"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "System load",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": null,
"format": "none",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"decimals": null,
"format": "short",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
" ": "dark-green",
" ": "dark-blue",
" ": "dark-red"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"fill": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 37
},
"id": 36,
"legend": {
"avg": false,
"current": true,
"max": false,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "null",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "aliyun_acs_ecs_dashboard_diskusage_used{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " {{ device }}",
"refId": "A"
},
{
"expr": "aliyun_acs_ecs_dashboard_diskusage_free{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " {{ device }}",
"refId": "B"
},
{
"expr": "aliyun_acs_ecs_dashboard_diskusage_total{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " {{ device }}",
"refId": "C"
},
{
"expr": "",
"format": "time_series",
"intervalFactor": 1,
"refId": "D"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": " ",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "decbytes",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
" ": "dark-blue",
" ": "dark-green",
" /dev/vda1": "dark-purple",
" /dev/vdb": "dark-red"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"fill": 1,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 37
},
"id": 38,
"legend": {
"avg": false,
"current": true,
"max": false,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "aliyun_acs_ecs_dashboard_disk_readbytes{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " {{device}}",
"refId": "A"
},
{
"expr": "aliyun_acs_ecs_dashboard_disk_writebytes{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " {{device}}",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": " ",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "cumulative"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "Bps",
"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": {
" ": "dark-green",
" ": "dark-red",
" /dev/md0": "dark-red",
" /dev/vda1": "dark-orange",
" /dev/vdb": "dark-red",
" /dev/md0": "dark-green",
" /dev/vda1": "dark-blue"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"fill": 1,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 45
},
"id": 40,
"legend": {
"avg": false,
"current": true,
"max": false,
"min": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "aliyun_acs_ecs_dashboard_disk_readiops{instanceId=\"$instanceId\"}",
"format": "time_series",
"instant": false,
"interval": "",
"intervalFactor": 2,
"legendFormat": " {{device}}",
"refId": "A"
},
{
"expr": "aliyun_acs_ecs_dashboard_disk_writeiops{instanceId=\"$instanceId\"}",
"format": "time_series",
"instant": false,
"intervalFactor": 2,
"legendFormat": " {{device}}",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": " ",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "none",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {
" ": "dark-green",
" eth0": "dark-green",
" ": "dark-blue",
" eth0": "dark-blue"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"fill": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 45
},
"id": 42,
"legend": {
"avg": true,
"current": true,
"hideEmpty": false,
"max": true,
"min": true,
"show": true,
"total": true,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "aliyun_acs_ecs_dashboard_networkin_rate{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": " {{device}}",
"refId": "A"
},
{
"expr": "aliyun_acs_ecs_dashboard_networkout_rate{instanceId=\"$instanceId\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": " {{device}}",
"refId": "B"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": " ",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "cumulative"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "bps",
"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": {
" ": "dark-blue",
" ": "dark-green",
" ": "dark-orange",
" ": "dark-yellow"
},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_PROMETHEUS}",
"fill": 0,
"gridPos": {
"h": 10,
"w": 24,
"x": 0,
"y": 53
},
"id": 44,
"interval": "",
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": true,
"rightSide": true,
"show": true,
"total": true,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "connected",
"options": {},
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum by (device) (aliyun_acs_ecs_dashboard_networkin_packages{instanceId=\"$instanceId\"})",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
"legendFormat": " {{device}}",
"refId": "A"
},
{
"expr": "sum by (device) (aliyun_acs_ecs_dashboard_networkout_packages{instanceId=\"$instanceId\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": " {{device}}",
"refId": "B"
},
{
"expr": "sum by (device) (aliyun_acs_ecs_dashboard_networkin_errorpackages{instanceId=\"$instanceId\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " {{device}}",
"refId": "C"
},
{
"expr": "sum by (device) (aliyun_acs_ecs_dashboard_networkout_errorpackages{instanceId=\"$instanceId\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": " {{device}}",
"refId": "D"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": " ",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "cumulative"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "pps",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": "30s",
"schemaVersion": 19,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"allValue": null,
"current": {},
"datasource": "${DS_PROMETHEUS}",
"definition": "label_values(aliyun_meta_ecs_info, VpcAttributes)",
"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"name": "Vpcip",
"options": [],
"query": "label_values(aliyun_meta_ecs_info, VpcAttributes)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {},
"datasource": "${DS_PROMETHEUS}",
"definition": "label_values(aliyun_meta_ecs_info {VpcAttributes=\"$Vpcip\"}, InstanceName)",
"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"name": "InstanceName",
"options": [],
"query": "label_values(aliyun_meta_ecs_info {VpcAttributes=\"$Vpcip\"}, InstanceName)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {},
"datasource": "${DS_PROMETHEUS}",
"definition": "label_values(aliyun_meta_ecs_info {InstanceName=\"$InstanceName\", VpcAttributes=\"$Vpcip\"}, HostName)",
"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"name": "hostname",
"options": [],
"query": "label_values(aliyun_meta_ecs_info {InstanceName=\"$InstanceName\", VpcAttributes=\"$Vpcip\"}, HostName)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {},
"datasource": "${DS_PROMETHEUS}",
"definition": "label_values(aliyun_meta_ecs_info{HostName=\"$hostname\", VpcAttributes=\"$Vpcip\" }, InstanceId)",
"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"name": "instanceId",
"options": [],
"query": "label_values(aliyun_meta_ecs_info{HostName=\"$hostname\", VpcAttributes=\"$Vpcip\" }, InstanceId)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
]
},
"time": {
"from": "now-1h",
"to": "now"
},
"timepicker": {
"hidden": false,
"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": "ECS-Detail",
"uid": "yOtBAPZWk",
"version": 4
}
正常かどうかを表示