Grafana GitLab datasource

The GitLab datasource allows GitLab API data to be visually represented in Grafana dashboards.
GitLab API V4 (REST API)
This datasource uses the go-gitlab package, which is under active development.
Features
Backend
- Releases
- Commits
- Repositories
- Issues
- Organizations
- Labels
- Milestones
- Response Caching
- Deploys
Frontend
- Visualize queries
- Template variables
- Annotations
Caching
Caching on this plugin is not available yet.
Configuration
Options:
| Setting |
Required |
| Access token |
true |
| URL |
true |
To create a new Access Token, navigate to Personal Access Tokens and click "Create personal access token".
Development
A data source backend plugin consists of both frontend and backend components.
Frontend
- Install dependencies
yarn install
- Build plugin in development mode or run in watch mode
yarn dev
or
yarn watch
- Build plugin in production mode
yarn build
Backend
- Update Grafana plugin SDK for Go dependency to the latest minor version:
go get -u github.com/grafana/grafana-plugin-sdk-go
- Build backend plugin binaries for Linux, Windows and Darwin:
mage -v
- List all available Mage targets for additional commands:
mage -l
Learn more