Plugins 〉Strava
Strava
Strava datasource for Grafana dashboard
Visualize your sport activity with Grafana.
Features:
- Query activities stats and present it as a time series data.
- Table format.
- Show activities over the world with Worldmap Panel.
- Visualize and analyze activity data such as heart rate, speed/pace, power, etc.
- Template variables support.
Configuration
See configuration docs.
Quick start
Before you start grafana server, configure plugin data directory with GF_STRAVA_DS_DATA_PATH
environment variable. This required for storing obtained refresh tokens and make it available after plugin restart. Default path is plugin directory, but it will be removed during plugin upgrade, so for persistent storage it's better to use grafana data directory. Example:
mkdir /var/lib/grafana/strava
export GF_STRAVA_DS_DATA_PATH=/var/lib/grafana/strava
When data source is configured, you can import example dashboards from Dashboards tab at the data source configuration page. That's a good starting point for your custom dashboards.
Unfortunately, Strava API has some limitations and you can query only your own activities. But for multi-user dashboards you can configure multiple data sources and authorize separate user for each of them.
Included dashboard "Strava Athlete Dashboad" depends on Grafana's new version of the text panel plugin which can be in alpha state in older Grafana versions. If you want to enable alpha plugins and avoid seeing an error message in the dashboard, set GF_PLUGINS_ENABLE_ALPHA
environment variable to true. Example:
export GF_PLUGINS_ENABLE_ALPHA=true
Grafana Cloud Pro
- $25 / user / month and includes a free trial for new users
- Available with a Grafana Cloud Pro plan
- Access to 1 Enterprise plugin
- Fully managed service (not available to self-manage)
Grafana Cloud Advanced / Grafana Enterprise
- Available with a Grafana Cloud Advanced plan or Grafana Enterprise license
- Access to all Enterprise plugins
- Run fully managed or self-manage on your own infrastructure
Installing Strava on Grafana Cloud:
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
For more information, visit the docs on plugin installation.
Installing on a local Grafana:
For local instances, plugins are installed and updated via a simple CLI command. Plugins are not updated automatically, however you will be notified when updates are available right within your Grafana.
1. Install the Data Source
Use the grafana-cli tool to install Strava from the commandline:
grafana-cli plugins install
The plugin will be installed into your grafana plugins directory; the default is /var/lib/grafana/plugins. More information on the cli tool.
Alternatively, you can manually download the .zip file for your architecture below and unpack it into your grafana plugins directory.
Alternatively, you can manually download the .zip file and unpack it into your grafana plugins directory.
2. Configure the Data Source
Accessed from the Grafana main menu, newly installed data sources can be added immediately within the Data Sources section.
Next, click the Add data source button in the upper right. The data source will be available for selection in the Type select box.
To see a list of installed data sources, click the Plugins item in the main menu. Both core data sources and installed data sources will appear.
Change Log
[1.4.0] - 2021-12-27
Added
- Display activity route on the Geomap panel, #49.
- Heatmap format which allows to visualize activities over selected time range as a heatmap on Geomap panel.
- Athentication by refresh token from the app config page.
- Automatically convert units based on user's preferences, #43.
- Updates for the dashboards.
[1.3.0] - 2021-05-13
Added
- Individual activity query. Now it's possible to visualize activity-specific metrics: heart rate graph, speed/pace, splits and many other metrics.
- Template variables support (fetch list of activities and use activity it as a variable).
[1.2.0] - 2020-10-14
Added
- ARM build
Fixed
- Fix compatibility with Grafana 7.x
- Sign plugin
- Fix dashboards
[1.1.1] - 2020-03-05
Fixed
- Don't use git LFS for plugin binaries
[1.1.0] - 2020-03-05
Added
- Authentication on the backend, #2
[1.0.1] - 2020-01-10
Fixed
- Error handling while testing data source
- Configuration docs link
[1.0.0] - 2020-01-09
Added
- Initial time series data support
- Initial Worldmap panel format support
- Activity type selection
- Aggregation intervals