Grafana Wrapper for Bitrise API
Sign up for a free trial account here: https://grafana.com/signup/cloud/select-org
npm i
node index.js
Just click the button above and when the Repl loads click Run.
Copy the base URL from the running Repl
Make sure to update the url in the code here also: https://github.com/DamienBitrise/bitrise-grafana-api/blob/master/index.js#L12
- /builds
- /queue
- /running
- /stats
- / should return 200 ok. Used for "Test connection" on the datasource config page.
- /search should return available metrics when invoked.
- /query should return metrics based on input.
- /annotations should return annotations.
Table Data Source
Chart Data Source
Table
Charts
Using the Base URL from your server or Repl configure two Grafana JSON Data Sources
URL: BASE_URL/running
Headers
- Authorization (Personal Access Token for Bitrise API)
- content ('application/json')
- appSlugs (comma seperated list of app slugs) [Optional omit to select all apps]
URL: BASE_URL/stats
Headers
- Authorization (Personal Access Token for Bitrise API)
- content ('application/json')
- appSlugs (comma seperated list of app slugs) [Optional omit to select all apps]
URL: BASE_URL/builds
Headers
- Authorization (Personal Access Token for Bitrise API)
- content ('application/json')
- appSlugs (comma seperated list of app slugs) [Optional omit to select all apps]
URL: BASE_URL/queue
Headers
- Authorization (Personal Access Token for Bitrise API)
- content ('application/json')
- appSlugs (comma seperated list of app slugs) [Optional omit to select all apps]
Just Import Grafana Dashboard JSON here:
https://github.com/DamienBitrise/bitrise-grafana-api/blob/master/Bitrise%20Dashboard.json
Note: Due to a Grafana bug with importing dashboards with Data Sources, you may need to unselect and reselect the data sources in the Dashboard panels.
Step 1: Click the title of each panel in the Dashboard view and click edit.
Step 2: Select the "Query" dropdown and select a different data source, then select the original data source again.
This updates the Data Source IDs to match the new DataSources you added previously.