Skip to content

TRE - Datastore Space Evolution #2

@aelttil

Description

@aelttil
{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${datasource}"
        },
        "enable": false,
        "expr": "max (vsphere_host_cpu_readiness_average{vcenter=~\"$vcenter\",esxhostname=~\"$esxi\",clustername=~\"$clustername\"} > 40) by (esxhostname)",
        "hide": true,
        "iconColor": "red",
        "name": "cpu_ready above 40ms critical",
        "step": "5m",
        "tagKeys": "cpu_ready, critical",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "textFormat": "{{ esxhostname }}",
        "titleFormat": "cpu_ready above 10ms"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${datasource}"
        },
        "enable": false,
        "expr": "max (vsphere_host_cpu_readiness_average{vcenter=~\"$vcenter\",esxhostname=~\"$esxi\",clustername=~\"$clustername\"} > 20) by (esxhostname)",
        "hide": true,
        "iconColor": "orange",
        "name": "cpu_ready above 20ms major",
        "step": "5m",
        "tagKeys": "cpu_ready, major",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "textFormat": "{{ esxhostname }}",
        "titleFormat": "cpu_ready above 10ms"
      }
    ]
  },
  "description": "Tableau de bord pour visualiser la consommation d'énergie",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": 26,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${datasource}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "deckbytes"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "used_percentage"
            },
            "properties": [
              {
                "id": "custom.axisPlacement",
                "value": "right"
              },
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    },
                    {
                      "color": "orange",
                      "value": 80
                    },
                    {
                      "color": "red",
                      "value": 90
                    }
                  ]
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 17,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 8,
      "interval": "$inter",
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "avg (vsphere_datastore_disk_capacity_latest{dsname=\"$dsname\"}) by (dsname)",
          "legendFormat": "Total Capacity {{dsname}}",
          "range": true,
          "refId": "total_capacity"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": "avg (vsphere_datastore_disk_used_latest{dsname=\"$dsname\"}) by (dsname)",
          "hide": false,
          "legendFormat": "Used Capacity {{dsname}}",
          "range": true,
          "refId": "used_capacity"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${datasource}"
          },
          "editorMode": "code",
          "expr": " avg ((vsphere_datastore_disk_used_latest{dsname=\"$dsname\"} / vsphere_datastore_disk_capacity_latest{dsname=\"$dsname\"}) * 100) by (dsname)",
          "hide": false,
          "legendFormat": "Used Percentage {{dsname}}",
          "range": true,
          "refId": "used_percentage"
        }
      ],
      "title": "Datastore Usage",
      "type": "timeseries"
    }
  ],
  "refresh": false,
  "schemaVersion": 37,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "auto": true,
        "auto_count": 30,
        "auto_min": "20s",
        "current": {
          "selected": false,
          "text": "1h",
          "value": "1h"
        },
        "hide": 0,
        "label": "Sampling",
        "name": "inter",
        "options": [
          {
            "selected": false,
            "text": "auto",
            "value": "$__auto_interval_inter"
          },
          {
            "selected": false,
            "text": "20s",
            "value": "20s"
          },
          {
            "selected": false,
            "text": "1m",
            "value": "1m"
          },
          {
            "selected": false,
            "text": "10m",
            "value": "10m"
          },
          {
            "selected": false,
            "text": "30m",
            "value": "30m"
          },
          {
            "selected": true,
            "text": "1h",
            "value": "1h"
          },
          {
            "selected": false,
            "text": "6h",
            "value": "6h"
          },
          {
            "selected": false,
            "text": "12h",
            "value": "12h"
          },
          {
            "selected": false,
            "text": "1d",
            "value": "1d"
          },
          {
            "selected": false,
            "text": "7d",
            "value": "7d"
          },
          {
            "selected": false,
            "text": "14d",
            "value": "14d"
          },
          {
            "selected": false,
            "text": "30d",
            "value": "30d"
          }
        ],
        "query": "20s,1m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
        "queryValue": "",
        "refresh": 2,
        "skipUrlSync": false,
        "type": "interval"
      },
      {
        "hide": 2,
        "label": "db",
        "name": "db",
        "query": "telegraf",
        "skipUrlSync": false,
        "type": "constant"
      },
      {
        "current": {
          "selected": true,
          "text": "XBNAN - Virtualization",
          "value": "XBNAN - Virtualization"
        },
        "description": "Liste de toutes les sources de data",
        "hide": 0,
        "includeAll": false,
        "label": "Data Source",
        "multi": false,
        "name": "datasource",
        "options": [],
        "query": "prometheus",
        "queryValue": "",
        "refresh": 1,
        "regex": "/Virtualization/",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "current": {
          "selected": false,
          "text": "All",
          "value": "$__all"
        },
        "datasource": {
          "type": "prometheus",
          "uid": "${datasource}"
        },
        "definition": "label_values(vsphere_host_cpu_usage_average{db=\"$db\"}, vcenter)",
        "hide": 0,
        "includeAll": true,
        "label": "vCenter Server",
        "multi": false,
        "name": "vcenter",
        "options": [],
        "query": {
          "query": "label_values(vsphere_host_cpu_usage_average{db=\"$db\"}, vcenter)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {
          "selected": false,
          "text": "All",
          "value": "$__all"
        },
        "datasource": {
          "type": "prometheus",
          "uid": "${datasource}"
        },
        "definition": "label_values(vsphere_host_cpu_usage_average{db=\"$db\"}, clustername)",
        "hide": 0,
        "includeAll": true,
        "label": "Cluster",
        "multi": true,
        "name": "clustername",
        "options": [],
        "query": {
          "query": "label_values(vsphere_host_cpu_usage_average{db=\"$db\"}, clustername)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {
          "selected": true,
          "text": [
            "All"
          ],
          "value": [
            "$__all"
          ]
        },
        "datasource": {
          "type": "prometheus",
          "uid": "${datasource}"
        },
        "definition": "label_values(vsphere_host_cpu_usage_average{db=\"$db\"}, esxhostname)",
        "hide": 0,
        "includeAll": true,
        "label": "ESXi Server",
        "multi": true,
        "name": "esxi",
        "options": [],
        "query": {
          "query": "label_values(vsphere_host_cpu_usage_average{db=\"$db\"}, esxhostname)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {
          "selected": true,
          "text": "ds001-xbnan-svc-data21-th3s",
          "value": "ds001-xbnan-svc-data21-th3s"
        },
        "datasource": {
          "type": "prometheus",
          "uid": "${datasource}"
        },
        "definition": "label_values(vsphere_datastore_disk_capacity_latest{db=\"$db\"}, dsname)",
        "hide": 0,
        "includeAll": true,
        "label": "Datastore Name",
        "multi": false,
        "name": "dsname",
        "options": [],
        "query": {
          "query": "label_values(vsphere_datastore_disk_capacity_latest{db=\"$db\"}, dsname)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "datasource": {
          "type": "prometheus",
          "uid": "${datasource}"
        },
        "filters": [],
        "hide": 0,
        "name": "Filters",
        "skipUrlSync": false,
        "type": "adhoc"
      }
    ]
  },
  "time": {
    "from": "now-2d",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "browser",
  "title": "TRE - Datastore Space Evolution",
  "uid": "7DZ-JS2Nz",
  "version": 13,
  "weekStart": ""
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions