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

grafana.cloudProvider.getAwsCloudwatchScrapeJobs

Explore with Pulumi AI

Example Usage

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

const test = grafana.cloud.getStack({
    slug: "gcloudstacktest",
});
const testGetAwsCloudwatchScrapeJobs = test.then(test => grafana.cloudProvider.getAwsCloudwatchScrapeJobs({
    stackId: test.id,
}));
Copy
import pulumi
import pulumi_grafana as grafana

test = grafana.cloud.get_stack(slug="gcloudstacktest")
test_get_aws_cloudwatch_scrape_jobs = grafana.cloudProvider.get_aws_cloudwatch_scrape_jobs(stack_id=test.id)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		test, err := cloud.LookupStack(ctx, &cloud.LookupStackArgs{
			Slug: "gcloudstacktest",
		}, nil)
		if err != nil {
			return err
		}
		_, err = cloudprovider.GetAwsCloudwatchScrapeJobs(ctx, &cloudprovider.GetAwsCloudwatchScrapeJobsArgs{
			StackId: test.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumi.Grafana;

return await Deployment.RunAsync(() => 
{
    var test = Grafana.Cloud.GetStack.Invoke(new()
    {
        Slug = "gcloudstacktest",
    });

    var testGetAwsCloudwatchScrapeJobs = Grafana.CloudProvider.GetAwsCloudwatchScrapeJobs.Invoke(new()
    {
        StackId = test.Apply(getStackResult => getStackResult.Id),
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.cloud.CloudFunctions;
import com.pulumi.grafana.cloud.inputs.GetStackArgs;
import com.pulumi.grafana.cloudProvider.CloudProviderFunctions;
import com.pulumi.grafana.cloudProvider.inputs.GetAwsCloudwatchScrapeJobsArgs;
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 test = CloudFunctions.getStack(GetStackArgs.builder()
            .slug("gcloudstacktest")
            .build());

        final var testGetAwsCloudwatchScrapeJobs = CloudProviderFunctions.getAwsCloudwatchScrapeJobs(GetAwsCloudwatchScrapeJobsArgs.builder()
            .stackId(test.applyValue(getStackResult -> getStackResult.id()))
            .build());

    }
}
Copy
variables:
  test:
    fn::invoke:
      function: grafana:cloud:getStack
      arguments:
        slug: gcloudstacktest
  testGetAwsCloudwatchScrapeJobs:
    fn::invoke:
      function: grafana:cloudProvider:getAwsCloudwatchScrapeJobs
      arguments:
        stackId: ${test.id}
Copy

Using getAwsCloudwatchScrapeJobs

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 getAwsCloudwatchScrapeJobs(args: GetAwsCloudwatchScrapeJobsArgs, opts?: InvokeOptions): Promise<GetAwsCloudwatchScrapeJobsResult>
function getAwsCloudwatchScrapeJobsOutput(args: GetAwsCloudwatchScrapeJobsOutputArgs, opts?: InvokeOptions): Output<GetAwsCloudwatchScrapeJobsResult>
Copy
def get_aws_cloudwatch_scrape_jobs(scrape_jobs: Optional[Sequence[_cloudprovider.GetAwsCloudwatchScrapeJobsScrapeJob]] = None,
                                   stack_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetAwsCloudwatchScrapeJobsResult
def get_aws_cloudwatch_scrape_jobs_output(scrape_jobs: Optional[pulumi.Input[Sequence[pulumi.Input[_cloudprovider.GetAwsCloudwatchScrapeJobsScrapeJobArgs]]]] = None,
                                   stack_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetAwsCloudwatchScrapeJobsResult]
Copy
func GetAwsCloudwatchScrapeJobs(ctx *Context, args *GetAwsCloudwatchScrapeJobsArgs, opts ...InvokeOption) (*GetAwsCloudwatchScrapeJobsResult, error)
func GetAwsCloudwatchScrapeJobsOutput(ctx *Context, args *GetAwsCloudwatchScrapeJobsOutputArgs, opts ...InvokeOption) GetAwsCloudwatchScrapeJobsResultOutput
Copy

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

public static class GetAwsCloudwatchScrapeJobs 
{
    public static Task<GetAwsCloudwatchScrapeJobsResult> InvokeAsync(GetAwsCloudwatchScrapeJobsArgs args, InvokeOptions? opts = null)
    public static Output<GetAwsCloudwatchScrapeJobsResult> Invoke(GetAwsCloudwatchScrapeJobsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAwsCloudwatchScrapeJobsResult> getAwsCloudwatchScrapeJobs(GetAwsCloudwatchScrapeJobsArgs args, InvokeOptions options)
public static Output<GetAwsCloudwatchScrapeJobsResult> getAwsCloudwatchScrapeJobs(GetAwsCloudwatchScrapeJobsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: grafana:cloudProvider/getAwsCloudwatchScrapeJobs:getAwsCloudwatchScrapeJobs
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

StackId This property is required. string
ScrapeJobs List<Pulumiverse.Grafana.CloudProvider.Inputs.GetAwsCloudwatchScrapeJobsScrapeJob>
A list of AWS CloudWatch Scrape Job objects associated with the given StackID.
StackId This property is required. string
ScrapeJobs []GetAwsCloudwatchScrapeJobsScrapeJob
A list of AWS CloudWatch Scrape Job objects associated with the given StackID.
stackId This property is required. String
scrapeJobs List<GetAwsCloudwatchScrapeJobsScrapeJob>
A list of AWS CloudWatch Scrape Job objects associated with the given StackID.
stackId This property is required. string
scrapeJobs GetAwsCloudwatchScrapeJobsScrapeJob[]
A list of AWS CloudWatch Scrape Job objects associated with the given StackID.
stack_id This property is required. str
scrape_jobs Sequence[cloudprovider.GetAwsCloudwatchScrapeJobsScrapeJob]
A list of AWS CloudWatch Scrape Job objects associated with the given StackID.
stackId This property is required. String
scrapeJobs List<Property Map>
A list of AWS CloudWatch Scrape Job objects associated with the given StackID.

getAwsCloudwatchScrapeJobs Result

The following output properties are available:

Id string
StackId string
ScrapeJobs List<Pulumiverse.Grafana.CloudProvider.Outputs.GetAwsCloudwatchScrapeJobsScrapeJob>
A list of AWS CloudWatch Scrape Job objects associated with the given StackID.
Id string
StackId string
ScrapeJobs []GetAwsCloudwatchScrapeJobsScrapeJob
A list of AWS CloudWatch Scrape Job objects associated with the given StackID.
id String
stackId String
scrapeJobs List<GetAwsCloudwatchScrapeJobsScrapeJob>
A list of AWS CloudWatch Scrape Job objects associated with the given StackID.
id string
stackId string
scrapeJobs GetAwsCloudwatchScrapeJobsScrapeJob[]
A list of AWS CloudWatch Scrape Job objects associated with the given StackID.
id str
stack_id str
scrape_jobs Sequence[cloudprovider.GetAwsCloudwatchScrapeJobsScrapeJob]
A list of AWS CloudWatch Scrape Job objects associated with the given StackID.
id String
stackId String
scrapeJobs List<Property Map>
A list of AWS CloudWatch Scrape Job objects associated with the given StackID.

Supporting Types

GetAwsCloudwatchScrapeJobsScrapeJob

AwsAccountResourceId This property is required. string
The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the resource_id attribute of the grafana.cloudProvider.AwsAccount resource.
DisabledReason This property is required. string
When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
Enabled This property is required. bool
Whether the CloudWatch Scrape Job is enabled or not.
ExportTags This property is required. bool
When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as aws_<service_name>_info.
Id This property is required. string
Name This property is required. string
Regions This property is required. List<string>
The set of AWS region names that this CloudWatch Scrape Job is configured to scrape.
RegionsSubsetOverrideUsed This property is required. bool
When true, the regions attribute will be the set of regions configured in the override. When false, the regions attribute will be the set of regions belonging to the AWS Account resource that is associated with this CloudWatch Scrape Job.
RoleArn This property is required. string
The AWS ARN of the IAM role associated with the AWS Account resource that is being used by this CloudWatch Scrape Job.
StackId This property is required. string
StaticLabels This property is required. Dictionary<string, string>
A set of static labels to add to all metrics exported by this scrape job.
CustomNamespaces List<Pulumiverse.Grafana.CloudProvider.Inputs.GetAwsCloudwatchScrapeJobsScrapeJobCustomNamespace>
Zero or more configuration blocks to configure custom namespaces for the CloudWatch Scrape Job to scrape. Each block must have a distinct name attribute. When accessing this as an attribute reference, it is a list of objects.
Services List<Pulumiverse.Grafana.CloudProvider.Inputs.GetAwsCloudwatchScrapeJobsScrapeJobService>
One or more configuration blocks to dictate what this CloudWatch Scrape Job should scrape. Each block must have a distinct name attribute. When accessing this as an attribute reference, it is a list of objects.
AwsAccountResourceId This property is required. string
The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the resource_id attribute of the grafana.cloudProvider.AwsAccount resource.
DisabledReason This property is required. string
When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
Enabled This property is required. bool
Whether the CloudWatch Scrape Job is enabled or not.
ExportTags This property is required. bool
When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as aws_<service_name>_info.
Id This property is required. string
Name This property is required. string
Regions This property is required. []string
The set of AWS region names that this CloudWatch Scrape Job is configured to scrape.
RegionsSubsetOverrideUsed This property is required. bool
When true, the regions attribute will be the set of regions configured in the override. When false, the regions attribute will be the set of regions belonging to the AWS Account resource that is associated with this CloudWatch Scrape Job.
RoleArn This property is required. string
The AWS ARN of the IAM role associated with the AWS Account resource that is being used by this CloudWatch Scrape Job.
StackId This property is required. string
StaticLabels This property is required. map[string]string
A set of static labels to add to all metrics exported by this scrape job.
CustomNamespaces []GetAwsCloudwatchScrapeJobsScrapeJobCustomNamespace
Zero or more configuration blocks to configure custom namespaces for the CloudWatch Scrape Job to scrape. Each block must have a distinct name attribute. When accessing this as an attribute reference, it is a list of objects.
Services []GetAwsCloudwatchScrapeJobsScrapeJobService
One or more configuration blocks to dictate what this CloudWatch Scrape Job should scrape. Each block must have a distinct name attribute. When accessing this as an attribute reference, it is a list of objects.
awsAccountResourceId This property is required. String
The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the resource_id attribute of the grafana.cloudProvider.AwsAccount resource.
disabledReason This property is required. String
When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
enabled This property is required. Boolean
Whether the CloudWatch Scrape Job is enabled or not.
exportTags This property is required. Boolean
When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as aws_<service_name>_info.
id This property is required. String
name This property is required. String
regions This property is required. List<String>
The set of AWS region names that this CloudWatch Scrape Job is configured to scrape.
regionsSubsetOverrideUsed This property is required. Boolean
When true, the regions attribute will be the set of regions configured in the override. When false, the regions attribute will be the set of regions belonging to the AWS Account resource that is associated with this CloudWatch Scrape Job.
roleArn This property is required. String
The AWS ARN of the IAM role associated with the AWS Account resource that is being used by this CloudWatch Scrape Job.
stackId This property is required. String
staticLabels This property is required. Map<String,String>
A set of static labels to add to all metrics exported by this scrape job.
customNamespaces List<GetAwsCloudwatchScrapeJobsScrapeJobCustomNamespace>
Zero or more configuration blocks to configure custom namespaces for the CloudWatch Scrape Job to scrape. Each block must have a distinct name attribute. When accessing this as an attribute reference, it is a list of objects.
services List<GetAwsCloudwatchScrapeJobsScrapeJobService>
One or more configuration blocks to dictate what this CloudWatch Scrape Job should scrape. Each block must have a distinct name attribute. When accessing this as an attribute reference, it is a list of objects.
awsAccountResourceId This property is required. string
The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the resource_id attribute of the grafana.cloudProvider.AwsAccount resource.
disabledReason This property is required. string
When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
enabled This property is required. boolean
Whether the CloudWatch Scrape Job is enabled or not.
exportTags This property is required. boolean
When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as aws_<service_name>_info.
id This property is required. string
name This property is required. string
regions This property is required. string[]
The set of AWS region names that this CloudWatch Scrape Job is configured to scrape.
regionsSubsetOverrideUsed This property is required. boolean
When true, the regions attribute will be the set of regions configured in the override. When false, the regions attribute will be the set of regions belonging to the AWS Account resource that is associated with this CloudWatch Scrape Job.
roleArn This property is required. string
The AWS ARN of the IAM role associated with the AWS Account resource that is being used by this CloudWatch Scrape Job.
stackId This property is required. string
staticLabels This property is required. {[key: string]: string}
A set of static labels to add to all metrics exported by this scrape job.
customNamespaces GetAwsCloudwatchScrapeJobsScrapeJobCustomNamespace[]
Zero or more configuration blocks to configure custom namespaces for the CloudWatch Scrape Job to scrape. Each block must have a distinct name attribute. When accessing this as an attribute reference, it is a list of objects.
services GetAwsCloudwatchScrapeJobsScrapeJobService[]
One or more configuration blocks to dictate what this CloudWatch Scrape Job should scrape. Each block must have a distinct name attribute. When accessing this as an attribute reference, it is a list of objects.
aws_account_resource_id This property is required. str
The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the resource_id attribute of the grafana.cloudProvider.AwsAccount resource.
disabled_reason This property is required. str
When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
enabled This property is required. bool
Whether the CloudWatch Scrape Job is enabled or not.
export_tags This property is required. bool
When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as aws_<service_name>_info.
id This property is required. str
name This property is required. str
regions This property is required. Sequence[str]
The set of AWS region names that this CloudWatch Scrape Job is configured to scrape.
regions_subset_override_used This property is required. bool
When true, the regions attribute will be the set of regions configured in the override. When false, the regions attribute will be the set of regions belonging to the AWS Account resource that is associated with this CloudWatch Scrape Job.
role_arn This property is required. str
The AWS ARN of the IAM role associated with the AWS Account resource that is being used by this CloudWatch Scrape Job.
stack_id This property is required. str
static_labels This property is required. Mapping[str, str]
A set of static labels to add to all metrics exported by this scrape job.
custom_namespaces Sequence[cloudprovider.GetAwsCloudwatchScrapeJobsScrapeJobCustomNamespace]
Zero or more configuration blocks to configure custom namespaces for the CloudWatch Scrape Job to scrape. Each block must have a distinct name attribute. When accessing this as an attribute reference, it is a list of objects.
services Sequence[cloudprovider.GetAwsCloudwatchScrapeJobsScrapeJobService]
One or more configuration blocks to dictate what this CloudWatch Scrape Job should scrape. Each block must have a distinct name attribute. When accessing this as an attribute reference, it is a list of objects.
awsAccountResourceId This property is required. String
The ID assigned by the Grafana Cloud Provider API to an AWS Account resource that should be associated with this CloudWatch Scrape Job. This can be provided by the resource_id attribute of the grafana.cloudProvider.AwsAccount resource.
disabledReason This property is required. String
When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
enabled This property is required. Boolean
Whether the CloudWatch Scrape Job is enabled or not.
exportTags This property is required. Boolean
When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as aws_<service_name>_info.
id This property is required. String
name This property is required. String
regions This property is required. List<String>
The set of AWS region names that this CloudWatch Scrape Job is configured to scrape.
regionsSubsetOverrideUsed This property is required. Boolean
When true, the regions attribute will be the set of regions configured in the override. When false, the regions attribute will be the set of regions belonging to the AWS Account resource that is associated with this CloudWatch Scrape Job.
roleArn This property is required. String
The AWS ARN of the IAM role associated with the AWS Account resource that is being used by this CloudWatch Scrape Job.
stackId This property is required. String
staticLabels This property is required. Map<String>
A set of static labels to add to all metrics exported by this scrape job.
customNamespaces List<Property Map>
Zero or more configuration blocks to configure custom namespaces for the CloudWatch Scrape Job to scrape. Each block must have a distinct name attribute. When accessing this as an attribute reference, it is a list of objects.
services List<Property Map>
One or more configuration blocks to dictate what this CloudWatch Scrape Job should scrape. Each block must have a distinct name attribute. When accessing this as an attribute reference, it is a list of objects.

GetAwsCloudwatchScrapeJobsScrapeJobCustomNamespace

Name This property is required. string
The name of the custom namespace to scrape.
ScrapeIntervalSeconds This property is required. int
The interval in seconds to scrape the custom namespace.
Metrics List<Pulumiverse.Grafana.CloudProvider.Inputs.GetAwsCloudwatchScrapeJobsScrapeJobCustomNamespaceMetric>
One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
Name This property is required. string
The name of the custom namespace to scrape.
ScrapeIntervalSeconds This property is required. int
The interval in seconds to scrape the custom namespace.
Metrics []GetAwsCloudwatchScrapeJobsScrapeJobCustomNamespaceMetric
One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
name This property is required. String
The name of the custom namespace to scrape.
scrapeIntervalSeconds This property is required. Integer
The interval in seconds to scrape the custom namespace.
metrics List<GetAwsCloudwatchScrapeJobsScrapeJobCustomNamespaceMetric>
One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
name This property is required. string
The name of the custom namespace to scrape.
scrapeIntervalSeconds This property is required. number
The interval in seconds to scrape the custom namespace.
metrics GetAwsCloudwatchScrapeJobsScrapeJobCustomNamespaceMetric[]
One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
name This property is required. str
The name of the custom namespace to scrape.
scrape_interval_seconds This property is required. int
The interval in seconds to scrape the custom namespace.
metrics Sequence[cloudprovider.GetAwsCloudwatchScrapeJobsScrapeJobCustomNamespaceMetric]
One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
name This property is required. String
The name of the custom namespace to scrape.
scrapeIntervalSeconds This property is required. Number
The interval in seconds to scrape the custom namespace.
metrics List<Property Map>
One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.

GetAwsCloudwatchScrapeJobsScrapeJobCustomNamespaceMetric

Name This property is required. string
The name of the metric to scrape.
Statistics This property is required. List<string>
A set of statistics to scrape.
Name This property is required. string
The name of the metric to scrape.
Statistics This property is required. []string
A set of statistics to scrape.
name This property is required. String
The name of the metric to scrape.
statistics This property is required. List<String>
A set of statistics to scrape.
name This property is required. string
The name of the metric to scrape.
statistics This property is required. string[]
A set of statistics to scrape.
name This property is required. str
The name of the metric to scrape.
statistics This property is required. Sequence[str]
A set of statistics to scrape.
name This property is required. String
The name of the metric to scrape.
statistics This property is required. List<String>
A set of statistics to scrape.

GetAwsCloudwatchScrapeJobsScrapeJobService

Name This property is required. string
The name of the service to scrape. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported services, metrics, and their statistics.
ScrapeIntervalSeconds This property is required. int
The interval in seconds to scrape the service. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported scrape intervals.
TagsToAddToMetrics This property is required. List<string>
A set of tags to add to all metrics exported by this scrape job, for use in PromQL queries.
Metrics List<Pulumiverse.Grafana.CloudProvider.Inputs.GetAwsCloudwatchScrapeJobsScrapeJobServiceMetric>
One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
ResourceDiscoveryTagFilters List<Pulumiverse.Grafana.CloudProvider.Inputs.GetAwsCloudwatchScrapeJobsScrapeJobServiceResourceDiscoveryTagFilter>
One or more configuration blocks to configure tag filters applied to discovery of resource entities in the associated AWS account. When accessing this as an attribute reference, it is a list of objects.
Name This property is required. string
The name of the service to scrape. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported services, metrics, and their statistics.
ScrapeIntervalSeconds This property is required. int
The interval in seconds to scrape the service. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported scrape intervals.
TagsToAddToMetrics This property is required. []string
A set of tags to add to all metrics exported by this scrape job, for use in PromQL queries.
Metrics []GetAwsCloudwatchScrapeJobsScrapeJobServiceMetric
One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
ResourceDiscoveryTagFilters []GetAwsCloudwatchScrapeJobsScrapeJobServiceResourceDiscoveryTagFilter
One or more configuration blocks to configure tag filters applied to discovery of resource entities in the associated AWS account. When accessing this as an attribute reference, it is a list of objects.
name This property is required. String
The name of the service to scrape. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported services, metrics, and their statistics.
scrapeIntervalSeconds This property is required. Integer
The interval in seconds to scrape the service. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported scrape intervals.
tagsToAddToMetrics This property is required. List<String>
A set of tags to add to all metrics exported by this scrape job, for use in PromQL queries.
metrics List<GetAwsCloudwatchScrapeJobsScrapeJobServiceMetric>
One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
resourceDiscoveryTagFilters List<GetAwsCloudwatchScrapeJobsScrapeJobServiceResourceDiscoveryTagFilter>
One or more configuration blocks to configure tag filters applied to discovery of resource entities in the associated AWS account. When accessing this as an attribute reference, it is a list of objects.
name This property is required. string
The name of the service to scrape. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported services, metrics, and their statistics.
scrapeIntervalSeconds This property is required. number
The interval in seconds to scrape the service. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported scrape intervals.
tagsToAddToMetrics This property is required. string[]
A set of tags to add to all metrics exported by this scrape job, for use in PromQL queries.
metrics GetAwsCloudwatchScrapeJobsScrapeJobServiceMetric[]
One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
resourceDiscoveryTagFilters GetAwsCloudwatchScrapeJobsScrapeJobServiceResourceDiscoveryTagFilter[]
One or more configuration blocks to configure tag filters applied to discovery of resource entities in the associated AWS account. When accessing this as an attribute reference, it is a list of objects.
name This property is required. str
The name of the service to scrape. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported services, metrics, and their statistics.
scrape_interval_seconds This property is required. int
The interval in seconds to scrape the service. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported scrape intervals.
tags_to_add_to_metrics This property is required. Sequence[str]
A set of tags to add to all metrics exported by this scrape job, for use in PromQL queries.
metrics Sequence[cloudprovider.GetAwsCloudwatchScrapeJobsScrapeJobServiceMetric]
One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
resource_discovery_tag_filters Sequence[cloudprovider.GetAwsCloudwatchScrapeJobsScrapeJobServiceResourceDiscoveryTagFilter]
One or more configuration blocks to configure tag filters applied to discovery of resource entities in the associated AWS account. When accessing this as an attribute reference, it is a list of objects.
name This property is required. String
The name of the service to scrape. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported services, metrics, and their statistics.
scrapeIntervalSeconds This property is required. Number
The interval in seconds to scrape the service. See https://grafana.com/docs/grafana-cloud/monitor-infrastructure/monitor-cloud-provider/aws/cloudwatch-metrics/services/ for supported scrape intervals.
tagsToAddToMetrics This property is required. List<String>
A set of tags to add to all metrics exported by this scrape job, for use in PromQL queries.
metrics List<Property Map>
One or more configuration blocks to configure metrics and their statistics to scrape. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
resourceDiscoveryTagFilters List<Property Map>
One or more configuration blocks to configure tag filters applied to discovery of resource entities in the associated AWS account. When accessing this as an attribute reference, it is a list of objects.

GetAwsCloudwatchScrapeJobsScrapeJobServiceMetric

Name This property is required. string
The name of the metric to scrape.
Statistics This property is required. List<string>
A set of statistics to scrape.
Name This property is required. string
The name of the metric to scrape.
Statistics This property is required. []string
A set of statistics to scrape.
name This property is required. String
The name of the metric to scrape.
statistics This property is required. List<String>
A set of statistics to scrape.
name This property is required. string
The name of the metric to scrape.
statistics This property is required. string[]
A set of statistics to scrape.
name This property is required. str
The name of the metric to scrape.
statistics This property is required. Sequence[str]
A set of statistics to scrape.
name This property is required. String
The name of the metric to scrape.
statistics This property is required. List<String>
A set of statistics to scrape.

GetAwsCloudwatchScrapeJobsScrapeJobServiceResourceDiscoveryTagFilter

Key This property is required. string
The key of the tag filter.
Value This property is required. string
The value of the tag filter.
Key This property is required. string
The key of the tag filter.
Value This property is required. string
The value of the tag filter.
key This property is required. String
The key of the tag filter.
value This property is required. String
The value of the tag filter.
key This property is required. string
The key of the tag filter.
value This property is required. string
The value of the tag filter.
key This property is required. str
The key of the tag filter.
value This property is required. str
The value of the tag filter.
key This property is required. String
The key of the tag filter.
value This property is required. String
The value of the tag filter.

Package Details

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