Grafana dashboard: Gain
Description: Show a summary of Gain Crelated information in a Scipion project

DashBoard used for visualizing scipion (scipion.i2pc.es) Gain activity. See https://scipion-em.github.io/docs/release-3.0.0/docs/facilities/customize-report for details.

{
  "__inputs": [
    {
      "name": "DS_INFLUXDB-SCIPION",
      "label": "InfluxDB-scipion",
      "description": "InfluxDB created by Gain monitor in Scipion",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.7.3"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "$$hashKey": "object:32",
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 12353,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1590316079698,
  "links": [],
  "panels": [
    {
      "content": "<a href=\"/d/oYW5BSeWz/summary?var-project=$project\">Summary</a>\n<a href=\"/d/Dcl-hZeWk/CTF?var-project=$project\">CTF</a>\n<a href=\"/d/Vv8YVFeZz/system?var-project=$project\">System</a>\n<a href=\"/d/QIlzBA6Zz/gain?var-project=$project\">Gain</a>\n<a href=\"/d/50ya60eZz/gallery?var-project=$project\">Images</a>\n\n<style>\n.panel-title-container {\n    font-size: Large;\n    color: firebrick;\n    // text-decoration: underline;\n    // text-decoration-color: firebrick;\n}\n\n\n.table-panel-header-bg {\n  height: 0em;\n}\n\n.table-panel-color-cell{\n  color: red;\n}\n",
      "datasource": "${DS_INFLUXDB-SCIPION}",
      "gridPos": {
        "h": 2,
        "w": 5,
        "x": 8,
        "y": 0
      },
      "id": 11,
      "mode": "html",
      "timeFrom": null,
      "timeShift": null,
      "title": "Links to dashboards",
      "type": "text"
    },
    {
      "columns": [],
      "datasource": "${DS_INFLUXDB-SCIPION}",
      "description": "Stdev should be close to zero and ratios close 1. (Ask coss for a more accurate description). Note that the process than computes gain is computer intensive. For example in the computer were Grafana were test it ttok 18 minutes untill the first values was calculated.",
      "fontSize": "100%",
      "gridPos": {
        "h": 7,
        "w": 11,
        "x": 0,
        "y": 2
      },
      "id": 9,
      "pageSize": null,
      "showHeader": true,
      "sort": {
        "col": 0,
        "desc": true
      },
      "styles": [
        {
          "$$hashKey": "object:403",
          "alias": "Time",
          "align": "auto",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "hidden"
        },
        {
          "$$hashKey": "object:404",
          "alias": "",
          "align": "right",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "decimals": 2,
          "pattern": "/.*/",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "groupBy": [],
          "measurement": "/^$project$/",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT \"ratio1\", \"ratio2\", \"stddev\" FROM /^$project$/ WHERE (\"section\" = 'gain') AND $timeFilter",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "ratio1"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "ratio2"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "stddev"
                ],
                "type": "field"
              }
            ]
          ],
          "tags": [
            {
              "key": "section",
              "operator": "=",
              "value": "gain"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Microscope Gain (as Table)",
      "transform": "table",
      "type": "table"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_INFLUXDB-SCIPION}",
      "description": "Sema Data that appears in the table but shown as a plot, By default this protocol analiza one of each 250 imported movies. You are not going to get ourput here untill 2 points are available.",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 11,
        "y": 2
      },
      "hiddenSeries": false,
      "id": 14,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 2,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pluginVersion": "6.7.3",
      "pointradius": 4,
      "points": true,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "$$hashKey": "object:2831",
          "alias": "test3.stddev",
          "bars": true,
          "fill": 5,
          "lines": true
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "groupBy": [],
          "measurement": "/^$project$/",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT \"ratio1\", \"ratio2\", \"stddev\" FROM /^$project$/ WHERE (\"section\" = 'gain') AND $timeFilter",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "ratio1"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "ratio2"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "stddev"
                ],
                "type": "field"
              }
            ]
          ],
          "tags": [
            {
              "key": "section",
              "operator": "=",
              "value": "gain"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Microacope gain (as plot)",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:1444",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:1445",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": "1m",
  "schemaVersion": 22,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {
          "text": "test3",
          "value": "test3"
        },
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "project",
        "options": [
          {
            "$$hashKey": "object:2445",
            "selected": false,
            "text": "Project List hiden",
            "value": "Project List hiden"
          }
        ],
        "query": "Project List hiden",
        "skipUrlSync": false,
        "type": "custom"
      }
    ]
  },
  "time": {
    "from": "now-12h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "Gain",
  "uid": "QIlzBA6Zz",
  "variables": {
    "list": []
  },
  "version": 26,
  "description": "Show a summary of Gain Crelated information in a Scipion project"
}