{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "datasource",
          "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": "postgres",
          "uid": "P172949F98CB31475"
        },
        "enable": true,
        "hide": false,
        "iconColor": "rgba(255, 96, 96, 1)",
        "limit": 100,
        "name": "Releases",
        "query": "SELECT title, description from annotations WHERE $timeFilter order by time asc",
        "rawQuery": "select extract(epoch from time) AS time, title as text, description as tags from sannotations where $__timeFilter(time)",
        "showIn": 0,
        "tagsColumn": "title,description",
        "textColumn": "",
        "titleColumn": "[[full_name]] release",
        "type": "alert"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": 30,
  "iteration": 1678427598248,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "aliasColors": {},
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": {
        "type": "postgres",
        "uid": "P172949F98CB31475"
      },
      "description": "Shows review counts for given users and repository.",
      "fieldConfig": {
        "defaults": {
          "links": []
        },
        "overrides": []
      },
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 22,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "hiddenSeries": false,
      "hideTimeOverride": false,
      "id": 1,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "hideEmpty": false,
        "hideZero": false,
        "max": true,
        "min": true,
        "rightSide": true,
        "show": true,
        "sort": "avg",
        "sortDesc": true,
        "total": true,
        "values": true
      },
      "lines": false,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null as zero",
      "options": {
        "alertThreshold": true
      },
      "percentage": false,
      "pluginVersion": "8.5.21",
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": true,
      "steppedLine": false,
      "targets": [
        {
          "alias": "",
          "dsType": "influxdb",
          "format": "time_series",
          "groupBy": [],
          "measurement": "sig_federation_d",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT /^[[reviewers]]$/ FROM \"reviews_per_user_[[repo]]_[[period]]\" WHERE $timeFilter",
          "rawQuery": true,
          "rawSql": "select\n  time,\n  ${reviewers:csv}\nfrom\n  suser_reviews\nwhere\n  $__timeFilter(time)\n  and period = '[[period]]'\n  and series = 'rev_per_usr[[repo]]'\norder by\n  time",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              }
            ]
          ],
          "tags": []
        }
      ],
      "thresholds": [],
      "timeRegions": [],
      "title": "Reviews per user/repo ([[repo_name]], [[period]])",
      "tooltip": {
        "shared": true,
        "sort": 2,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "mode": "time",
        "show": true,
        "values": [
          "total"
        ]
      },
      "yaxes": [
        {
          "format": "short",
          "label": "Number of PR review comments",
          "logBase": 1,
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": "",
          "logBase": 1,
          "min": "0",
          "show": true
        }
      ],
      "yaxis": {
        "align": false
      }
    },
    {
      "datasource": {
        "type": "postgres",
        "uid": "P172949F98CB31475"
      },
      "gridPos": {
        "h": 12,
        "w": 24,
        "x": 0,
        "y": 22
      },
      "id": 11,
      "links": [],
      "options": {
        "content": "${docs:raw}",
        "mode": "html"
      },
      "pluginVersion": "8.5.21",
      "title": "Dashboard documentation",
      "type": "text"
    }
  ],
  "schemaVersion": 36,
  "style": "dark",
  "tags": [
    "dashboard",
    "all"
  ],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "7 Days MA",
          "value": "d7"
        },
        "hide": 0,
        "includeAll": false,
        "label": "Period",
        "multi": false,
        "name": "period",
        "options": [
          {
            "selected": false,
            "text": "Day",
            "value": "d"
          },
          {
            "selected": false,
            "text": "Week",
            "value": "w"
          },
          {
            "selected": true,
            "text": "7 Days MA",
            "value": "d7"
          },
          {
            "selected": false,
            "text": "Month",
            "value": "m"
          },
          {
            "selected": false,
            "text": "Quarter",
            "value": "q"
          },
          {
            "selected": false,
            "text": "Year",
            "value": "y"
          }
        ],
        "query": "d,w,d7,m,q,y",
        "skipUrlSync": false,
        "type": "custom"
      },
      {
        "current": {
          "selected": false,
          "text": "All",
          "value": "All"
        },
        "datasource": {
          "type": "postgres",
          "uid": "P172949F98CB31475"
        },
        "definition": "",
        "hide": 0,
        "includeAll": false,
        "label": "Repository",
        "multi": false,
        "name": "repo_name",
        "options": [],
        "query": "select top_repos_name_with_all from ttop_repos_with_all order by 1",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {
          "selected": false,
          "text": "all",
          "value": "all"
        },
        "datasource": {
          "type": "postgres",
          "uid": "P172949F98CB31475"
        },
        "definition": "",
        "hide": 2,
        "includeAll": false,
        "label": "",
        "multi": false,
        "name": "repo",
        "options": [],
        "query": "select top_repos_value_with_all from ttop_repos_with_all where top_repos_name_with_all = '[[repo_name]]'",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": true,
        "sort": 0,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": "",
        "current": {
          "selected": false,
          "text": [
            "\"sbueringer\"",
            "\"howardjohn\"",
            "\"liggitt\"",
            "\"aojea\"",
            "\"sftim\"",
            "\"alculquicondor\"",
            "\"tengqm\"",
            "\"thockin\"",
            "\"ItalyPaleAle\"",
            "\"AkihiroSuda\"",
            "\"pohly\"",
            "\"toddbaert\"",
            "\"skitt\"",
            "\"shizhMSFT\"",
            "\"dmitryax\"",
            "\"BusyJay\"",
            "\"SergeyKanzhelev\"",
            "\"CecileRobertMichon\"",
            "\"innobead\"",
            "\"freben\"",
            "\"travisn\"",
            "\"scholzj\"",
            "\"ericvn\"",
            "\"ahrtr\"",
            "\"tabokie\"",
            "\"hzxuzhonghu\"",
            "\"FedeDP\"",
            "\"arkodg\"",
            "\"Rugvip\"",
            "\"reachjainrahul\"",
            "\"saschagrunert\"",
            "\"jon-whit\"",
            "\"codeboten\"",
            "\"wonderflow\"",
            "\"mowies\"",
            "\"trask\"",
            "\"wzshiming\"",
            "\"tpantelis\"",
            "\"wojtek-t\"",
            "\"mimowo\"",
            "\"eddycharly\"",
            "\"mukundansundar\"",
            "\"bogdandrutu\"",
            "\"0xFelix\"",
            "\"leecalcote\"",
            "\"djaglowski\"",
            "\"fabriziopandini\"",
            "\"luolanzone\"",
            "\"michaelbeaumont\"",
            "\"phlax\"",
            "\"mateuszrzeszutek\"",
            "\"RainbowMango\"",
            "\"cijothomas\"",
            "\"realshuting\"",
            "\"jianjuns\"",
            "\"MrAlias\"",
            "\"jmarantz\"",
            "\"jack-berg\"",
            "\"beeme1mr\"",
            "\"Kielek\"",
            "\"marquiz\"",
            "\"tnqn\"",
            "\"apelisse\"",
            "\"lahabana\"",
            "\"cpanato\"",
            "\"JorTurFer\"",
            "\"crenshaw-dev\"",
            "\"Aneurysm9\"",
            "\"zirain\"",
            "\"tiagolobocastro\"",
            "\"skyerus\"",
            "\"mattlord\"",
            "\"markdroth\"",
            "\"chalin\"",
            "\"jackfrancis\"",
            "\"divya-mohan0209\"",
            "\"natalieparellano\"",
            "\"killianmuldoon\"",
            "\"odubajDT\"",
            "\"maxsmythe\"",
            "\"kerthcet\"",
            "\"pchaigno\"",
            "\"frouioui\"",
            "\"priteshbandi\"",
            "\"kleimkuhler\"",
            "\"jpbetz\"",
            "\"johngmyers\"",
            "\"pierDipi\"",
            "\"dfawley\"",
            "\"easwars\"",
            "\"pellared\"",
            "\"derekcollison\"",
            "\"dims\"",
            "\"pacoxu\"",
            "\"rleungx\"",
            "\"jakubdyszkiewicz\"",
            "\"ahg-g\"",
            "\"serathius\"",
            "\"psschwei\"",
            "\"TylerHelmuth\"",
            "\"kannon92\"",
            "\"joestringer\"",
            "\"zroubalik\"",
            "\"Andreagit97\"",
            "\"derekbit\"",
            "\"skriss\"",
            "\"robscott\"",
            "\"XiShanYongYe-Chang\"",
            "\"ctiller\"",
            "\"ppatierno\"",
            "\"shubham1172\"",
            "\"sunjayBhatia\"",
            "\"hakman\"",
            "\"msau42\"",
            "\"deepthi\"",
            "\"changweige\"",
            "\"GuptaManan100\"",
            "\"reyang\"",
            "\"lavalamp\"",
            "\"jpsim\"",
            "\"Anandkumar26\"",
            "\"enj\"",
            "\"Huang-Wei\"",
            "\"berndverst\"",
            "\"mx-psi\"",
            "\"windsonsea\"",
            "\"stefanprodan\"",
            "\"BenTheElder\"",
            "\"camilamacedo86\"",
            "\"msfussell\"",
            "\"subhamkrai\"",
            "\"adisuissa\"",
            "\"xpivarc\"",
            "\"yeya24\"",
            "\"craigpastro\"",
            "\"lobkovilya\"",
            "\"srikanthccv\"",
            "\"svrnm\"",
            "\"dashpole\"",
            "\"imeoer\"",
            "\"lentzi90\"",
            "\"JeyJeyGao\"",
            "\"KnVerey\"",
            "\"fuweid\"",
            "\"patrickzheng200\"",
            "\"kleinfreund\"",
            "\"danehans\"",
            "\"alexzielenski\"",
            "\"slonka\"",
            "\"rambohe-ch\"",
            "\"drfloob\"",
            "\"PettitWesley\"",
            "\"alyssawilk\"",
            "\"mattklein123\"",
            "\"oshoval\"",
            "\"artursouza\"",
            "\"ameukam\"",
            "\"aanm\"",
            "\"cartermp\"",
            "\"jsturtevant\"",
            "\"furkatgofurov7\"",
            "\"klueska\"",
            "\"cheyang\"",
            "\"tomkerkhove\"",
            "\"aplanas\"",
            "\"jpkrohling\"",
            "\"viccuad\"",
            "\"CodeBlanch\"",
            "\"alpeb\"",
            "\"leogr\"",
            "\"tonyxuqqi\"",
            "\"shuo-wu\"",
            "\"wenyingd\"",
            "\"sridhargaddam\"",
            "\"qiujian16\"",
            "\"bpradipt\"",
            "\"azdagron\"",
            "\"xing-yang\"",
            "\"utpilla\"",
            "\"stefanberger\"",
            "\"mateusoliveira43\"",
            "\"benjdlambert\"",
            "\"thisthat\"",
            "\"binshi-bing\""
          ],
          "value": [
            "\"sbueringer\"",
            "\"howardjohn\"",
            "\"liggitt\"",
            "\"aojea\"",
            "\"sftim\"",
            "\"alculquicondor\"",
            "\"tengqm\"",
            "\"thockin\"",
            "\"ItalyPaleAle\"",
            "\"AkihiroSuda\"",
            "\"pohly\"",
            "\"toddbaert\"",
            "\"skitt\"",
            "\"shizhMSFT\"",
            "\"dmitryax\"",
            "\"BusyJay\"",
            "\"SergeyKanzhelev\"",
            "\"CecileRobertMichon\"",
            "\"innobead\"",
            "\"freben\"",
            "\"travisn\"",
            "\"scholzj\"",
            "\"ericvn\"",
            "\"ahrtr\"",
            "\"tabokie\"",
            "\"hzxuzhonghu\"",
            "\"FedeDP\"",
            "\"arkodg\"",
            "\"Rugvip\"",
            "\"reachjainrahul\"",
            "\"saschagrunert\"",
            "\"jon-whit\"",
            "\"codeboten\"",
            "\"wonderflow\"",
            "\"mowies\"",
            "\"trask\"",
            "\"wzshiming\"",
            "\"tpantelis\"",
            "\"wojtek-t\"",
            "\"mimowo\"",
            "\"eddycharly\"",
            "\"mukundansundar\"",
            "\"bogdandrutu\"",
            "\"0xFelix\"",
            "\"leecalcote\"",
            "\"djaglowski\"",
            "\"fabriziopandini\"",
            "\"luolanzone\"",
            "\"michaelbeaumont\"",
            "\"phlax\"",
            "\"mateuszrzeszutek\"",
            "\"RainbowMango\"",
            "\"cijothomas\"",
            "\"realshuting\"",
            "\"jianjuns\"",
            "\"MrAlias\"",
            "\"jmarantz\"",
            "\"jack-berg\"",
            "\"beeme1mr\"",
            "\"Kielek\"",
            "\"marquiz\"",
            "\"tnqn\"",
            "\"apelisse\"",
            "\"lahabana\"",
            "\"cpanato\"",
            "\"JorTurFer\"",
            "\"crenshaw-dev\"",
            "\"Aneurysm9\"",
            "\"zirain\"",
            "\"tiagolobocastro\"",
            "\"skyerus\"",
            "\"mattlord\"",
            "\"markdroth\"",
            "\"chalin\"",
            "\"jackfrancis\"",
            "\"divya-mohan0209\"",
            "\"natalieparellano\"",
            "\"killianmuldoon\"",
            "\"odubajDT\"",
            "\"maxsmythe\"",
            "\"kerthcet\"",
            "\"pchaigno\"",
            "\"frouioui\"",
            "\"priteshbandi\"",
            "\"kleimkuhler\"",
            "\"jpbetz\"",
            "\"johngmyers\"",
            "\"pierDipi\"",
            "\"dfawley\"",
            "\"easwars\"",
            "\"pellared\"",
            "\"derekcollison\"",
            "\"dims\"",
            "\"pacoxu\"",
            "\"rleungx\"",
            "\"jakubdyszkiewicz\"",
            "\"ahg-g\"",
            "\"serathius\"",
            "\"psschwei\"",
            "\"TylerHelmuth\"",
            "\"kannon92\"",
            "\"joestringer\"",
            "\"zroubalik\"",
            "\"Andreagit97\"",
            "\"derekbit\"",
            "\"skriss\"",
            "\"robscott\"",
            "\"XiShanYongYe-Chang\"",
            "\"ctiller\"",
            "\"ppatierno\"",
            "\"shubham1172\"",
            "\"sunjayBhatia\"",
            "\"hakman\"",
            "\"msau42\"",
            "\"deepthi\"",
            "\"changweige\"",
            "\"GuptaManan100\"",
            "\"reyang\"",
            "\"lavalamp\"",
            "\"jpsim\"",
            "\"Anandkumar26\"",
            "\"enj\"",
            "\"Huang-Wei\"",
            "\"berndverst\"",
            "\"mx-psi\"",
            "\"windsonsea\"",
            "\"stefanprodan\"",
            "\"BenTheElder\"",
            "\"camilamacedo86\"",
            "\"msfussell\"",
            "\"subhamkrai\"",
            "\"adisuissa\"",
            "\"xpivarc\"",
            "\"yeya24\"",
            "\"craigpastro\"",
            "\"lobkovilya\"",
            "\"srikanthccv\"",
            "\"svrnm\"",
            "\"dashpole\"",
            "\"imeoer\"",
            "\"lentzi90\"",
            "\"JeyJeyGao\"",
            "\"KnVerey\"",
            "\"fuweid\"",
            "\"patrickzheng200\"",
            "\"kleinfreund\"",
            "\"danehans\"",
            "\"alexzielenski\"",
            "\"slonka\"",
            "\"rambohe-ch\"",
            "\"drfloob\"",
            "\"PettitWesley\"",
            "\"alyssawilk\"",
            "\"mattklein123\"",
            "\"oshoval\"",
            "\"artursouza\"",
            "\"ameukam\"",
            "\"aanm\"",
            "\"cartermp\"",
            "\"jsturtevant\"",
            "\"furkatgofurov7\"",
            "\"klueska\"",
            "\"cheyang\"",
            "\"tomkerkhove\"",
            "\"aplanas\"",
            "\"jpkrohling\"",
            "\"viccuad\"",
            "\"CodeBlanch\"",
            "\"alpeb\"",
            "\"leogr\"",
            "\"tonyxuqqi\"",
            "\"shuo-wu\"",
            "\"wenyingd\"",
            "\"sridhargaddam\"",
            "\"qiujian16\"",
            "\"bpradipt\"",
            "\"azdagron\"",
            "\"xing-yang\"",
            "\"utpilla\"",
            "\"stefanberger\"",
            "\"mateusoliveira43\"",
            "\"benjdlambert\"",
            "\"thisthat\"",
            "\"binshi-bing\""
          ]
        },
        "datasource": {
          "type": "postgres",
          "uid": "P172949F98CB31475"
        },
        "definition": "",
        "hide": 0,
        "includeAll": false,
        "label": "Reviewer",
        "multi": true,
        "name": "reviewers",
        "options": [],
        "query": "select '\"' || reviewers_name || '\"' from treviewers",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {
          "selected": false,
          "text": "All CNCF",
          "value": "All CNCF"
        },
        "datasource": {
          "type": "postgres",
          "uid": "P172949F98CB31475"
        },
        "definition": "",
        "hide": 2,
        "includeAll": false,
        "multi": false,
        "name": "full_name",
        "options": [],
        "query": "select value_s from gha_vars where name = 'full_name'",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": true,
        "sort": 0,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {
          "selected": false,
          "text": "<h1 id=\"dashboard-header\">All CNCF user reviews dashboard</h1>\n<p>Links:</p>\n<ul>\n<li>Metric <a href=\"https://github.com/cncf/devstats/blob/master/metrics/shared/reviews_per_user.sql\" target=\"_blank\">SQL file</a>.</li>\n<li>TSDB <a href=\"https://github.com/cncf/devstats/blob/master/metrics/shared/metrics.yaml\" target=\"_blank\">series definition</a>. Search for <code>reviews_per_user</code></li>\n<li>Grafana dashboard <a href=\"https://github.com/cncf/devstats/blob/master/grafana/dashboards/all/user-reviews.json\" target=\"_blank\">JSON</a>.</li>\n</ul>\n<h1 id=\"description\">Description</h1>\n<ul>\n<li>This dashboard shows number of PR reviews most active reviewers.</li>\n<li>Review means user added PR review comment.</li>\n<li>You can select reviewer from the reviewers drop-down, it shows top active reviewers from last 3 months.</li>\n<li>To find top active reviewers we sum number of reviews per user.</li>\n<li>You can select single repository or summary for all of them.</li>\n<li>You can filter by period and choose multiple reviewers to stack their data.</li>\n<li>Selecting period (for example week) means that dashboard will show reviews in those periods.</li>\n<li>See <a href=\"https://github.com/cncf/devstats/blob/master/docs/periods.md\" target=\"_blank\">here</a> for more informations about periods.</li>\n</ul>",
          "value": "<h1 id=\"dashboard-header\">All CNCF user reviews dashboard</h1>\n<p>Links:</p>\n<ul>\n<li>Metric <a href=\"https://github.com/cncf/devstats/blob/master/metrics/shared/reviews_per_user.sql\" target=\"_blank\">SQL file</a>.</li>\n<li>TSDB <a href=\"https://github.com/cncf/devstats/blob/master/metrics/shared/metrics.yaml\" target=\"_blank\">series definition</a>. Search for <code>reviews_per_user</code></li>\n<li>Grafana dashboard <a href=\"https://github.com/cncf/devstats/blob/master/grafana/dashboards/all/user-reviews.json\" target=\"_blank\">JSON</a>.</li>\n</ul>\n<h1 id=\"description\">Description</h1>\n<ul>\n<li>This dashboard shows number of PR reviews most active reviewers.</li>\n<li>Review means user added PR review comment.</li>\n<li>You can select reviewer from the reviewers drop-down, it shows top active reviewers from last 3 months.</li>\n<li>To find top active reviewers we sum number of reviews per user.</li>\n<li>You can select single repository or summary for all of them.</li>\n<li>You can filter by period and choose multiple reviewers to stack their data.</li>\n<li>Selecting period (for example week) means that dashboard will show reviews in those periods.</li>\n<li>See <a href=\"https://github.com/cncf/devstats/blob/master/docs/periods.md\" target=\"_blank\">here</a> for more informations about periods.</li>\n</ul>"
        },
        "datasource": {
          "type": "postgres",
          "uid": "P172949F98CB31475"
        },
        "definition": "",
        "hide": 2,
        "includeAll": false,
        "multi": false,
        "name": "docs",
        "options": [],
        "query": "select value_s from gha_vars where name = 'user_reviews_docs_html'",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": true,
        "sort": 0,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-2y",
    "to": "now"
  },
  "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": "PR Reviews by Contributor",
  "uid": "29",
  "version": 2,
  "weekStart": ""
}
