Grafana dashboard: PDMA - Processo
Description: PDMA process dashboard


{
  "__inputs": [
    {
      "name": "DS_INFLUXDB",
      "label": "InfluxDB",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "bargauge",
      "name": "Bar Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.4.2"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "PDMA process dashboard",
  "editable": true,
  "gnetId": 11817,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1603750005058,
  "links": [],
  "panels": [
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#C4162A",
        "#E0B400",
        "#37872D"
      ],
      "datasource": "${DS_INFLUXDB}",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 4,
        "w": 5,
        "x": 0,
        "y": 0
      },
      "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": [
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "sensor_data_2",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT sum(\"value\") FROM \"sensor_data_2\" WHERE (\"alias\" = 'd01' AND \"gateway_mac\" =~ /^$Gateway$/) AND $timeFilter",
          "rawQuery": false,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "sum"
              }
            ]
          ],
          "tags": [
            {
              "key": "gateway_mac",
              "operator": "=~",
              "value": "/^$gateway_mac$/"
            },
            {
              "condition": "AND",
              "key": "gateway_name",
              "operator": "=~",
              "value": "/^$gateway_name$/"
            },
            {
              "condition": "AND",
              "key": "sensor_mac",
              "operator": "=~",
              "value": "/^$pma_sensor_mac$/"
            },
            {
              "condition": "AND",
              "key": "sensor_name",
              "operator": "=~",
              "value": "/^$pma_sensor_name$/"
            }
          ]
        }
      ],
      "thresholds": "",
      "timeFrom": null,
      "timeShift": null,
      "title": "Peças produzidas",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_INFLUXDB}",
      "gridPos": {
        "h": 12,
        "w": 19,
        "x": 5,
        "y": 0
      },
      "id": 6,
      "interval": "",
      "links": [],
      "options": {
        "displayMode": "lcd",
        "fieldOptions": {
          "calcs": [
            "sum"
          ],
          "defaults": {
            "links": [],
            "mappings": [],
            "max": 800,
            "min": 0,
            "thresholds": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 600
              }
            ],
            "unit": "s"
          },
          "override": {},
          "values": false
        },
        "orientation": "vertical"
      },
      "pluginVersion": "6.4.2",
      "targets": [
        {
          "alias": "OP1",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "sensor_data_2",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT mean(\"low_free\") FROM \"mem\" WHERE $timeFilter GROUP BY time($__interval) fill(null)",
          "rawQuery": false,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "gateway_mac",
              "operator": "=~",
              "value": "/^$gateway_mac$/"
            },
            {
              "condition": "AND",
              "key": "gateway_name",
              "operator": "=~",
              "value": "/^$gateway_name$/"
            },
            {
              "condition": "AND",
              "key": "sensor_mac",
              "operator": "=~",
              "value": "/^$pma_sensor_mac$/"
            },
            {
              "condition": "AND",
              "key": "sensor_name",
              "operator": "=~",
              "value": "/^$pma_sensor_name$/"
            }
          ]
        },
        {
          "alias": "OP2",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "sensor_data_2",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "gateway_mac",
              "operator": "=~",
              "value": "/^$gateway_mac$/"
            },
            {
              "condition": "AND",
              "key": "gateway_name",
              "operator": "=~",
              "value": "/^$gateway_name$/"
            },
            {
              "condition": "AND",
              "key": "sensor_mac",
              "operator": "=~",
              "value": "/^$pma_sensor_mac$/"
            },
            {
              "condition": "AND",
              "key": "sensor_name",
              "operator": "=~",
              "value": "/^$pma_sensor_name$/"
            }
          ]
        },
        {
          "alias": "OP3",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "sensor_data_2",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "C",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "gateway_mac",
              "operator": "=~",
              "value": "/^$gateway_mac$/"
            },
            {
              "condition": "AND",
              "key": "gateway_name",
              "operator": "=~",
              "value": "/^$gateway_name$/"
            },
            {
              "condition": "AND",
              "key": "sensor_mac",
              "operator": "=~",
              "value": "/^$pma_sensor_mac$/"
            },
            {
              "condition": "AND",
              "key": "sensor_name",
              "operator": "=~",
              "value": "/^$pma_sensor_name$/"
            }
          ]
        },
        {
          "alias": "OP4",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "sensor_data_2",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "D",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "gateway_mac",
              "operator": "=~",
              "value": "/^$gateway_mac$/"
            },
            {
              "condition": "AND",
              "key": "gateway_name",
              "operator": "=~",
              "value": "/^$gateway_name$/"
            },
            {
              "condition": "AND",
              "key": "sensor_mac",
              "operator": "=~",
              "value": "/^$pma_sensor_mac$/"
            },
            {
              "condition": "AND",
              "key": "sensor_name",
              "operator": "=~",
              "value": "/^$pma_sensor_name$/"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Gráfico Yamazumi",
      "type": "bargauge"
    },
    {
      "cacheTimeout": null,
      "colorBackground": true,
      "colorValue": false,
      "colors": [
        "#37872D",
        "#37872D",
        "#37872D"
      ],
      "datasource": "${DS_INFLUXDB}",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 4,
        "w": 5,
        "x": 0,
        "y": 4
      },
      "id": 7,
      "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": [
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "sensor_data_2",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "sum"
              }
            ]
          ],
          "tags": [
            {
              "key": "gateway_mac",
              "operator": "=~",
              "value": "/^$gateway_mac$/"
            },
            {
              "condition": "AND",
              "key": "gateway_name",
              "operator": "=~",
              "value": "/^$gateway_name$/"
            },
            {
              "condition": "AND",
              "key": "sensor_mac",
              "operator": "=~",
              "value": "/^$pma_sensor_mac$/"
            },
            {
              "condition": "AND",
              "key": "sensor_name",
              "operator": "=~",
              "value": "/^$pma_sensor_name$/"
            }
          ]
        }
      ],
      "thresholds": "",
      "timeFrom": null,
      "timeShift": null,
      "title": "Peças boas",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "cacheTimeout": null,
      "colorBackground": true,
      "colorValue": false,
      "colors": [
        "#C4162A",
        "#C4162A",
        "#C4162A"
      ],
      "datasource": "${DS_INFLUXDB}",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 4,
        "w": 5,
        "x": 0,
        "y": 8
      },
      "id": 8,
      "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.3",
      "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": [
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "sensor_data_2",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT \"/^$d01$/\" FROM \"autogen\".\"sensor_data_2\" WHERE (\"gateway_mac\" =~ /^$Gateway$/) AND $timeFilter",
          "rawQuery": false,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "sum"
              }
            ]
          ],
          "tags": [
            {
              "key": "gateway_mac",
              "operator": "=~",
              "value": "/^$gateway_mac$/"
            },
            {
              "condition": "AND",
              "key": "gateway_name",
              "operator": "=~",
              "value": "/^$gateway_name$/"
            },
            {
              "condition": "AND",
              "key": "sensor_mac",
              "operator": "=~",
              "value": "/^$pma_sensor_mac$/"
            },
            {
              "condition": "AND",
              "key": "sensor_name",
              "operator": "=~",
              "value": "/^$pma_sensor_name$/"
            }
          ]
        }
      ],
      "thresholds": "",
      "timeFrom": null,
      "timeShift": null,
      "title": "Peças refugadas",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    }
  ],
  "refresh": "5s",
  "schemaVersion": 20,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB}",
        "definition": "SHOW TAG VALUES WITH KEY = \"gateway_name\"",
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": true,
        "name": "gateway_name",
        "options": [],
        "query": "SHOW TAG VALUES WITH KEY = \"gateway_name\"",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB}",
        "definition": "SHOW TAG VALUES WITH KEY = \"gateway_mac\" WHERE \"gateway_name\" =~ /^$gateway_name$/",
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": true,
        "name": "gateway_mac",
        "options": [],
        "query": "SHOW TAG VALUES WITH KEY = \"gateway_mac\" WHERE \"gateway_name\" =~ /^$gateway_name$/",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB}",
        "definition": "SHOW TAG VALUES FROM \"sensor_data_2\" WITH KEY = \"sensor_name\" WHERE \"gateway_mac\" =~ /^$gateway_mac$/",
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": true,
        "name": "pma_sensor_name",
        "options": [],
        "query": "SHOW TAG VALUES FROM \"sensor_data_2\" WITH KEY = \"sensor_name\" WHERE \"gateway_mac\" =~ /^$gateway_mac$/",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_INFLUXDB}",
        "definition": "SHOW TAG VALUES FROM \"sensor_data_2\" WITH KEY = \"sensor_mac\" WHERE \"gateway_mac\" =~ /^$gateway_mac$/ AND \"sensor_name\" =~ /^$pma_sensor_name$/",
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": true,
        "name": "pma_sensor_mac",
        "options": [],
        "query": "SHOW TAG VALUES FROM \"sensor_data_2\" WITH KEY = \"sensor_mac\" WHERE \"gateway_mac\" =~ /^$gateway_mac$/ AND \"sensor_name\" =~ /^$pma_sensor_name$/",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now/M",
    "to": "now/M"
  },
  "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": "PDMA - Processo",
  "uid": "XM1f-lTWk",
  "version": 3
}