contribute/ISSUE_TRIAGE.md
The main goal of issue triage is to categorize all incoming Grafana issues and make sure each issue has all the essential information needed for anyone to understand and be able to start working on it.
[!NOTE] This information is for Grafana project Maintainers, Owners, and Admins. If you are a Contributor, then you won't be able to perform most of the tasks in this topic.
All issues except the internal ones, are automatically triaged. The automation adds labels based on the title and description provided. The labels are mapped to projects.
Many of these automated behaviors are defined in commands.json. Or in other GitHub Actions Learn more about the auto triager bot in our bot documentation.
flowchart TD
A([New issue])
C2([Triage app adds:
Label: type/#42;
Label: area/#42;
Label: datasource/#42;
Label: automated-triage])
G1([Assigns to mapped project])
H([Done])
%% Flow
A --> C2
C2 --> G1 --> H
Even with automation, understanding the purpose and value of triage remains important. Automation helps categorize and label issues, but human review is still important to:
If you don't have the knowledge or time to code, consider helping with triage. Your efforts help maintainers and contributors focus on resolving issues more efficiently, benefiting the entire community.
One way is to subscribe to all notifications from this repository which means that all new issues, pull requests, comments and important status changes are sent to your configured email address. Read this guide for help with setting this up.
It's highly recommended that you set up filters to automatically remove emails from the inbox and label them accordingly. When issues are properly categorized you can easily understand when you need to act upon a notification or where to look to find issues that haven't been triaged.
Instructions for setting up filters in Gmail can be found here. Another alternative is to use Trailer or similar software.
Before triaging an issue very far, make sure that the issue's author provided the standard information. This helps you make an educated recommendation on how to categorize the issue. The Grafana project uses GitHub issue templates to guide contributors to provide standard information that must be included for each type of template or type of issue.
Bug reports should explain what happened, what was expected, and how to reproduce it. Also, it should include additional information that may help giving a complete picture of what happened such as screenshots, query inspector output, and any relevant information about the environment. For example:
Note: Prior to August, 2023, community-submitted feature requests were submitted as GitHub discussions. These are now submitted using the feature request issue template.
When submitting an enhancement request we ask that users focus on the problem they'd like to solve and why it’s a problem rather than focusing on the solution itself. To facilitate these objectives, the feature requests template includes the following:
This is a mix between a bug report and enhancement request but focused on accessibility issues to help make Grafana improve keyboard navigation, screen-reader support, and general accessibility. The report should include relevant WCAG criteria, if applicable.
Grafana Labs is dedicated to improving our graphical user interfaces and overall experience so that our product becomes usable and accessible for people with disabilities as well as anyone else. Learn more about Grafana's commitment to A11y (accessibility).
In general, if the issue description and title is perceived as a question no more information is needed. See how to categorize these requests here.
To make it easier for everyone to understand and find issues a good rule of thumb is to:
Most issues are now categorized automatically based on the information provided. However, if the automation cannot categorize an issue due to missing or unclear information, a human reviewer may need to request additional details from the author. Use your best judgement—if the issue lacks enough information for automation to work correctly, kindly ask the author to provide the necessary details.
Issues are automatically categorized. An issue can have multiple labels. Typically, a properly categorized issue should at least have these labels:
type/*).area/*) and/or data source (datasource/*), if applicable.| Label | Description |
|---|---|
type/bug | A feature isn't working as expected given design, or documentation. |
type/feature-request | Request for a new feature, or enhancement. |
type/docs | Documentation problem, or enhancement. |
type/accessibility | Accessibility problem, or enhancement. |
type/question | Issue is a question or is perceived as such. |
type/duplicate | An existing issue of the same subject has already been reported. |
type/works-as-intended | A reported bug works as intended (that is, by design). |
type/build-packaging | Build or packaging problem, or enhancement. |
area/* | Subject is related to a functional area of interest, or component. |
datasource/* | Subject is related to a core data source plugin. |
Make sure it's not a duplicate by searching existing issues using related terms from the issue title and description. If you think you know there is an existing issue, but can't find it, please reach out to one of the maintainers and ask for help. If you identify that the issue is a duplicate of an existing issue:
/duplicate of #<issue number>. GitHub will recognize this and add some additional context to the issue activity.type/duplicate label. Optionally, you may add any related area/* or datasource/* labels.If it's not perfectly clear that it's an actual bug, quickly try to reproduce it.
It can be reproduced:
type/bug and at least one area/* or datasource/* label.help wanted and optionally beginner friendly together with pointers on which code to update to fix the bug. This should signal to the community that we would appreciate any help we can get to resolve this.It can't be reproduced:
It works as intended (that is, by design):
type/works-as-intended.type/feature-request and add at least one area/* or datasource/* label.First, evaluate if the documentation makes sense to be included in the Grafana project:
Second, label the issue type/docs and at least one area/* or datasource/* label.
Minor typo/error/lack of information:
There's a minor typo, error, or lack of information that adds a lot of confusion for users and is a big win to fix it:
Major error/lack of information:
help wanted and beginner friendly, if applicable, to signal that we find this important to fix and we would appreciate any help we can get from the community.type/accessibility and at least one area/* or datasource/* label.bot/question. The Grafana bot will automatically close the issue, and it will add the type/question label for you.In general, bugs and enhancement issues should be labeled with a priority.
This is the most difficult thing with triaging issues since it requires a lot of knowledge, context and experience before it is possible to skillfully add a specific priority label.
The key here is to ask for help and discuss issues to understand how more experienced project members think and reason. By doing that you learn more and eventually be more and more comfortable with prioritizing issues.
In case there is an uncertainty around the prioritization of an issue, please ask the maintainers for help.
| Label | Description |
|---|---|
priority/critical | Highest priority. Must be actively worked on as someone's top priority right now. |
priority/support-subscription | This is important for one or several customers having a paid Grafana support subscription. |
priority/important-soon | Must be staffed and worked on either currently, or very soon, ideally in time for the next release. |
priority/important-longterm | Important over the long term, but may need multiple releases to complete. |
priority/nice-to-have | It's a good idea, but not scheduled for any release. |
priority/awaiting-more-evidence | Lowest priority. Possibly useful, but not yet enough interest in it. |
priority/unscheduled | Something to look into before and to be discussed during the planning of the next major/minor stable release. |
Critical bugs
If a bug has been categorized and any of the following criteria apply, the bug should be labeled as critical and must be actively worked on as someone's top priority right now:
Label the issue priority/critical.
If applicable, label the issue priority/support-subscription.
Add the issue to the next upcoming patch release milestone. Create a new milestone if there are none.
Escalate the problem to the maintainers.
Assign or ask a maintainer for help assigning someone to make this issue their top priority right now.
Important short-term
priority/important-soon.priority/support-subscription.Important long-term
priority/important-longterm.Nice to have
priority/nice-to-have.Not critical, but unsure?
priority/unscheduled.It's generally a good idea to consider signaling to the community that help is appreciated and needed in case an issue isn't prioritized to be worked on by maintainers. Use your best judgement. In general, requesting help from the community means that a contribution has a good chance of getting accepted and merged.
In many cases the issue author or community as a whole is more suitable to contribute changes since they're experts in their domain. It's also quite common that someone has tried to get something to work using the documentation without success, made an effort to get it to work, reached out to the community site to get the missing information, or some combination of these things.
In certain areas there probably exist domain experts who may be able to help:
help wanted.beginner friendly to denote that the issue is suitable for a beginner to work on.effort/small, effort/medium or effort/large.When an issue has all basic information provided, but the triage responsible hasn't been able to reproduce the reported problem at a first glance, the issue is labeled triage/needs-confirmation. Depending on the perceived severity and/or number of upvotes, the investigation will either be delegated to another maintainer for further investigation or put on hold until someone else (maintainer or contributor) picks it up and eventually starts investigating it.
Investigating issues can be a very time consuming task, especially for the maintainers, given the huge number of combinations of plugins, data sources, platforms, databases, browsers, hardware, integrations, cloud services, and so on, that are used with Grafana. There are a certain number of combinations that are more common than others, and these are in general easier for maintainers to investigate.
For some other combinations it may not be possible at all for a maintainer to set up a proper test environment to investigate the issue. In these cases we really appreciate any help we can get from the community. Otherwise, the issue is highly likely to be closed.
Even if you don't have the time or knowledge to investigate an issue we highly recommend that you upvote the issue if you happen to have the same problem. If you have further details that may help investigating the issue, please provide as much information as possible.
Part of issue triage should also be triaging of external PRs. The main goal should be to make sure PRs from external contributors have an owner and aren't forgotten.
pr/external in your query search Note: external PRs are automatically labeled with pr/external upon creation.If you're using Gmail, a best practice is to set up filters to automatically remove emails from the inbox and label them, making it easy for you to understand when you need to act upon a notification. You should be able to promptly process all incoming issues that haven't been triaged.
This may be set up by personal preference, but here's a working configuration for reference:
This gives you a structure of labels in the sidebar similar to the following:
- Inbox
...
- GitHub (mine)
- activity
- assigned
- mentions
- GitHub (other)
- Grafana