Skip to main content

Environment data source

Grafana 8 Language grade: JavaScript CI codecov

Introduction

The Environment data source is a plugin for Grafana that returns environment variables to display on your dashboard or use as Variables to retrieve data.

Requirements

Grafana 8.0 is required.

Getting Started

Because of the security reasons Environment data source can not be included in the Grafana Marketplace and can be installed manually from our private repository or downloaded directly from the GitHub repository:

grafana-cli --repo https://volkovlabs.io/plugins plugins install volkovlabs-env-datasource

Features

  • Returns Environment Variables.
  • Allows to filter unnecessary or secured variables using Regex.

Provisioning

Grafana supports managing data sources by adding one or more YAML config files in the provisioning/datasources folder.

Example of provisioning the Environment Data Source with a filter GF_ to return only Grafana related variables.

datasources:
- name: Environment
type: volkovlabs-env-datasource
access: proxy
isDefault: true
orgId: 1
version: 1
editable: true
jsonData:
filter: GF_