github-datasource

module
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0

README

Grafana GitHub data source

The GitHub data source plugin for Grafana lets you to query the GitHub API in Grafana so you can visualize your GitHub repositories and projects.

Documentation

For the plugin documentation, visit plugin documentation website.

Video Tutorial

Watch this video to learn more about setting up the Grafana GitHub data source plugin:

Give it a try using Grafana Play

With Grafana Play, you can explore and see how it works, learning from practical examples to accelerate your development. This feature can be seen on GitHub data source plugin demo.

GitHub API V4 (GraphQL)

This data source uses the githubv4 package, which is under active development.

Frequently Asked Questions

  • Why does it sometimes take up to 5 minutes for my new pull request / new issue / new commit to show up?

We have aggressive caching enabled due to GitHub's rate limiting policies. When selecting a time range like "Last hour", a combination of the queries for each panel and the time range is cached temporarily.

  • Why are there two selection options for Pull Requests and Issue times when creating annotations?

There are two times that affect an annotation:

  • The time range of the dashboard or panel
  • The time that should be used to display the event on the graph

The first selection is used to filter the events that display on the graph. For example, if you select "closed at", only events that were "closed" in your dashboard's time range will be displayed on the graph.

The second selection is used to determine where on the graph the event should be displayed.

Typically these will be the same, however there are some cases where you may want them to be different.

Directories

Path Synopsis
pkg
errors
Package dserrors contains common errors that functions will return in this project
Package dserrors contains common errors that functions will return in this project
github
Package github contains more usable functions and types for interacting with the GitHubv4 API
Package github contains more usable functions and types for interacting with the GitHubv4 API
models
Package models contains data types that will be received in a request or data that will be sent in a response.
Package models contains data types that will be received in a request or data that will be sent in a response.

Jump to

Keyboard shortcuts

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