1. Registry
  2. Packages
  3. Scaleway
  4. API Docs
  5. observability
  6. getGrafanaProductDashboards
Viewing docs for Scaleway v1.62.1
published on Friday, Nov 13, 2026 by pulumiverse
scaleway logo
Viewing docs for Scaleway v1.62.1
published on Friday, Nov 13, 2026 by pulumiverse

    Gets the list of Scaleway product dashboards available in Cockpit Grafana for a project.

    Use this data source to discover dashboard names, titles, URLs, tags, and variables for automation (runbooks, portals). Filter with tags when you only need dashboards for a given product family.

    Refer to Cockpit’s product documentation and API documentation for more information.

    Example Usage

    List all product dashboards

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const all = scaleway.observability.getGrafanaProductDashboards({
        projectId: projectId,
    });
    export const dashboardUrls = all.then(all => .reduce((__obj, d) => ({ ...__obj, [d.name]: d.url }), {}));
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    all = scaleway.observability.get_grafana_product_dashboards(project_id=project_id)
    pulumi.export("dashboardUrls", {d.name: d.url for d in all.dashboards})
    
    Example coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var all = Scaleway.Observability.GetGrafanaProductDashboards.Invoke(new()
        {
            ProjectId = projectId,
        });
    
        return new Dictionary<string, object?>
        {
            ["dashboardUrls"] = .ToDictionary(item => {
                var d = item.Value;
                return d.Name;
            }, item => {
                var d = item.Value;
                return d.Url;
            }),
        };
    });
    
    Example coming soon!
    
    Example coming soon!
    
    terraform {
      required_providers {
        scaleway = {
          source = "pulumi/scaleway"
        }
      }
    }
    
    data "scaleway_observability_grafana_product_dashboards" "all" {
      project_id = projectId
    }
    
    output "dashboardUrls" {
      value = {for d in data.scaleway_observability_grafana_product_dashboards.all.dashboards : d.name => d.url}
    }
    

    Filter by tags

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const rdb = scaleway.observability.getGrafanaProductDashboards({
        projectId: projectId,
        tags: ["rdb"],
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    rdb = scaleway.observability.get_grafana_product_dashboards(project_id=project_id,
        tags=["rdb"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/observability"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := observability.GetGrafanaProductDashboards(ctx, &observability.GetGrafanaProductDashboardsArgs{
    			ProjectId: pulumi.StringRef(projectId),
    			Tags: []string{
    				"rdb",
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var rdb = Scaleway.Observability.GetGrafanaProductDashboards.Invoke(new()
        {
            ProjectId = projectId,
            Tags = new[]
            {
                "rdb",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.observability.ObservabilityFunctions;
    import com.pulumi.scaleway.observability.inputs.GetGrafanaProductDashboardsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            final var rdb = ObservabilityFunctions.getGrafanaProductDashboards(GetGrafanaProductDashboardsArgs.builder()
                .projectId(projectId)
                .tags("rdb")
                .build());
    
        }
    }
    
    variables:
      rdb:
        fn::invoke:
          function: scaleway:observability:getGrafanaProductDashboards
          arguments:
            projectId: ${projectId}
            tags:
              - rdb
    
    terraform {
      required_providers {
        scaleway = {
          source = "pulumi/scaleway"
        }
      }
    }
    
    data "scaleway_observability_grafana_product_dashboards" "rdb" {
      project_id = projectId
      tags       = ["rdb"]
    }
    

    Using getGrafanaProductDashboards

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getGrafanaProductDashboards(args: GetGrafanaProductDashboardsArgs, opts?: InvokeOptions): Promise<GetGrafanaProductDashboardsResult>
    function getGrafanaProductDashboardsOutput(args: GetGrafanaProductDashboardsOutputArgs, opts?: InvokeOutputOptions): Output<GetGrafanaProductDashboardsResult>
    def get_grafana_product_dashboards(project_id: Optional[str] = None,
                                       tags: Optional[Sequence[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetGrafanaProductDashboardsResult
    def get_grafana_product_dashboards_output(project_id: pulumi.Input[Optional[str]] = None,
                                       tags: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                                       opts: Optional[InvokeOutputOptions] = None) -> Output[GetGrafanaProductDashboardsResult]
    func GetGrafanaProductDashboards(ctx *Context, args *GetGrafanaProductDashboardsArgs, opts ...InvokeOption) (*GetGrafanaProductDashboardsResult, error)
    func GetGrafanaProductDashboardsOutput(ctx *Context, args *GetGrafanaProductDashboardsOutputArgs, opts ...InvokeOption) GetGrafanaProductDashboardsResultOutput

    > Note: This function is named GetGrafanaProductDashboards in the Go SDK.

    public static class GetGrafanaProductDashboards 
    {
        public static Task<GetGrafanaProductDashboardsResult> InvokeAsync(GetGrafanaProductDashboardsArgs args, InvokeOptions? opts = null)
        public static Output<GetGrafanaProductDashboardsResult> Invoke(GetGrafanaProductDashboardsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetGrafanaProductDashboardsResult> Invoke(GetGrafanaProductDashboardsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetGrafanaProductDashboardsResult> getGrafanaProductDashboards(GetGrafanaProductDashboardsArgs args, InvokeOptions options)
    public static Output<GetGrafanaProductDashboardsResult> getGrafanaProductDashboards(GetGrafanaProductDashboardsArgs args, InvokeOptions options)
    public static Output<GetGrafanaProductDashboardsResult> getGrafanaProductDashboards(GetGrafanaProductDashboardsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: scaleway:observability/getGrafanaProductDashboards:getGrafanaProductDashboards
      arguments:
        # arguments dictionary
    data "scaleway_observability_get_grafana_product_dashboards" "name" {
        # arguments
    }

    The following arguments are supported:

    ProjectId string
    The ID of the project to list dashboards for. Defaults to the project configured in the provider.
    Tags List<string>
    Filter dashboards by tags (for example rdb, lb).
    ProjectId string
    The ID of the project to list dashboards for. Defaults to the project configured in the provider.
    Tags []string
    Filter dashboards by tags (for example rdb, lb).
    project_id string
    The ID of the project to list dashboards for. Defaults to the project configured in the provider.
    tags list(string)
    Filter dashboards by tags (for example rdb, lb).
    projectId String
    The ID of the project to list dashboards for. Defaults to the project configured in the provider.
    tags List<String>
    Filter dashboards by tags (for example rdb, lb).
    projectId string
    The ID of the project to list dashboards for. Defaults to the project configured in the provider.
    tags string[]
    Filter dashboards by tags (for example rdb, lb).
    project_id str
    The ID of the project to list dashboards for. Defaults to the project configured in the provider.
    tags Sequence[str]
    Filter dashboards by tags (for example rdb, lb).
    projectId String
    The ID of the project to list dashboards for. Defaults to the project configured in the provider.
    tags List<String>
    Filter dashboards by tags (for example rdb, lb).

    getGrafanaProductDashboards Result

    The following output properties are available:

    Dashboards List<Pulumiverse.Scaleway.Observability.Outputs.GetGrafanaProductDashboardsDashboard>
    List of Grafana product dashboards. (see below)
    Id string
    The project ID.
    Names List<string>
    List of dashboard names (useful with scaleway.observability.getGrafanaProductDashboard).
    ProjectId string
    Tags List<string>
    Dashboard tags.
    Dashboards []GetGrafanaProductDashboardsDashboard
    List of Grafana product dashboards. (see below)
    Id string
    The project ID.
    Names []string
    List of dashboard names (useful with scaleway.observability.getGrafanaProductDashboard).
    ProjectId string
    Tags []string
    Dashboard tags.
    dashboards list(object)
    List of Grafana product dashboards. (see below)
    id string
    The project ID.
    names list(string)
    List of dashboard names (useful with scaleway.observability.getGrafanaProductDashboard).
    project_id string
    tags list(string)
    Dashboard tags.
    dashboards List<GetGrafanaProductDashboardsDashboard>
    List of Grafana product dashboards. (see below)
    id String
    The project ID.
    names List<String>
    List of dashboard names (useful with scaleway.observability.getGrafanaProductDashboard).
    projectId String
    tags List<String>
    Dashboard tags.
    dashboards GetGrafanaProductDashboardsDashboard[]
    List of Grafana product dashboards. (see below)
    id string
    The project ID.
    names string[]
    List of dashboard names (useful with scaleway.observability.getGrafanaProductDashboard).
    projectId string
    tags string[]
    Dashboard tags.
    dashboards Sequence[GetGrafanaProductDashboardsDashboard]
    List of Grafana product dashboards. (see below)
    id str
    The project ID.
    names Sequence[str]
    List of dashboard names (useful with scaleway.observability.getGrafanaProductDashboard).
    project_id str
    tags Sequence[str]
    Dashboard tags.
    dashboards List<Property Map>
    List of Grafana product dashboards. (see below)
    id String
    The project ID.
    names List<String>
    List of dashboard names (useful with scaleway.observability.getGrafanaProductDashboard).
    projectId String
    tags List<String>
    Dashboard tags.

    Supporting Types

    GetGrafanaProductDashboardsDashboard

    Name string
    Dashboard name.
    Tags List<string>
    Filter dashboards by tags (for example rdb, lb).
    Title string
    Human-readable dashboard title.
    Url string
    URL to open the dashboard in Grafana.
    Variables List<string>
    Dashboard variables.
    Name string
    Dashboard name.
    Tags []string
    Filter dashboards by tags (for example rdb, lb).
    Title string
    Human-readable dashboard title.
    Url string
    URL to open the dashboard in Grafana.
    Variables []string
    Dashboard variables.
    name string
    Dashboard name.
    tags list(string)
    Filter dashboards by tags (for example rdb, lb).
    title string
    Human-readable dashboard title.
    url string
    URL to open the dashboard in Grafana.
    variables list(string)
    Dashboard variables.
    name String
    Dashboard name.
    tags List<String>
    Filter dashboards by tags (for example rdb, lb).
    title String
    Human-readable dashboard title.
    url String
    URL to open the dashboard in Grafana.
    variables List<String>
    Dashboard variables.
    name string
    Dashboard name.
    tags string[]
    Filter dashboards by tags (for example rdb, lb).
    title string
    Human-readable dashboard title.
    url string
    URL to open the dashboard in Grafana.
    variables string[]
    Dashboard variables.
    name str
    Dashboard name.
    tags Sequence[str]
    Filter dashboards by tags (for example rdb, lb).
    title str
    Human-readable dashboard title.
    url str
    URL to open the dashboard in Grafana.
    variables Sequence[str]
    Dashboard variables.
    name String
    Dashboard name.
    tags List<String>
    Filter dashboards by tags (for example rdb, lb).
    title String
    Human-readable dashboard title.
    url String
    URL to open the dashboard in Grafana.
    variables List<String>
    Dashboard variables.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Viewing docs for Scaleway v1.62.1
    published on Friday, Nov 13, 2026 by pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial