1. Packages
  2. Grafana Cloud
  3. Installation & Configuration
Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse

Grafana Cloud: Installation & Configuration

grafana logo
Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse

    Installation

    The Pulumi Grafana provider is available as a package in all Pulumi languages:

    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 LanguageLbrLabs namePulumiverse name
    JavaScript/TypeScript@lbrlabs/pulumi-grafana@pulumiverse/grafana
    Pythonlbrlabs_pulumi_grafanapulumiverse_grafana
    Gogithub.com/lbrlabs/pulumi-grafana/sdk/go/grafanagithub.com/pulumiverse/pulumi-grafana/sdk/go/grafana
    .NETLbrlabs.PulumiPackage.GrafanaPulumiverse.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.

    grafana logo
    Grafana v0.5.1 published on Wednesday, Jun 12, 2024 by pulumiverse