gitlab-datasource

module
v0.0.0-...-8b3eb0f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2020 License: Apache-2.0

README

Grafana GitLab datasource

CircleCI David Dependency Status David Dev Dependency Status Known Vulnerabilities

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
  1. Install dependencies
yarn install
  1. Build plugin in development mode or run in watch mode
yarn dev

or

yarn watch
  1. Build plugin in production mode
yarn build
Backend
  1. Update Grafana plugin SDK for Go dependency to the latest minor version:
go get -u github.com/grafana/grafana-plugin-sdk-go
  1. Build backend plugin binaries for Linux, Windows and Darwin:
mage -v
  1. List all available Mage targets for additional commands:
mage -l

Learn more

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL