1. Packages
  2. Packages
  3. Grafana Cloud
  4. API Docs
  5. cloud
  6. Integration
Viewing docs for Grafana v2.29.0
published on Friday, May 1, 2026 by pulumiverse
grafana logo
Viewing docs for Grafana v2.29.0
published on Friday, May 1, 2026 by pulumiverse

    Manages Grafana Cloud integrations.

    This provider lets you manage Grafana Cloud Integrations. Alerts can optionally be disabled.

    Please note: Grafana Cloud Integrations do not support in-place upgrades, and require a teardown and reapply to resolve version drift. As such it is recommended to have a separate TF plan for integrations to cleanly destroy them as needed.

    Update, only triggered on config change, is implemented as a complete uninstall, then reinstall of the integration in question.

    Required access policy scopes:

    • folders:read
    • folders:write
    • dashboards:read
    • dashboards:write
    • rules:read
    • rules:write

    Based on: https://grafana.com/docs/grafana/latest/alerting/alerting-rules/alerting-migration/#import-rules-with-grafana-alerting

    Note: This resource creates folders and dashboards as part of the integration installation process, which requires additional permissions beyond the basic integration scopes.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumiverse/grafana";
    
    // install linux-node integration
    const linux_node = new grafana.cloud.Integration("linux-node", {slug: "linux-node"});
    // install kafka integration w. alerts disabled
    const kafka = new grafana.cloud.Integration("kafka", {
        slug: "kafka",
        alertsEnabled: false,
    });
    export const linuxNodeIntegration = {
        name: linux_node.name,
        latestVersion: linux_node.latestVersion,
        installedVersion: linux_node.installedVersion,
        dashboardFolder: linux_node.dashboardFolder,
    };
    export const kafkaIntegration = {
        name: kafka.name,
        latestVersion: kafka.latestVersion,
        installedVersion: kafka.installedVersion,
        dashboardFolder: kafka.dashboardFolder,
    };
    
    import pulumi
    import pulumiverse_grafana as grafana
    
    # install linux-node integration
    linux_node = grafana.cloud.Integration("linux-node", slug="linux-node")
    # install kafka integration w. alerts disabled
    kafka = grafana.cloud.Integration("kafka",
        slug="kafka",
        alerts_enabled=False)
    pulumi.export("linuxNodeIntegration", {
        "name": linux_node.name,
        "latestVersion": linux_node.latest_version,
        "installedVersion": linux_node.installed_version,
        "dashboardFolder": linux_node.dashboard_folder,
    })
    pulumi.export("kafkaIntegration", {
        "name": kafka.name,
        "latestVersion": kafka.latest_version,
        "installedVersion": kafka.installed_version,
        "dashboardFolder": kafka.dashboard_folder,
    })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/cloud"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// install linux-node integration
    		linux_node, err := cloud.NewIntegration(ctx, "linux-node", &cloud.IntegrationArgs{
    			Slug: pulumi.String("linux-node"),
    		})
    		if err != nil {
    			return err
    		}
    		// install kafka integration w. alerts disabled
    		kafka, err := cloud.NewIntegration(ctx, "kafka", &cloud.IntegrationArgs{
    			Slug:          pulumi.String("kafka"),
    			AlertsEnabled: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("linuxNodeIntegration", pulumi.StringMap{
    			"name":             linux_node.Name,
    			"latestVersion":    linux_node.LatestVersion,
    			"installedVersion": linux_node.InstalledVersion,
    			"dashboardFolder":  linux_node.DashboardFolder,
    		})
    		ctx.Export("kafkaIntegration", pulumi.StringMap{
    			"name":             kafka.Name,
    			"latestVersion":    kafka.LatestVersion,
    			"installedVersion": kafka.InstalledVersion,
    			"dashboardFolder":  kafka.DashboardFolder,
    		})
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Grafana = Pulumiverse.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        // install linux-node integration
        var linux_node = new Grafana.Cloud.Integration("linux-node", new()
        {
            Slug = "linux-node",
        });
    
        // install kafka integration w. alerts disabled
        var kafka = new Grafana.Cloud.Integration("kafka", new()
        {
            Slug = "kafka",
            AlertsEnabled = false,
        });
    
        return new Dictionary<string, object?>
        {
            ["linuxNodeIntegration"] = 
            {
                { "name", linux_node.Name },
                { "latestVersion", linux_node.LatestVersion },
                { "installedVersion", linux_node.InstalledVersion },
                { "dashboardFolder", linux_node.DashboardFolder },
            },
            ["kafkaIntegration"] = 
            {
                { "name", kafka.Name },
                { "latestVersion", kafka.LatestVersion },
                { "installedVersion", kafka.InstalledVersion },
                { "dashboardFolder", kafka.DashboardFolder },
            },
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.cloud.Integration;
    import com.pulumi.grafana.cloud.IntegrationArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // install linux-node integration
            var linux_node = new Integration("linux-node", IntegrationArgs.builder()
                .slug("linux-node")
                .build());
    
            // install kafka integration w. alerts disabled
            var kafka = new Integration("kafka", IntegrationArgs.builder()
                .slug("kafka")
                .alertsEnabled(false)
                .build());
    
            ctx.export("linuxNodeIntegration", Map.ofEntries(
                Map.entry("name", linux_node.name()),
                Map.entry("latestVersion", linux_node.latestVersion()),
                Map.entry("installedVersion", linux_node.installedVersion()),
                Map.entry("dashboardFolder", linux_node.dashboardFolder())
            ));
            ctx.export("kafkaIntegration", Map.ofEntries(
                Map.entry("name", kafka.name()),
                Map.entry("latestVersion", kafka.latestVersion()),
                Map.entry("installedVersion", kafka.installedVersion()),
                Map.entry("dashboardFolder", kafka.dashboardFolder())
            ));
        }
    }
    
    resources:
      # install linux-node integration
      linux-node:
        type: grafana:cloud:Integration
        properties:
          slug: linux-node
      # install kafka integration w. alerts disabled
      kafka:
        type: grafana:cloud:Integration
        properties:
          slug: kafka
          alertsEnabled: false
    outputs:
      # Output info
      linuxNodeIntegration:
        name: ${["linux-node"].name}
        latestVersion: ${["linux-node"].latestVersion}
        installedVersion: ${["linux-node"].installedVersion}
        dashboardFolder: ${["linux-node"].dashboardFolder}
      kafkaIntegration:
        name: ${kafka.name}
        latestVersion: ${kafka.latestVersion}
        installedVersion: ${kafka.installedVersion}
        dashboardFolder: ${kafka.dashboardFolder}
    

    Create Integration Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Integration(name: string, args: IntegrationArgs, opts?: CustomResourceOptions);
    @overload
    def Integration(resource_name: str,
                    args: IntegrationArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Integration(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    slug: Optional[str] = None,
                    alerts_enabled: Optional[bool] = None)
    func NewIntegration(ctx *Context, name string, args IntegrationArgs, opts ...ResourceOption) (*Integration, error)
    public Integration(string name, IntegrationArgs args, CustomResourceOptions? opts = null)
    public Integration(String name, IntegrationArgs args)
    public Integration(String name, IntegrationArgs args, CustomResourceOptions options)
    
    type: grafana:cloud:Integration
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args IntegrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IntegrationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IntegrationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IntegrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IntegrationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var integrationResource = new Grafana.Cloud.Integration("integrationResource", new()
    {
        Slug = "string",
        AlertsEnabled = false,
    });
    
    example, err := cloud.NewIntegration(ctx, "integrationResource", &cloud.IntegrationArgs{
    	Slug:          pulumi.String("string"),
    	AlertsEnabled: pulumi.Bool(false),
    })
    
    var integrationResource = new com.pulumi.grafana.cloud.Integration("integrationResource", com.pulumi.grafana.cloud.IntegrationArgs.builder()
        .slug("string")
        .alertsEnabled(false)
        .build());
    
    integration_resource = grafana.cloud.Integration("integrationResource",
        slug="string",
        alerts_enabled=False)
    
    const integrationResource = new grafana.cloud.Integration("integrationResource", {
        slug: "string",
        alertsEnabled: false,
    });
    
    type: grafana:cloud:Integration
    properties:
        alertsEnabled: false
        slug: string
    

    Integration Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Integration resource accepts the following input properties:

    Slug string
    The slug of the integration to install (e.g., 'docker', 'linux-node').
    AlertsEnabled bool
    Whether alerts are enabled for this integration.
    Slug string
    The slug of the integration to install (e.g., 'docker', 'linux-node').
    AlertsEnabled bool
    Whether alerts are enabled for this integration.
    slug String
    The slug of the integration to install (e.g., 'docker', 'linux-node').
    alertsEnabled Boolean
    Whether alerts are enabled for this integration.
    slug string
    The slug of the integration to install (e.g., 'docker', 'linux-node').
    alertsEnabled boolean
    Whether alerts are enabled for this integration.
    slug str
    The slug of the integration to install (e.g., 'docker', 'linux-node').
    alerts_enabled bool
    Whether alerts are enabled for this integration.
    slug String
    The slug of the integration to install (e.g., 'docker', 'linux-node').
    alertsEnabled Boolean
    Whether alerts are enabled for this integration.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Integration resource produces the following output properties:

    DashboardFolder string
    The dashboard folder associated with this integration.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstalledVersion string
    The version of the installed integration.
    LatestVersion string
    The latest version available for this integration.
    Name string
    The display name of the integration.
    DashboardFolder string
    The dashboard folder associated with this integration.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstalledVersion string
    The version of the installed integration.
    LatestVersion string
    The latest version available for this integration.
    Name string
    The display name of the integration.
    dashboardFolder String
    The dashboard folder associated with this integration.
    id String
    The provider-assigned unique ID for this managed resource.
    installedVersion String
    The version of the installed integration.
    latestVersion String
    The latest version available for this integration.
    name String
    The display name of the integration.
    dashboardFolder string
    The dashboard folder associated with this integration.
    id string
    The provider-assigned unique ID for this managed resource.
    installedVersion string
    The version of the installed integration.
    latestVersion string
    The latest version available for this integration.
    name string
    The display name of the integration.
    dashboard_folder str
    The dashboard folder associated with this integration.
    id str
    The provider-assigned unique ID for this managed resource.
    installed_version str
    The version of the installed integration.
    latest_version str
    The latest version available for this integration.
    name str
    The display name of the integration.
    dashboardFolder String
    The dashboard folder associated with this integration.
    id String
    The provider-assigned unique ID for this managed resource.
    installedVersion String
    The version of the installed integration.
    latestVersion String
    The latest version available for this integration.
    name String
    The display name of the integration.

    Look up Existing Integration Resource

    Get an existing Integration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IntegrationState, opts?: CustomResourceOptions): Integration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alerts_enabled: Optional[bool] = None,
            dashboard_folder: Optional[str] = None,
            installed_version: Optional[str] = None,
            latest_version: Optional[str] = None,
            name: Optional[str] = None,
            slug: Optional[str] = None) -> Integration
    func GetIntegration(ctx *Context, name string, id IDInput, state *IntegrationState, opts ...ResourceOption) (*Integration, error)
    public static Integration Get(string name, Input<string> id, IntegrationState? state, CustomResourceOptions? opts = null)
    public static Integration get(String name, Output<String> id, IntegrationState state, CustomResourceOptions options)
    resources:  _:    type: grafana:cloud:Integration    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AlertsEnabled bool
    Whether alerts are enabled for this integration.
    DashboardFolder string
    The dashboard folder associated with this integration.
    InstalledVersion string
    The version of the installed integration.
    LatestVersion string
    The latest version available for this integration.
    Name string
    The display name of the integration.
    Slug string
    The slug of the integration to install (e.g., 'docker', 'linux-node').
    AlertsEnabled bool
    Whether alerts are enabled for this integration.
    DashboardFolder string
    The dashboard folder associated with this integration.
    InstalledVersion string
    The version of the installed integration.
    LatestVersion string
    The latest version available for this integration.
    Name string
    The display name of the integration.
    Slug string
    The slug of the integration to install (e.g., 'docker', 'linux-node').
    alertsEnabled Boolean
    Whether alerts are enabled for this integration.
    dashboardFolder String
    The dashboard folder associated with this integration.
    installedVersion String
    The version of the installed integration.
    latestVersion String
    The latest version available for this integration.
    name String
    The display name of the integration.
    slug String
    The slug of the integration to install (e.g., 'docker', 'linux-node').
    alertsEnabled boolean
    Whether alerts are enabled for this integration.
    dashboardFolder string
    The dashboard folder associated with this integration.
    installedVersion string
    The version of the installed integration.
    latestVersion string
    The latest version available for this integration.
    name string
    The display name of the integration.
    slug string
    The slug of the integration to install (e.g., 'docker', 'linux-node').
    alerts_enabled bool
    Whether alerts are enabled for this integration.
    dashboard_folder str
    The dashboard folder associated with this integration.
    installed_version str
    The version of the installed integration.
    latest_version str
    The latest version available for this integration.
    name str
    The display name of the integration.
    slug str
    The slug of the integration to install (e.g., 'docker', 'linux-node').
    alertsEnabled Boolean
    Whether alerts are enabled for this integration.
    dashboardFolder String
    The dashboard folder associated with this integration.
    installedVersion String
    The version of the installed integration.
    latestVersion String
    The latest version available for this integration.
    name String
    The display name of the integration.
    slug String
    The slug of the integration to install (e.g., 'docker', 'linux-node').

    Import

    terraform import grafana_cloud_integration.name "{{ slug }}"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Viewing docs for Grafana v2.29.0
    published on Friday, May 1, 2026 by pulumiverse
      Try Pulumi Cloud free. Your team will thank you.