1. Packages
  2. Grafana Cloud
  3. API Docs
  4. SyntheticMonitoringInstallation
Grafana v0.16.3 published on Monday, Apr 7, 2025 by pulumiverse

grafana.SyntheticMonitoringInstallation

Explore with Pulumi AI

Deprecated: grafana.index/syntheticmonitoringinstallation.SyntheticMonitoringInstallation has been deprecated in favor of grafana.syntheticmonitoring/installation.Installation

Sets up Synthetic Monitoring on a Grafana cloud stack and generates a token. Once a Grafana Cloud stack is created, a user can either use this resource or go into the UI to install synthetic monitoring. This resource cannot be imported but it can be used on an existing Synthetic Monitoring installation without issues.

Note that this resource must be used on a provider configured with Grafana Cloud credentials.

Required access policy scopes:

  • stacks:read

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumi/grafana";
import * as grafana from "@pulumiverse/grafana";

const config = new pulumi.Config();
// Cloud Access Policy token for Grafana Cloud with the following scopes: accesspolicies:read|write|delete, stacks:read|write|delete
const cloudAccessPolicyToken = config.requireObject("cloudAccessPolicyToken");
const stackSlug = config.requireObject("stackSlug");
const cloudRegion = config.get("cloudRegion") || "prod-us-east-0";
const smStack = new grafana.cloud.Stack("sm_stack", {
    name: stackSlug,
    slug: stackSlug,
    regionSlug: cloudRegion,
});
// Step 2: Install Synthetic Monitoring on the stack
const smMetricsPublish = new grafana.cloud.AccessPolicy("sm_metrics_publish", {
    region: cloudRegion,
    name: "metric-publisher-for-sm",
    scopes: [
        "metrics:write",
        "stacks:read",
        "logs:write",
        "traces:write",
    ],
    realms: [{
        type: "stack",
        identifier: smStack.id,
    }],
});
const smMetricsPublishAccessPolicyToken = new grafana.cloud.AccessPolicyToken("sm_metrics_publish", {
    region: cloudRegion,
    accessPolicyId: smMetricsPublish.policyId,
    name: "metric-publisher-for-sm",
});
const smStackInstallation = new grafana.syntheticmonitoring.Installation("sm_stack", {
    stackId: smStack.id,
    metricsPublisherKey: smMetricsPublishAccessPolicyToken.token,
});
const main = grafana.syntheticMonitoring.getProbes({});
Copy
import pulumi
import pulumi_grafana as grafana
import pulumiverse_grafana as grafana

config = pulumi.Config()
# Cloud Access Policy token for Grafana Cloud with the following scopes: accesspolicies:read|write|delete, stacks:read|write|delete
cloud_access_policy_token = config.require_object("cloudAccessPolicyToken")
stack_slug = config.require_object("stackSlug")
cloud_region = config.get("cloudRegion")
if cloud_region is None:
    cloud_region = "prod-us-east-0"
sm_stack = grafana.cloud.Stack("sm_stack",
    name=stack_slug,
    slug=stack_slug,
    region_slug=cloud_region)
# Step 2: Install Synthetic Monitoring on the stack
sm_metrics_publish = grafana.cloud.AccessPolicy("sm_metrics_publish",
    region=cloud_region,
    name="metric-publisher-for-sm",
    scopes=[
        "metrics:write",
        "stacks:read",
        "logs:write",
        "traces:write",
    ],
    realms=[{
        "type": "stack",
        "identifier": sm_stack.id,
    }])
sm_metrics_publish_access_policy_token = grafana.cloud.AccessPolicyToken("sm_metrics_publish",
    region=cloud_region,
    access_policy_id=sm_metrics_publish.policy_id,
    name="metric-publisher-for-sm")
sm_stack_installation = grafana.synthetic_monitoring.Installation("sm_stack",
    stack_id=sm_stack.id,
    metrics_publisher_key=sm_metrics_publish_access_policy_token.token)
main = grafana.syntheticMonitoring.get_probes()
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/cloud"
	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/syntheticmonitoring"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		// Cloud Access Policy token for Grafana Cloud with the following scopes: accesspolicies:read|write|delete, stacks:read|write|delete
		cloudAccessPolicyToken := cfg.RequireObject("cloudAccessPolicyToken")
		stackSlug := cfg.RequireObject("stackSlug")
		cloudRegion := "prod-us-east-0"
		if param := cfg.Get("cloudRegion"); param != "" {
			cloudRegion = param
		}
		smStack, err := cloud.NewStack(ctx, "sm_stack", &cloud.StackArgs{
			Name:       pulumi.Any(stackSlug),
			Slug:       pulumi.Any(stackSlug),
			RegionSlug: pulumi.String(cloudRegion),
		})
		if err != nil {
			return err
		}
		// Step 2: Install Synthetic Monitoring on the stack
		smMetricsPublish, err := cloud.NewAccessPolicy(ctx, "sm_metrics_publish", &cloud.AccessPolicyArgs{
			Region: pulumi.String(cloudRegion),
			Name:   pulumi.String("metric-publisher-for-sm"),
			Scopes: pulumi.StringArray{
				pulumi.String("metrics:write"),
				pulumi.String("stacks:read"),
				pulumi.String("logs:write"),
				pulumi.String("traces:write"),
			},
			Realms: cloud.AccessPolicyRealmArray{
				&cloud.AccessPolicyRealmArgs{
					Type:       pulumi.String("stack"),
					Identifier: smStack.ID(),
				},
			},
		})
		if err != nil {
			return err
		}
		smMetricsPublishAccessPolicyToken, err := cloud.NewAccessPolicyToken(ctx, "sm_metrics_publish", &cloud.AccessPolicyTokenArgs{
			Region:         pulumi.String(cloudRegion),
			AccessPolicyId: smMetricsPublish.PolicyId,
			Name:           pulumi.String("metric-publisher-for-sm"),
		})
		if err != nil {
			return err
		}
		_, err = syntheticmonitoring.NewInstallation(ctx, "sm_stack", &syntheticmonitoring.InstallationArgs{
			StackId:             smStack.ID(),
			MetricsPublisherKey: smMetricsPublishAccessPolicyToken.Token,
		})
		if err != nil {
			return err
		}
		_, err = syntheticmonitoring.GetProbes(ctx, &syntheticmonitoring.GetProbesArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumi.Grafana;
using Grafana = Pulumiverse.Grafana;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    // Cloud Access Policy token for Grafana Cloud with the following scopes: accesspolicies:read|write|delete, stacks:read|write|delete
    var cloudAccessPolicyToken = config.RequireObject<dynamic>("cloudAccessPolicyToken");
    var stackSlug = config.RequireObject<dynamic>("stackSlug");
    var cloudRegion = config.Get("cloudRegion") ?? "prod-us-east-0";
    var smStack = new Grafana.Cloud.Stack("sm_stack", new()
    {
        Name = stackSlug,
        Slug = stackSlug,
        RegionSlug = cloudRegion,
    });

    // Step 2: Install Synthetic Monitoring on the stack
    var smMetricsPublish = new Grafana.Cloud.AccessPolicy("sm_metrics_publish", new()
    {
        Region = cloudRegion,
        Name = "metric-publisher-for-sm",
        Scopes = new[]
        {
            "metrics:write",
            "stacks:read",
            "logs:write",
            "traces:write",
        },
        Realms = new[]
        {
            new Grafana.Cloud.Inputs.AccessPolicyRealmArgs
            {
                Type = "stack",
                Identifier = smStack.Id,
            },
        },
    });

    var smMetricsPublishAccessPolicyToken = new Grafana.Cloud.AccessPolicyToken("sm_metrics_publish", new()
    {
        Region = cloudRegion,
        AccessPolicyId = smMetricsPublish.PolicyId,
        Name = "metric-publisher-for-sm",
    });

    var smStackInstallation = new Grafana.SyntheticMonitoring.Installation("sm_stack", new()
    {
        StackId = smStack.Id,
        MetricsPublisherKey = smMetricsPublishAccessPolicyToken.Token,
    });

    var main = Grafana.SyntheticMonitoring.GetProbes.Invoke();

});
Copy
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.AccessPolicy;
import com.pulumi.grafana.cloud.AccessPolicyArgs;
import com.pulumi.grafana.cloud.inputs.AccessPolicyRealmArgs;
import com.pulumi.grafana.cloud.AccessPolicyToken;
import com.pulumi.grafana.cloud.AccessPolicyTokenArgs;
import com.pulumi.grafana.syntheticMonitoring.Installation;
import com.pulumi.grafana.syntheticMonitoring.InstallationArgs;
import com.pulumi.grafana.syntheticMonitoring.SyntheticMonitoringFunctions;
import com.pulumi.grafana.syntheticMonitoring.inputs.GetProbesArgs;
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) {
        final var config = ctx.config();
        final var cloudAccessPolicyToken = config.get("cloudAccessPolicyToken");
        final var stackSlug = config.get("stackSlug");
        final var cloudRegion = config.get("cloudRegion").orElse("prod-us-east-0");
        var smStack = new Stack("smStack", StackArgs.builder()
            .name(stackSlug)
            .slug(stackSlug)
            .regionSlug(cloudRegion)
            .build());

        // Step 2: Install Synthetic Monitoring on the stack
        var smMetricsPublish = new AccessPolicy("smMetricsPublish", AccessPolicyArgs.builder()
            .region(cloudRegion)
            .name("metric-publisher-for-sm")
            .scopes(            
                "metrics:write",
                "stacks:read",
                "logs:write",
                "traces:write")
            .realms(AccessPolicyRealmArgs.builder()
                .type("stack")
                .identifier(smStack.id())
                .build())
            .build());

        var smMetricsPublishAccessPolicyToken = new AccessPolicyToken("smMetricsPublishAccessPolicyToken", AccessPolicyTokenArgs.builder()
            .region(cloudRegion)
            .accessPolicyId(smMetricsPublish.policyId())
            .name("metric-publisher-for-sm")
            .build());

        var smStackInstallation = new Installation("smStackInstallation", InstallationArgs.builder()
            .stackId(smStack.id())
            .metricsPublisherKey(smMetricsPublishAccessPolicyToken.token())
            .build());

        final var main = SyntheticMonitoringFunctions.getProbes();

    }
}
Copy
configuration:
  cloudAccessPolicyToken:
    type: dynamic
  stackSlug:
    type: dynamic
  cloudRegion:
    type: string
    default: prod-us-east-0
resources:
  smStack:
    type: grafana:cloud:Stack
    name: sm_stack
    properties:
      name: ${stackSlug}
      slug: ${stackSlug}
      regionSlug: ${cloudRegion}
  # Step 2: Install Synthetic Monitoring on the stack
  smMetricsPublish:
    type: grafana:cloud:AccessPolicy
    name: sm_metrics_publish
    properties:
      region: ${cloudRegion}
      name: metric-publisher-for-sm
      scopes:
        - metrics:write
        - stacks:read
        - logs:write
        - traces:write
      realms:
        - type: stack
          identifier: ${smStack.id}
  smMetricsPublishAccessPolicyToken:
    type: grafana:cloud:AccessPolicyToken
    name: sm_metrics_publish
    properties:
      region: ${cloudRegion}
      accessPolicyId: ${smMetricsPublish.policyId}
      name: metric-publisher-for-sm
  smStackInstallation:
    type: grafana:syntheticMonitoring:Installation
    name: sm_stack
    properties:
      stackId: ${smStack.id}
      metricsPublisherKey: ${smMetricsPublishAccessPolicyToken.token}
variables:
  main:
    fn::invoke:
      function: grafana:syntheticMonitoring:getProbes
      arguments: {}
Copy

Create SyntheticMonitoringInstallation Resource

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

Constructor syntax

new SyntheticMonitoringInstallation(name: string, args: SyntheticMonitoringInstallationArgs, opts?: CustomResourceOptions);
@overload
def SyntheticMonitoringInstallation(resource_name: str,
                                    args: SyntheticMonitoringInstallationArgs,
                                    opts: Optional[ResourceOptions] = None)

@overload
def SyntheticMonitoringInstallation(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    metrics_publisher_key: Optional[str] = None,
                                    stack_id: Optional[str] = None,
                                    stack_sm_api_url: Optional[str] = None)
func NewSyntheticMonitoringInstallation(ctx *Context, name string, args SyntheticMonitoringInstallationArgs, opts ...ResourceOption) (*SyntheticMonitoringInstallation, error)
public SyntheticMonitoringInstallation(string name, SyntheticMonitoringInstallationArgs args, CustomResourceOptions? opts = null)
public SyntheticMonitoringInstallation(String name, SyntheticMonitoringInstallationArgs args)
public SyntheticMonitoringInstallation(String name, SyntheticMonitoringInstallationArgs args, CustomResourceOptions options)
type: grafana:SyntheticMonitoringInstallation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

SyntheticMonitoringInstallation 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 SyntheticMonitoringInstallation resource accepts the following input properties:

MetricsPublisherKey
This property is required.
Changes to this property will trigger replacement.
string
The Grafana Cloud access policy with the following scopes: stacks:read, metrics:write, logs:write, traces:write. This is used to publish metrics and logs to Grafana Cloud stack.
StackId
This property is required.
Changes to this property will trigger replacement.
string
The ID or slug of the stack to install SM on.
StackSmApiUrl Changes to this property will trigger replacement. string
The URL of the SM API to install SM on. This depends on the stack region, find the list of API URLs here: https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/set-up/set-up-private-probes/#probe-api-server-url. A static mapping exists in the provider but it may not contain all the regions. If it does contain the stack's region, this field is computed automatically and readable.
MetricsPublisherKey
This property is required.
Changes to this property will trigger replacement.
string
The Grafana Cloud access policy with the following scopes: stacks:read, metrics:write, logs:write, traces:write. This is used to publish metrics and logs to Grafana Cloud stack.
StackId
This property is required.
Changes to this property will trigger replacement.
string
The ID or slug of the stack to install SM on.
StackSmApiUrl Changes to this property will trigger replacement. string
The URL of the SM API to install SM on. This depends on the stack region, find the list of API URLs here: https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/set-up/set-up-private-probes/#probe-api-server-url. A static mapping exists in the provider but it may not contain all the regions. If it does contain the stack's region, this field is computed automatically and readable.
metricsPublisherKey
This property is required.
Changes to this property will trigger replacement.
String
The Grafana Cloud access policy with the following scopes: stacks:read, metrics:write, logs:write, traces:write. This is used to publish metrics and logs to Grafana Cloud stack.
stackId
This property is required.
Changes to this property will trigger replacement.
String
The ID or slug of the stack to install SM on.
stackSmApiUrl Changes to this property will trigger replacement. String
The URL of the SM API to install SM on. This depends on the stack region, find the list of API URLs here: https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/set-up/set-up-private-probes/#probe-api-server-url. A static mapping exists in the provider but it may not contain all the regions. If it does contain the stack's region, this field is computed automatically and readable.
metricsPublisherKey
This property is required.
Changes to this property will trigger replacement.
string
The Grafana Cloud access policy with the following scopes: stacks:read, metrics:write, logs:write, traces:write. This is used to publish metrics and logs to Grafana Cloud stack.
stackId
This property is required.
Changes to this property will trigger replacement.
string
The ID or slug of the stack to install SM on.
stackSmApiUrl Changes to this property will trigger replacement. string
The URL of the SM API to install SM on. This depends on the stack region, find the list of API URLs here: https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/set-up/set-up-private-probes/#probe-api-server-url. A static mapping exists in the provider but it may not contain all the regions. If it does contain the stack's region, this field is computed automatically and readable.
metrics_publisher_key
This property is required.
Changes to this property will trigger replacement.
str
The Grafana Cloud access policy with the following scopes: stacks:read, metrics:write, logs:write, traces:write. This is used to publish metrics and logs to Grafana Cloud stack.
stack_id
This property is required.
Changes to this property will trigger replacement.
str
The ID or slug of the stack to install SM on.
stack_sm_api_url Changes to this property will trigger replacement. str
The URL of the SM API to install SM on. This depends on the stack region, find the list of API URLs here: https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/set-up/set-up-private-probes/#probe-api-server-url. A static mapping exists in the provider but it may not contain all the regions. If it does contain the stack's region, this field is computed automatically and readable.
metricsPublisherKey
This property is required.
Changes to this property will trigger replacement.
String
The Grafana Cloud access policy with the following scopes: stacks:read, metrics:write, logs:write, traces:write. This is used to publish metrics and logs to Grafana Cloud stack.
stackId
This property is required.
Changes to this property will trigger replacement.
String
The ID or slug of the stack to install SM on.
stackSmApiUrl Changes to this property will trigger replacement. String
The URL of the SM API to install SM on. This depends on the stack region, find the list of API URLs here: https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/set-up/set-up-private-probes/#probe-api-server-url. A static mapping exists in the provider but it may not contain all the regions. If it does contain the stack's region, this field is computed automatically and readable.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
SmAccessToken string
Generated token to access the SM API.
Id string
The provider-assigned unique ID for this managed resource.
SmAccessToken string
Generated token to access the SM API.
id String
The provider-assigned unique ID for this managed resource.
smAccessToken String
Generated token to access the SM API.
id string
The provider-assigned unique ID for this managed resource.
smAccessToken string
Generated token to access the SM API.
id str
The provider-assigned unique ID for this managed resource.
sm_access_token str
Generated token to access the SM API.
id String
The provider-assigned unique ID for this managed resource.
smAccessToken String
Generated token to access the SM API.

Look up Existing SyntheticMonitoringInstallation Resource

Get an existing SyntheticMonitoringInstallation 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?: SyntheticMonitoringInstallationState, opts?: CustomResourceOptions): SyntheticMonitoringInstallation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        metrics_publisher_key: Optional[str] = None,
        sm_access_token: Optional[str] = None,
        stack_id: Optional[str] = None,
        stack_sm_api_url: Optional[str] = None) -> SyntheticMonitoringInstallation
func GetSyntheticMonitoringInstallation(ctx *Context, name string, id IDInput, state *SyntheticMonitoringInstallationState, opts ...ResourceOption) (*SyntheticMonitoringInstallation, error)
public static SyntheticMonitoringInstallation Get(string name, Input<string> id, SyntheticMonitoringInstallationState? state, CustomResourceOptions? opts = null)
public static SyntheticMonitoringInstallation get(String name, Output<String> id, SyntheticMonitoringInstallationState state, CustomResourceOptions options)
resources:  _:    type: grafana:SyntheticMonitoringInstallation    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
MetricsPublisherKey Changes to this property will trigger replacement. string
The Grafana Cloud access policy with the following scopes: stacks:read, metrics:write, logs:write, traces:write. This is used to publish metrics and logs to Grafana Cloud stack.
SmAccessToken string
Generated token to access the SM API.
StackId Changes to this property will trigger replacement. string
The ID or slug of the stack to install SM on.
StackSmApiUrl Changes to this property will trigger replacement. string
The URL of the SM API to install SM on. This depends on the stack region, find the list of API URLs here: https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/set-up/set-up-private-probes/#probe-api-server-url. A static mapping exists in the provider but it may not contain all the regions. If it does contain the stack's region, this field is computed automatically and readable.
MetricsPublisherKey Changes to this property will trigger replacement. string
The Grafana Cloud access policy with the following scopes: stacks:read, metrics:write, logs:write, traces:write. This is used to publish metrics and logs to Grafana Cloud stack.
SmAccessToken string
Generated token to access the SM API.
StackId Changes to this property will trigger replacement. string
The ID or slug of the stack to install SM on.
StackSmApiUrl Changes to this property will trigger replacement. string
The URL of the SM API to install SM on. This depends on the stack region, find the list of API URLs here: https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/set-up/set-up-private-probes/#probe-api-server-url. A static mapping exists in the provider but it may not contain all the regions. If it does contain the stack's region, this field is computed automatically and readable.
metricsPublisherKey Changes to this property will trigger replacement. String
The Grafana Cloud access policy with the following scopes: stacks:read, metrics:write, logs:write, traces:write. This is used to publish metrics and logs to Grafana Cloud stack.
smAccessToken String
Generated token to access the SM API.
stackId Changes to this property will trigger replacement. String
The ID or slug of the stack to install SM on.
stackSmApiUrl Changes to this property will trigger replacement. String
The URL of the SM API to install SM on. This depends on the stack region, find the list of API URLs here: https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/set-up/set-up-private-probes/#probe-api-server-url. A static mapping exists in the provider but it may not contain all the regions. If it does contain the stack's region, this field is computed automatically and readable.
metricsPublisherKey Changes to this property will trigger replacement. string
The Grafana Cloud access policy with the following scopes: stacks:read, metrics:write, logs:write, traces:write. This is used to publish metrics and logs to Grafana Cloud stack.
smAccessToken string
Generated token to access the SM API.
stackId Changes to this property will trigger replacement. string
The ID or slug of the stack to install SM on.
stackSmApiUrl Changes to this property will trigger replacement. string
The URL of the SM API to install SM on. This depends on the stack region, find the list of API URLs here: https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/set-up/set-up-private-probes/#probe-api-server-url. A static mapping exists in the provider but it may not contain all the regions. If it does contain the stack's region, this field is computed automatically and readable.
metrics_publisher_key Changes to this property will trigger replacement. str
The Grafana Cloud access policy with the following scopes: stacks:read, metrics:write, logs:write, traces:write. This is used to publish metrics and logs to Grafana Cloud stack.
sm_access_token str
Generated token to access the SM API.
stack_id Changes to this property will trigger replacement. str
The ID or slug of the stack to install SM on.
stack_sm_api_url Changes to this property will trigger replacement. str
The URL of the SM API to install SM on. This depends on the stack region, find the list of API URLs here: https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/set-up/set-up-private-probes/#probe-api-server-url. A static mapping exists in the provider but it may not contain all the regions. If it does contain the stack's region, this field is computed automatically and readable.
metricsPublisherKey Changes to this property will trigger replacement. String
The Grafana Cloud access policy with the following scopes: stacks:read, metrics:write, logs:write, traces:write. This is used to publish metrics and logs to Grafana Cloud stack.
smAccessToken String
Generated token to access the SM API.
stackId Changes to this property will trigger replacement. String
The ID or slug of the stack to install SM on.
stackSmApiUrl Changes to this property will trigger replacement. String
The URL of the SM API to install SM on. This depends on the stack region, find the list of API URLs here: https://grafana.com/docs/grafana-cloud/testing/synthetic-monitoring/set-up/set-up-private-probes/#probe-api-server-url. A static mapping exists in the provider but it may not contain all the regions. If it does contain the stack's region, this field is computed automatically and readable.

Package Details

Repository
grafana pulumiverse/pulumi-grafana
License
Apache-2.0
Notes
This Pulumi package is based on the grafana Terraform Provider.