Grafana dashboard: Equipos
Description: Inventario interno CIS


{
  "__inputs": [
    {
      "name": "DS_INVENTARIOS",
      "label": "Inventarios",
      "description": "",
      "type": "datasource",
      "pluginId": "mysql",
      "pluginName": "MySQL"
    }
  ],
  "__elements": [
    {
      "name": "Monitores",
      "uid": "91EHwd6nk",
      "kind": 1,
      "model": {
        "datasource": {
          "type": "mysql",
          "uid": "${DS_INVENTARIOS}"
        },
        "description": "",
        "fieldConfig": {
          "defaults": {
            "mappings": [],
            "thresholds": {
              "mode": "percentage",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "orange",
                  "value": 70
                },
                {
                  "color": "red",
                  "value": 85
                }
              ]
            }
          },
          "overrides": []
        },
        "gridPos": {
          "h": 7,
          "w": 11,
          "x": 0,
          "y": 8
        },
        "id": 4,
        "options": {
          "orientation": "auto",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "",
            "values": false
          },
          "showThresholdLabels": false,
          "showThresholdMarkers": true
        },
        "pluginVersion": "9.0.2",
        "targets": [
          {
            "datasource": {
              "type": "mysql",
              "uid": "${DS_INVENTARIOS}"
            },
            "format": "table",
            "group": [],
            "metricColumn": "none",
            "rawQuery": true,
            "rawSql": "select count(Marca) from datos WHERE Tipo_Equipo='Monitor'",
            "refId": "A",
            "select": [
              [
                {
                  "params": [
                    "Codigo_Postal"
                  ],
                  "type": "column"
                }
              ]
            ],
            "table": "datos",
            "timeColumn": "Fecha_Registro",
            "timeColumnType": "timestamp",
            "where": [
              {
                "name": "$__timeFilter",
                "params": [],
                "type": "macro"
              }
            ]
          }
        ],
        "title": "Monitores",
        "type": "gauge"
      }
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "9.0.2"
    },
    {
      "type": "datasource",
      "id": "mysql",
      "name": "MySQL",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    }
  ],
  "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"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_INVENTARIOS}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 8,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.0.2",
      "targets": [
        {
          "datasource": {
            "type": "mysql",
            "uid": "${DS_INVENTARIOS}"
          },
          "format": "table",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "select count(Marca) from datos WHERE Marca='HP'",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "Codigo_Postal"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "datos",
          "timeColumn": "Fecha_Registro",
          "timeColumnType": "timestamp",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "title": "Panel Title",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_INVENTARIOS}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "orange",
                "value": 70
              },
              {
                "color": "red",
                "value": 85
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 11,
        "x": 0,
        "y": 8
      },
      "id": 4,
      "libraryPanel": {
        "description": "",
        "meta": {
          "connectedDashboards": 1,
          "created": "2022-07-05T13:32:12-07:00",
          "createdBy": {
            "avatarUrl": "/avatar/46d229b033af06a191ff2267bca9ae56",
            "id": 1,
            "name": "admin"
          },
          "folderName": "General",
          "folderUid": "",
          "updated": "2022-07-05T13:48:41-07:00",
          "updatedBy": {
            "avatarUrl": "/avatar/46d229b033af06a191ff2267bca9ae56",
            "id": 1,
            "name": "admin"
          }
        },
        "name": "Monitores",
        "type": "gauge",
        "uid": "91EHwd6nk",
        "version": 4
      },
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "9.0.2",
      "targets": [
        {
          "datasource": {
            "type": "mysql",
            "uid": "${DS_INVENTARIOS}"
          },
          "format": "table",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "select count(Marca) from datos WHERE Tipo_Equipo='Monitor'",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "Codigo_Postal"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "datos",
          "timeColumn": "Fecha_Registro",
          "timeColumnType": "timestamp",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "title": "Monitores",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_INVENTARIOS}"
      },
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "orange",
                "value": 70
              },
              {
                "color": "red",
                "value": 85
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 10,
        "x": 11,
        "y": 8
      },
      "id": 6,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "9.0.2",
      "targets": [
        {
          "datasource": {
            "type": "mysql",
            "uid": "${DS_INVENTARIOS}"
          },
          "format": "table",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "select count(Marca) from datos WHERE Tipo_Equipo='Telefono IP'",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "Codigo_Postal"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "datos",
          "timeColumn": "Fecha_Registro",
          "timeColumnType": "timestamp",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "title": "Teléfonos IP",
      "type": "gauge"
    },
    {
      "datasource": {
        "type": "mysql",
        "uid": "${DS_INVENTARIOS}"
      },
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green"
              },
              {
                "color": "red",
                "value": 40
              },
              {
                "color": "orange",
                "value": 70
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 10,
        "x": 0,
        "y": 15
      },
      "id": 2,
      "options": {
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "9.0.2",
      "targets": [
        {
          "datasource": {
            "type": "mysql",
            "uid": "${DS_INVENTARIOS}"
          },
          "format": "table",
          "group": [],
          "metricColumn": "none",
          "rawQuery": true,
          "rawSql": "select count(Marca) from datos WHERE Tipo_Equipo='CPU'",
          "refId": "A",
          "select": [
            [
              {
                "params": [
                  "Codigo_Postal"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "datos",
          "timeColumn": "Fecha_Registro",
          "timeColumnType": "timestamp",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "title": "CPU´s ",
      "type": "gauge"
    }
  ],
  "refresh": false,
  "schemaVersion": 36,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "2022-07-05T06:01:03.432Z",
    "to": "2022-07-06T06:01:03.432Z"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Equipos",
  "uid": "rIe-Udenk",
  "version": 5,
  "weekStart": "",
  "gnetId": 16551,
  "description": "Inventario interno CIS"
}