Grafana Cloud: Installation & Configuration
Installation
The Pulumi Grafana provider is available as a package in all Pulumi languages:
- JavaScript/TypeScript:
@pulumiverse/grafana
- Python:
pulumiverse_grafana
- Go:
github.com/pulumiverse/pulumi-grafana/sdk/go/grafana
- .NET:
Pulumiverse.Grafana
Provider Binary
The Grafana provider binary is a third party binary. It can be installed using the pulumi plugin
command.
pulumi plugin install resource grafana <version> --server github://api.github.com/pulumiverse
Replace the version string with your desired version.
Migrating from the LbrLabs package
The maintenance of this provider has been transferred from LbrLabs to Pulumiverse. LbrLabs published up to v0.2.0, where Pulumiverse picks up with an initial v0.2.1 containing the renamed packages.
If you were using the LbrLabs edition, please update your dependencies to the Pulumiverse edition:
Programming Language | LbrLabs name | Pulumiverse name |
---|---|---|
JavaScript/TypeScript | @lbrlabs/pulumi-grafana | @pulumiverse/grafana |
Python | lbrlabs_pulumi_grafana | pulumiverse_grafana |
Go | github.com/lbrlabs/pulumi-grafana/sdk/go/grafana | github.com/pulumiverse/pulumi-grafana/sdk/go/grafana |
.NET | Lbrlabs.PulumiPackage.Grafana | Pulumiverse.Grafana |
Setup
To provision resources with the Pulumi Grafana provider, you need to have Grafana credentials.
Set environment variables
Once you have provisioned these credentials, you can set environment variables to provision resources in Grafana:
$ export GRAFANA_URL=<GRAFANA_URL>
$ export GRAFANA_AUTH=<GRAFANA_AUTH>
$ export GRAFANA_URL=<GRAFANA_URL>
$ export GRAFANA_AUTH=<GRAFANA_AUTH>
> $env:GRAFANA_URL = "<GRAFANA_URL>"
> $env:GRAFANA_AUTH = "<GRAFANA_AUTH>"
Configuration Options
Use pulumi config set grafana:<option>
or pass options to the constructor of new grafana.Provider
.