Grafana dashboard: GitHub Organization
Description: This dashboard contains PR and Issues across multiple repositories in the Organization using GitHub data source.

This dashboard provides PR and Issues across multiple repositories in the Organization using GitHub data source:

- Releases (0 marked blue as inactive, 1+ marked green as active)
- Issues Created (0 marked blue as inactive, 1+ marked green as active)
- Pull Requests Created (0 marked blue as inactive, 1+ marked green as active)
- Active Issues (0 marked blue as inactive, 1-9 marked green as active, 10+ marked orange as requiring attention)
- Active Pull Requests (0 marked blue as inactive, 1+ marked purple as active)

Thresholds are suitable for small organizations and should be adjusted for specific project needs.

Read more about the plugin on the [Grafana blog](https://grafana.com/blog/2020/09/21/how-we-use-the-grafana-github-plugin-to-track-outstanding-pull-requests/).

{
  "__inputs": [
    {
      "name": "DS_GITHUB",
      "label": "GitHub",
      "description": "",
      "type": "datasource",
      "pluginId": "grafana-github-datasource",
      "pluginName": "GitHub"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.5.6"
    },
    {
      "type": "datasource",
      "id": "grafana-github-datasource",
      "name": "GitHub",
      "version": "1.0.11"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "This dashboard contains PR and Issues across multiple repositories in the Organization using GitHub data source.",
  "editable": true,
  "gnetId": 14461,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1621442969840,
  "links": [],
  "panels": [
    {
      "collapsed": false,
      "datasource": "$datasource",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 4,
      "panels": [],
      "repeat": "repository",
      "title": "Repository $repository",
      "type": "row"
    },
    {
      "datasource": "$datasource",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-blue",
                "value": null
              },
              {
                "color": "dark-green",
                "value": 1
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 0,
        "y": 1
      },
      "id": 9,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.6",
      "targets": [
        {
          "owner": "$organization",
          "queryType": "Releases",
          "refId": "A",
          "repository": "$repository"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Releases",
      "transformations": [
        {
          "id": "reduce",
          "options": {
            "reducers": [
              "count"
            ]
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": "$datasource",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-blue",
                "value": null
              },
              {
                "color": "dark-green",
                "value": 1
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 5,
        "x": 4,
        "y": 1
      },
      "id": 15,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.6",
      "targets": [
        {
          "options": {
            "query": ""
          },
          "owner": "$organization",
          "queryType": "Issues",
          "refId": "A",
          "repository": "$repository"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Issues Created",
      "transformations": [
        {
          "id": "reduce",
          "options": {
            "reducers": [
              "count"
            ]
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": "$datasource",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-blue",
                "value": null
              },
              {
                "color": "dark-green",
                "value": 1
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 5,
        "x": 9,
        "y": 1
      },
      "id": 29,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.6",
      "targets": [
        {
          "options": {
            "query": "",
            "timeField": 1
          },
          "owner": "$organization",
          "queryType": "Pull_Requests",
          "refId": "A",
          "repository": "$repository"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Pull Requests Created",
      "transformations": [
        {
          "id": "reduce",
          "options": {
            "reducers": [
              "count"
            ]
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": "$datasource",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-blue",
                "value": null
              },
              {
                "color": "dark-green",
                "value": 1
              },
              {
                "color": "dark-orange",
                "value": 10
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 5,
        "x": 14,
        "y": 1
      },
      "id": 33,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.6",
      "targets": [
        {
          "options": {
            "query": "is:open",
            "timeField": 0
          },
          "owner": "$organization",
          "queryType": "Issues",
          "refId": "A",
          "repository": "$repository"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Active Issues",
      "transformations": [
        {
          "id": "reduce",
          "options": {
            "reducers": [
              "count"
            ]
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": "$datasource",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-blue",
                "value": null
              },
              {
                "color": "dark-purple",
                "value": 1
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 5,
        "x": 19,
        "y": 1
      },
      "id": 32,
      "options": {
        "colorMode": "background",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "auto"
      },
      "pluginVersion": "7.5.6",
      "targets": [
        {
          "options": {
            "query": "is:open",
            "timeField": 3
          },
          "owner": "$organization",
          "queryType": "Pull_Requests",
          "refId": "A",
          "repository": "$repository"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Active Pull Requests",
      "transformations": [
        {
          "id": "reduce",
          "options": {
            "reducers": [
              "count"
            ]
          }
        }
      ],
      "type": "stat"
    }
  ],
  "refresh": false,
  "schemaVersion": 27,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "GitHub",
          "value": "GitHub"
        },
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "datasource",
        "options": [],
        "query": "grafana-github-datasource",
        "queryValue": "",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "current": {
          "selected": true,
          "text": "RedisGrafana",
          "value": "RedisGrafana"
        },
        "description": null,
        "error": null,
        "hide": 0,
        "label": "Organization",
        "name": "organization",
        "options": [
          {
            "selected": true,
            "text": "RedisGrafana",
            "value": "RedisGrafana"
          }
        ],
        "query": "RedisGrafana",
        "skipUrlSync": false,
        "type": "textbox"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_GITHUB}",
        "definition": "GitHub - Repositories",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Repository",
        "multi": true,
        "name": "repository",
        "options": [],
        "query": {
          "owner": "$organization",
          "queryType": "Repositories"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-6M",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "GitHub Organization",
  "uid": "iVcSTeyGz",
  "version": 1
}