Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse
grafana.cloud.getStack
Explore with Pulumi AI
Data source for Grafana Stack
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumi/grafana";
import * as grafana from "@pulumiverse/grafana";
const testStack = new grafana.cloud.Stack("test", {
    name: "gcloudstacktest",
    slug: "gcloudstacktest",
    regionSlug: "eu",
    description: "Test Grafana Cloud Stack",
});
const test = grafana.cloud.getStackOutput({
    slug: testStack.slug,
});
import pulumi
import pulumi_grafana as grafana
import pulumiverse_grafana as grafana
test_stack = grafana.cloud.Stack("test",
    name="gcloudstacktest",
    slug="gcloudstacktest",
    region_slug="eu",
    description="Test Grafana Cloud Stack")
test = grafana.cloud.get_stack_output(slug=test_stack.slug)
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/cloud"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testStack, err := cloud.NewStack(ctx, "test", &cloud.StackArgs{
			Name:        pulumi.String("gcloudstacktest"),
			Slug:        pulumi.String("gcloudstacktest"),
			RegionSlug:  pulumi.String("eu"),
			Description: pulumi.String("Test Grafana Cloud Stack"),
		})
		if err != nil {
			return err
		}
		_ = cloud.LookupStackOutput(ctx, cloud.GetStackOutputArgs{
			Slug: testStack.Slug,
		}, nil)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumi.Grafana;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() => 
{
    var testStack = new Grafana.Cloud.Stack("test", new()
    {
        Name = "gcloudstacktest",
        Slug = "gcloudstacktest",
        RegionSlug = "eu",
        Description = "Test Grafana Cloud Stack",
    });
    var test = Grafana.Cloud.GetStack.Invoke(new()
    {
        Slug = testStack.Slug,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.cloud.Stack;
import com.pulumi.grafana.cloud.StackArgs;
import com.pulumi.grafana.cloud.CloudFunctions;
import com.pulumi.grafana.cloud.inputs.GetStackArgs;
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) {
        var testStack = new Stack("testStack", StackArgs.builder()
            .name("gcloudstacktest")
            .slug("gcloudstacktest")
            .regionSlug("eu")
            .description("Test Grafana Cloud Stack")
            .build());
        final var test = CloudFunctions.getStack(GetStackArgs.builder()
            .slug(testStack.slug())
            .build());
    }
}
resources:
  testStack:
    type: grafana:cloud:Stack
    name: test
    properties:
      name: gcloudstacktest
      slug: gcloudstacktest
      regionSlug: eu
      description: Test Grafana Cloud Stack
variables:
  test:
    fn::invoke:
      Function: grafana:cloud:getStack
      Arguments:
        slug: ${testStack.slug}
Using getStack
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 getStack(args: GetStackArgs, opts?: InvokeOptions): Promise<GetStackResult>
function getStackOutput(args: GetStackOutputArgs, opts?: InvokeOptions): Output<GetStackResult>def get_stack(slug: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetStackResult
def get_stack_output(slug: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetStackResult]func LookupStack(ctx *Context, args *LookupStackArgs, opts ...InvokeOption) (*LookupStackResult, error)
func LookupStackOutput(ctx *Context, args *LookupStackOutputArgs, opts ...InvokeOption) LookupStackResultOutput> Note: This function is named LookupStack in the Go SDK.
public static class GetStack 
{
    public static Task<GetStackResult> InvokeAsync(GetStackArgs args, InvokeOptions? opts = null)
    public static Output<GetStackResult> Invoke(GetStackInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStackResult> getStack(GetStackArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: grafana:cloud/getStack:getStack
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Slug string
 - Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
 
- Slug string
 - Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
 
- slug String
 - Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
 
- slug string
 - Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
 
- slug str
 - Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
 
- slug String
 - Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
 
getStack Result
The following output properties are available:
- Alertmanager
Name string - Name of the Alertmanager instance configured for this stack.
 - Alertmanager
Status string - Status of the Alertmanager instance configured for this stack.
 - Alertmanager
Url string - Base URL of the Alertmanager instance configured for this stack.
 - Alertmanager
User intId  - User ID of the Alertmanager instance configured for this stack.
 - Description string
 - Description of stack.
 - Graphite
Name string - Graphite
Status string - Graphite
Url string - Graphite
User intId  - Id string
 - The stack id assigned to this stack by Grafana.
 - Influx
Url string - Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (
prometheus_user_idattribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this. - Labels Dictionary<string, string>
 - A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/-.]+$" and stacks cannot have more than 10 labels.
 - Logs
Name string - Logs
Status string - Logs
Url string - Logs
User intId  - Name string
 - Name of stack. Conventionally matches the url of the instance (e.g. 
<stack_slug>.grafana.net). - Org
Id int - Organization id to assign to this stack.
 - Org
Name string - Organization name to assign to this stack.
 - Org
Slug string - Organization slug to assign to this stack.
 - Otlp
Url string - Base URL of the OTLP instance configured for this stack. The username is the stack's ID (
idattribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this. - Profiles
Name string - Profiles
Status string - Profiles
Url string - Profiles
User intId  - Prometheus
Name string - Prometheus name for this instance.
 - Prometheus
Remote stringEndpoint  - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
 - Prometheus
Remote stringWrite Endpoint  - Use this URL to send prometheus metrics to Grafana cloud
 - Prometheus
Status string - Prometheus status for this instance.
 - Prometheus
Url string - Prometheus url for this instance.
 - Prometheus
User intId  - Prometheus user ID. Used for e.g. remote_write.
 - Region
Slug string - The region this stack is deployed to.
 - Slug string
 - Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
 - Status string
 - Status of the stack.
 - Traces
Name string - Traces
Status string - Traces
Url string - Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append 
/tempoto the URL. - Traces
User intId  - Url string
 - Custom URL for the Grafana instance. Must have a CNAME setup to point to 
.grafana.netbefore creating the stack 
- Alertmanager
Name string - Name of the Alertmanager instance configured for this stack.
 - Alertmanager
Status string - Status of the Alertmanager instance configured for this stack.
 - Alertmanager
Url string - Base URL of the Alertmanager instance configured for this stack.
 - Alertmanager
User intId  - User ID of the Alertmanager instance configured for this stack.
 - Description string
 - Description of stack.
 - Graphite
Name string - Graphite
Status string - Graphite
Url string - Graphite
User intId  - Id string
 - The stack id assigned to this stack by Grafana.
 - Influx
Url string - Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (
prometheus_user_idattribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this. - Labels map[string]string
 - A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/-.]+$" and stacks cannot have more than 10 labels.
 - Logs
Name string - Logs
Status string - Logs
Url string - Logs
User intId  - Name string
 - Name of stack. Conventionally matches the url of the instance (e.g. 
<stack_slug>.grafana.net). - Org
Id int - Organization id to assign to this stack.
 - Org
Name string - Organization name to assign to this stack.
 - Org
Slug string - Organization slug to assign to this stack.
 - Otlp
Url string - Base URL of the OTLP instance configured for this stack. The username is the stack's ID (
idattribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this. - Profiles
Name string - Profiles
Status string - Profiles
Url string - Profiles
User intId  - Prometheus
Name string - Prometheus name for this instance.
 - Prometheus
Remote stringEndpoint  - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
 - Prometheus
Remote stringWrite Endpoint  - Use this URL to send prometheus metrics to Grafana cloud
 - Prometheus
Status string - Prometheus status for this instance.
 - Prometheus
Url string - Prometheus url for this instance.
 - Prometheus
User intId  - Prometheus user ID. Used for e.g. remote_write.
 - Region
Slug string - The region this stack is deployed to.
 - Slug string
 - Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
 - Status string
 - Status of the stack.
 - Traces
Name string - Traces
Status string - Traces
Url string - Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append 
/tempoto the URL. - Traces
User intId  - Url string
 - Custom URL for the Grafana instance. Must have a CNAME setup to point to 
.grafana.netbefore creating the stack 
- alertmanager
Name String - Name of the Alertmanager instance configured for this stack.
 - alertmanager
Status String - Status of the Alertmanager instance configured for this stack.
 - alertmanager
Url String - Base URL of the Alertmanager instance configured for this stack.
 - alertmanager
User IntegerId  - User ID of the Alertmanager instance configured for this stack.
 - description String
 - Description of stack.
 - graphite
Name String - graphite
Status String - graphite
Url String - graphite
User IntegerId  - id String
 - The stack id assigned to this stack by Grafana.
 - influx
Url String - Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (
prometheus_user_idattribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this. - labels Map<String,String>
 - A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/-.]+$" and stacks cannot have more than 10 labels.
 - logs
Name String - logs
Status String - logs
Url String - logs
User IntegerId  - name String
 - Name of stack. Conventionally matches the url of the instance (e.g. 
<stack_slug>.grafana.net). - org
Id Integer - Organization id to assign to this stack.
 - org
Name String - Organization name to assign to this stack.
 - org
Slug String - Organization slug to assign to this stack.
 - otlp
Url String - Base URL of the OTLP instance configured for this stack. The username is the stack's ID (
idattribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this. - profiles
Name String - profiles
Status String - profiles
Url String - profiles
User IntegerId  - prometheus
Name String - Prometheus name for this instance.
 - prometheus
Remote StringEndpoint  - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
 - prometheus
Remote StringWrite Endpoint  - Use this URL to send prometheus metrics to Grafana cloud
 - prometheus
Status String - Prometheus status for this instance.
 - prometheus
Url String - Prometheus url for this instance.
 - prometheus
User IntegerId  - Prometheus user ID. Used for e.g. remote_write.
 - region
Slug String - The region this stack is deployed to.
 - slug String
 - Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
 - status String
 - Status of the stack.
 - traces
Name String - traces
Status String - traces
Url String - Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append 
/tempoto the URL. - traces
User IntegerId  - url String
 - Custom URL for the Grafana instance. Must have a CNAME setup to point to 
.grafana.netbefore creating the stack 
- alertmanager
Name string - Name of the Alertmanager instance configured for this stack.
 - alertmanager
Status string - Status of the Alertmanager instance configured for this stack.
 - alertmanager
Url string - Base URL of the Alertmanager instance configured for this stack.
 - alertmanager
User numberId  - User ID of the Alertmanager instance configured for this stack.
 - description string
 - Description of stack.
 - graphite
Name string - graphite
Status string - graphite
Url string - graphite
User numberId  - id string
 - The stack id assigned to this stack by Grafana.
 - influx
Url string - Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (
prometheus_user_idattribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this. - labels {[key: string]: string}
 - A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/-.]+$" and stacks cannot have more than 10 labels.
 - logs
Name string - logs
Status string - logs
Url string - logs
User numberId  - name string
 - Name of stack. Conventionally matches the url of the instance (e.g. 
<stack_slug>.grafana.net). - org
Id number - Organization id to assign to this stack.
 - org
Name string - Organization name to assign to this stack.
 - org
Slug string - Organization slug to assign to this stack.
 - otlp
Url string - Base URL of the OTLP instance configured for this stack. The username is the stack's ID (
idattribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this. - profiles
Name string - profiles
Status string - profiles
Url string - profiles
User numberId  - prometheus
Name string - Prometheus name for this instance.
 - prometheus
Remote stringEndpoint  - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
 - prometheus
Remote stringWrite Endpoint  - Use this URL to send prometheus metrics to Grafana cloud
 - prometheus
Status string - Prometheus status for this instance.
 - prometheus
Url string - Prometheus url for this instance.
 - prometheus
User numberId  - Prometheus user ID. Used for e.g. remote_write.
 - region
Slug string - The region this stack is deployed to.
 - slug string
 - Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
 - status string
 - Status of the stack.
 - traces
Name string - traces
Status string - traces
Url string - Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append 
/tempoto the URL. - traces
User numberId  - url string
 - Custom URL for the Grafana instance. Must have a CNAME setup to point to 
.grafana.netbefore creating the stack 
- alertmanager_
name str - Name of the Alertmanager instance configured for this stack.
 - alertmanager_
status str - Status of the Alertmanager instance configured for this stack.
 - alertmanager_
url str - Base URL of the Alertmanager instance configured for this stack.
 - alertmanager_
user_ intid  - User ID of the Alertmanager instance configured for this stack.
 - description str
 - Description of stack.
 - graphite_
name str - graphite_
status str - graphite_
url str - graphite_
user_ intid  - id str
 - The stack id assigned to this stack by Grafana.
 - influx_
url str - Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (
prometheus_user_idattribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this. - labels Mapping[str, str]
 - A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/-.]+$" and stacks cannot have more than 10 labels.
 - logs_
name str - logs_
status str - logs_
url str - logs_
user_ intid  - name str
 - Name of stack. Conventionally matches the url of the instance (e.g. 
<stack_slug>.grafana.net). - org_
id int - Organization id to assign to this stack.
 - org_
name str - Organization name to assign to this stack.
 - org_
slug str - Organization slug to assign to this stack.
 - otlp_
url str - Base URL of the OTLP instance configured for this stack. The username is the stack's ID (
idattribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this. - profiles_
name str - profiles_
status str - profiles_
url str - profiles_
user_ intid  - prometheus_
name str - Prometheus name for this instance.
 - prometheus_
remote_ strendpoint  - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
 - prometheus_
remote_ strwrite_ endpoint  - Use this URL to send prometheus metrics to Grafana cloud
 - prometheus_
status str - Prometheus status for this instance.
 - prometheus_
url str - Prometheus url for this instance.
 - prometheus_
user_ intid  - Prometheus user ID. Used for e.g. remote_write.
 - region_
slug str - The region this stack is deployed to.
 - slug str
 - Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
 - status str
 - Status of the stack.
 - traces_
name str - traces_
status str - traces_
url str - Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append 
/tempoto the URL. - traces_
user_ intid  - url str
 - Custom URL for the Grafana instance. Must have a CNAME setup to point to 
.grafana.netbefore creating the stack 
- alertmanager
Name String - Name of the Alertmanager instance configured for this stack.
 - alertmanager
Status String - Status of the Alertmanager instance configured for this stack.
 - alertmanager
Url String - Base URL of the Alertmanager instance configured for this stack.
 - alertmanager
User NumberId  - User ID of the Alertmanager instance configured for this stack.
 - description String
 - Description of stack.
 - graphite
Name String - graphite
Status String - graphite
Url String - graphite
User NumberId  - id String
 - The stack id assigned to this stack by Grafana.
 - influx
Url String - Base URL of the InfluxDB instance configured for this stack. The username is the same as the metrics' (
prometheus_user_idattribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-influxdb/push-from-telegraf/ for docs on how to use this. - labels Map<String>
 - A map of labels to assign to the stack. Label keys and values must match the following regexp: "^[a-zA-Z0-9/-.]+$" and stacks cannot have more than 10 labels.
 - logs
Name String - logs
Status String - logs
Url String - logs
User NumberId  - name String
 - Name of stack. Conventionally matches the url of the instance (e.g. 
<stack_slug>.grafana.net). - org
Id Number - Organization id to assign to this stack.
 - org
Name String - Organization name to assign to this stack.
 - org
Slug String - Organization slug to assign to this stack.
 - otlp
Url String - Base URL of the OTLP instance configured for this stack. The username is the stack's ID (
idattribute of this resource). See https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ for docs on how to use this. - profiles
Name String - profiles
Status String - profiles
Url String - profiles
User NumberId  - prometheus
Name String - Prometheus name for this instance.
 - prometheus
Remote StringEndpoint  - Use this URL to query hosted metrics data e.g. Prometheus data source in Grafana
 - prometheus
Remote StringWrite Endpoint  - Use this URL to send prometheus metrics to Grafana cloud
 - prometheus
Status String - Prometheus status for this instance.
 - prometheus
Url String - Prometheus url for this instance.
 - prometheus
User NumberId  - Prometheus user ID. Used for e.g. remote_write.
 - region
Slug String - The region this stack is deployed to.
 - slug String
 - Subdomain that the Grafana instance will be available at (i.e. setting slug to “\n\n” will make the instance available at “https://\n\n.grafana.net".
 - status String
 - Status of the stack.
 - traces
Name String - traces
Status String - traces
Url String - Base URL of the Traces instance configured for this stack. To use this in the Tempo data source in Grafana, append 
/tempoto the URL. - traces
User NumberId  - url String
 - Custom URL for the Grafana instance. Must have a CNAME setup to point to 
.grafana.netbefore creating the stack 
Package Details
- Repository
 - grafana pulumiverse/pulumi-grafana
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
grafanaTerraform Provider.