grafana.cloudProvider.AwsCloudwatchScrapeJob
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as grafana from "@pulumi/grafana";
import * as grafana from "@pulumiverse/grafana";
const test = grafana.cloud.getStack({
slug: "gcloudstacktest",
});
const testGetRole = aws.iam.getRole({
name: "my-role",
});
const testAwsAccount = new grafana.cloudprovider.AwsAccount("test", {
stackId: test.then(test => test.id),
roleArn: testGetRole.then(testGetRole => testGetRole.arn),
regions: [
"us-east-1",
"us-east-2",
"us-west-1",
],
});
const testAwsCloudwatchScrapeJob = new grafana.cloudprovider.AwsCloudwatchScrapeJob("test", {
stackId: test.then(test => test.id),
name: "my-cloudwatch-scrape-job",
awsAccountResourceId: testAwsAccount.resourceId,
exportTags: true,
services: [{
name: "AWS/EC2",
metrics: [
{
name: "CPUUtilization",
statistics: ["Average"],
},
{
name: "StatusCheckFailed",
statistics: ["Maximum"],
},
],
scrapeIntervalSeconds: 300,
resourceDiscoveryTagFilters: [{
key: "k8s.io/cluster-autoscaler/enabled",
value: "true",
}],
tagsToAddToMetrics: ["eks:cluster-name"],
}],
customNamespaces: [{
name: "CoolApp",
metrics: [{
name: "CoolMetric",
statistics: [
"Maximum",
"Sum",
],
}],
scrapeIntervalSeconds: 300,
}],
staticLabels: {
label1: "value1",
label2: "value2",
},
});
import pulumi
import pulumi_aws as aws
import pulumi_grafana as grafana
import pulumiverse_grafana as grafana
test = grafana.cloud.get_stack(slug="gcloudstacktest")
test_get_role = aws.iam.get_role(name="my-role")
test_aws_account = grafana.cloud_provider.AwsAccount("test",
stack_id=test.id,
role_arn=test_get_role.arn,
regions=[
"us-east-1",
"us-east-2",
"us-west-1",
])
test_aws_cloudwatch_scrape_job = grafana.cloud_provider.AwsCloudwatchScrapeJob("test",
stack_id=test.id,
name="my-cloudwatch-scrape-job",
aws_account_resource_id=test_aws_account.resource_id,
export_tags=True,
services=[{
"name": "AWS/EC2",
"metrics": [
{
"name": "CPUUtilization",
"statistics": ["Average"],
},
{
"name": "StatusCheckFailed",
"statistics": ["Maximum"],
},
],
"scrape_interval_seconds": 300,
"resource_discovery_tag_filters": [{
"key": "k8s.io/cluster-autoscaler/enabled",
"value": "true",
}],
"tags_to_add_to_metrics": ["eks:cluster-name"],
}],
custom_namespaces=[{
"name": "CoolApp",
"metrics": [{
"name": "CoolMetric",
"statistics": [
"Maximum",
"Sum",
],
}],
"scrape_interval_seconds": 300,
}],
static_labels={
"label1": "value1",
"label2": "value2",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
"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
}
testGetRole, err := iam.LookupRole(ctx, &iam.LookupRoleArgs{
Name: "my-role",
}, nil)
if err != nil {
return err
}
testAwsAccount, err := cloudprovider.NewAwsAccount(ctx, "test", &cloudprovider.AwsAccountArgs{
StackId: pulumi.String(test.Id),
RoleArn: pulumi.String(testGetRole.Arn),
Regions: pulumi.StringArray{
pulumi.String("us-east-1"),
pulumi.String("us-east-2"),
pulumi.String("us-west-1"),
},
})
if err != nil {
return err
}
_, err = cloudprovider.NewAwsCloudwatchScrapeJob(ctx, "test", &cloudprovider.AwsCloudwatchScrapeJobArgs{
StackId: pulumi.String(test.Id),
Name: pulumi.String("my-cloudwatch-scrape-job"),
AwsAccountResourceId: testAwsAccount.ResourceId,
ExportTags: pulumi.Bool(true),
Services: cloudprovider.AwsCloudwatchScrapeJobServiceArray{
&cloudprovider.AwsCloudwatchScrapeJobServiceArgs{
Name: pulumi.String("AWS/EC2"),
Metrics: cloudprovider.AwsCloudwatchScrapeJobServiceMetricArray{
&cloudprovider.AwsCloudwatchScrapeJobServiceMetricArgs{
Name: pulumi.String("CPUUtilization"),
Statistics: pulumi.StringArray{
pulumi.String("Average"),
},
},
&cloudprovider.AwsCloudwatchScrapeJobServiceMetricArgs{
Name: pulumi.String("StatusCheckFailed"),
Statistics: pulumi.StringArray{
pulumi.String("Maximum"),
},
},
},
ScrapeIntervalSeconds: pulumi.Int(300),
ResourceDiscoveryTagFilters: cloudprovider.AwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilterArray{
&cloudprovider.AwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilterArgs{
Key: pulumi.String("k8s.io/cluster-autoscaler/enabled"),
Value: pulumi.String("true"),
},
},
TagsToAddToMetrics: pulumi.StringArray{
pulumi.String("eks:cluster-name"),
},
},
},
CustomNamespaces: cloudprovider.AwsCloudwatchScrapeJobCustomNamespaceArray{
&cloudprovider.AwsCloudwatchScrapeJobCustomNamespaceArgs{
Name: pulumi.String("CoolApp"),
Metrics: cloudprovider.AwsCloudwatchScrapeJobCustomNamespaceMetricArray{
&cloudprovider.AwsCloudwatchScrapeJobCustomNamespaceMetricArgs{
Name: pulumi.String("CoolMetric"),
Statistics: pulumi.StringArray{
pulumi.String("Maximum"),
pulumi.String("Sum"),
},
},
},
ScrapeIntervalSeconds: pulumi.Int(300),
},
},
StaticLabels: pulumi.StringMap{
"label1": pulumi.String("value1"),
"label2": pulumi.String("value2"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
using Grafana = Pulumi.Grafana;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var test = Grafana.Cloud.GetStack.Invoke(new()
{
Slug = "gcloudstacktest",
});
var testGetRole = Aws.Iam.GetRole.Invoke(new()
{
Name = "my-role",
});
var testAwsAccount = new Grafana.CloudProvider.AwsAccount("test", new()
{
StackId = test.Apply(getStackResult => getStackResult.Id),
RoleArn = testGetRole.Apply(getRoleResult => getRoleResult.Arn),
Regions = new[]
{
"us-east-1",
"us-east-2",
"us-west-1",
},
});
var testAwsCloudwatchScrapeJob = new Grafana.CloudProvider.AwsCloudwatchScrapeJob("test", new()
{
StackId = test.Apply(getStackResult => getStackResult.Id),
Name = "my-cloudwatch-scrape-job",
AwsAccountResourceId = testAwsAccount.ResourceId,
ExportTags = true,
Services = new[]
{
new Grafana.CloudProvider.Inputs.AwsCloudwatchScrapeJobServiceArgs
{
Name = "AWS/EC2",
Metrics = new[]
{
new Grafana.CloudProvider.Inputs.AwsCloudwatchScrapeJobServiceMetricArgs
{
Name = "CPUUtilization",
Statistics = new[]
{
"Average",
},
},
new Grafana.CloudProvider.Inputs.AwsCloudwatchScrapeJobServiceMetricArgs
{
Name = "StatusCheckFailed",
Statistics = new[]
{
"Maximum",
},
},
},
ScrapeIntervalSeconds = 300,
ResourceDiscoveryTagFilters = new[]
{
new Grafana.CloudProvider.Inputs.AwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilterArgs
{
Key = "k8s.io/cluster-autoscaler/enabled",
Value = "true",
},
},
TagsToAddToMetrics = new[]
{
"eks:cluster-name",
},
},
},
CustomNamespaces = new[]
{
new Grafana.CloudProvider.Inputs.AwsCloudwatchScrapeJobCustomNamespaceArgs
{
Name = "CoolApp",
Metrics = new[]
{
new Grafana.CloudProvider.Inputs.AwsCloudwatchScrapeJobCustomNamespaceMetricArgs
{
Name = "CoolMetric",
Statistics = new[]
{
"Maximum",
"Sum",
},
},
},
ScrapeIntervalSeconds = 300,
},
},
StaticLabels =
{
{ "label1", "value1" },
{ "label2", "value2" },
},
});
});
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.aws.iam.IamFunctions;
import com.pulumi.aws.iam.inputs.GetRoleArgs;
import com.pulumi.grafana.cloudProvider.AwsAccount;
import com.pulumi.grafana.cloudProvider.AwsAccountArgs;
import com.pulumi.grafana.cloudProvider.AwsCloudwatchScrapeJob;
import com.pulumi.grafana.cloudProvider.AwsCloudwatchScrapeJobArgs;
import com.pulumi.grafana.cloudProvider.inputs.AwsCloudwatchScrapeJobServiceArgs;
import com.pulumi.grafana.cloudProvider.inputs.AwsCloudwatchScrapeJobCustomNamespaceArgs;
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 testGetRole = IamFunctions.getRole(GetRoleArgs.builder()
.name("my-role")
.build());
var testAwsAccount = new AwsAccount("testAwsAccount", AwsAccountArgs.builder()
.stackId(test.applyValue(getStackResult -> getStackResult.id()))
.roleArn(testGetRole.applyValue(getRoleResult -> getRoleResult.arn()))
.regions(
"us-east-1",
"us-east-2",
"us-west-1")
.build());
var testAwsCloudwatchScrapeJob = new AwsCloudwatchScrapeJob("testAwsCloudwatchScrapeJob", AwsCloudwatchScrapeJobArgs.builder()
.stackId(test.applyValue(getStackResult -> getStackResult.id()))
.name("my-cloudwatch-scrape-job")
.awsAccountResourceId(testAwsAccount.resourceId())
.exportTags(true)
.services(AwsCloudwatchScrapeJobServiceArgs.builder()
.name("AWS/EC2")
.metrics(
AwsCloudwatchScrapeJobServiceMetricArgs.builder()
.name("CPUUtilization")
.statistics("Average")
.build(),
AwsCloudwatchScrapeJobServiceMetricArgs.builder()
.name("StatusCheckFailed")
.statistics("Maximum")
.build())
.scrapeIntervalSeconds(300)
.resourceDiscoveryTagFilters(AwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilterArgs.builder()
.key("k8s.io/cluster-autoscaler/enabled")
.value("true")
.build())
.tagsToAddToMetrics("eks:cluster-name")
.build())
.customNamespaces(AwsCloudwatchScrapeJobCustomNamespaceArgs.builder()
.name("CoolApp")
.metrics(AwsCloudwatchScrapeJobCustomNamespaceMetricArgs.builder()
.name("CoolMetric")
.statistics(
"Maximum",
"Sum")
.build())
.scrapeIntervalSeconds(300)
.build())
.staticLabels(Map.ofEntries(
Map.entry("label1", "value1"),
Map.entry("label2", "value2")
))
.build());
}
}
resources:
testAwsAccount:
type: grafana:cloudProvider:AwsAccount
name: test
properties:
stackId: ${test.id}
roleArn: ${testGetRole.arn}
regions:
- us-east-1
- us-east-2
- us-west-1
testAwsCloudwatchScrapeJob:
type: grafana:cloudProvider:AwsCloudwatchScrapeJob
name: test
properties:
stackId: ${test.id}
name: my-cloudwatch-scrape-job
awsAccountResourceId: ${testAwsAccount.resourceId}
exportTags: true
services:
- name: AWS/EC2
metrics:
- name: CPUUtilization
statistics:
- Average
- name: StatusCheckFailed
statistics:
- Maximum
scrapeIntervalSeconds: 300
resourceDiscoveryTagFilters:
- key: k8s.io/cluster-autoscaler/enabled
value: 'true'
tagsToAddToMetrics:
- eks:cluster-name
customNamespaces:
- name: CoolApp
metrics:
- name: CoolMetric
statistics:
- Maximum
- Sum
scrapeIntervalSeconds: 300
staticLabels:
label1: value1
label2: value2
variables:
test:
fn::invoke:
function: grafana:cloud:getStack
arguments:
slug: gcloudstacktest
testGetRole:
fn::invoke:
function: aws:iam:getRole
arguments:
name: my-role
Create AwsCloudwatchScrapeJob Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AwsCloudwatchScrapeJob(name: string, args: AwsCloudwatchScrapeJobArgs, opts?: CustomResourceOptions);
@overload
def AwsCloudwatchScrapeJob(resource_name: str,
args: AwsCloudwatchScrapeJobArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AwsCloudwatchScrapeJob(resource_name: str,
opts: Optional[ResourceOptions] = None,
aws_account_resource_id: Optional[str] = None,
stack_id: Optional[str] = None,
custom_namespaces: Optional[Sequence[_cloudprovider.AwsCloudwatchScrapeJobCustomNamespaceArgs]] = None,
enabled: Optional[bool] = None,
export_tags: Optional[bool] = None,
name: Optional[str] = None,
regions_subset_overrides: Optional[Sequence[str]] = None,
services: Optional[Sequence[_cloudprovider.AwsCloudwatchScrapeJobServiceArgs]] = None,
static_labels: Optional[Mapping[str, str]] = None)
func NewAwsCloudwatchScrapeJob(ctx *Context, name string, args AwsCloudwatchScrapeJobArgs, opts ...ResourceOption) (*AwsCloudwatchScrapeJob, error)
public AwsCloudwatchScrapeJob(string name, AwsCloudwatchScrapeJobArgs args, CustomResourceOptions? opts = null)
public AwsCloudwatchScrapeJob(String name, AwsCloudwatchScrapeJobArgs args)
public AwsCloudwatchScrapeJob(String name, AwsCloudwatchScrapeJobArgs args, CustomResourceOptions options)
type: grafana:cloudProvider:AwsCloudwatchScrapeJob
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AwsCloudwatchScrapeJobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AwsCloudwatchScrapeJobArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AwsCloudwatchScrapeJobArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AwsCloudwatchScrapeJobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AwsCloudwatchScrapeJobArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var awsCloudwatchScrapeJobResource = new Grafana.CloudProvider.AwsCloudwatchScrapeJob("awsCloudwatchScrapeJobResource", new()
{
AwsAccountResourceId = "string",
StackId = "string",
CustomNamespaces = new[]
{
new Grafana.CloudProvider.Inputs.AwsCloudwatchScrapeJobCustomNamespaceArgs
{
Name = "string",
Metrics = new[]
{
new Grafana.CloudProvider.Inputs.AwsCloudwatchScrapeJobCustomNamespaceMetricArgs
{
Name = "string",
Statistics = new[]
{
"string",
},
},
},
ScrapeIntervalSeconds = 0,
},
},
Enabled = false,
ExportTags = false,
Name = "string",
RegionsSubsetOverrides = new[]
{
"string",
},
Services = new[]
{
new Grafana.CloudProvider.Inputs.AwsCloudwatchScrapeJobServiceArgs
{
Name = "string",
Metrics = new[]
{
new Grafana.CloudProvider.Inputs.AwsCloudwatchScrapeJobServiceMetricArgs
{
Name = "string",
Statistics = new[]
{
"string",
},
},
},
ResourceDiscoveryTagFilters = new[]
{
new Grafana.CloudProvider.Inputs.AwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilterArgs
{
Key = "string",
Value = "string",
},
},
ScrapeIntervalSeconds = 0,
TagsToAddToMetrics = new[]
{
"string",
},
},
},
StaticLabels =
{
{ "string", "string" },
},
});
example, err := cloudProvider.NewAwsCloudwatchScrapeJob(ctx, "awsCloudwatchScrapeJobResource", &cloudProvider.AwsCloudwatchScrapeJobArgs{
AwsAccountResourceId: pulumi.String("string"),
StackId: pulumi.String("string"),
CustomNamespaces: cloudprovider.AwsCloudwatchScrapeJobCustomNamespaceArray{
&cloudprovider.AwsCloudwatchScrapeJobCustomNamespaceArgs{
Name: pulumi.String("string"),
Metrics: cloudprovider.AwsCloudwatchScrapeJobCustomNamespaceMetricArray{
&cloudprovider.AwsCloudwatchScrapeJobCustomNamespaceMetricArgs{
Name: pulumi.String("string"),
Statistics: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ScrapeIntervalSeconds: pulumi.Int(0),
},
},
Enabled: pulumi.Bool(false),
ExportTags: pulumi.Bool(false),
Name: pulumi.String("string"),
RegionsSubsetOverrides: pulumi.StringArray{
pulumi.String("string"),
},
Services: cloudprovider.AwsCloudwatchScrapeJobServiceArray{
&cloudprovider.AwsCloudwatchScrapeJobServiceArgs{
Name: pulumi.String("string"),
Metrics: cloudprovider.AwsCloudwatchScrapeJobServiceMetricArray{
&cloudprovider.AwsCloudwatchScrapeJobServiceMetricArgs{
Name: pulumi.String("string"),
Statistics: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ResourceDiscoveryTagFilters: cloudprovider.AwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilterArray{
&cloudprovider.AwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilterArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
ScrapeIntervalSeconds: pulumi.Int(0),
TagsToAddToMetrics: pulumi.StringArray{
pulumi.String("string"),
},
},
},
StaticLabels: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var awsCloudwatchScrapeJobResource = new AwsCloudwatchScrapeJob("awsCloudwatchScrapeJobResource", AwsCloudwatchScrapeJobArgs.builder()
.awsAccountResourceId("string")
.stackId("string")
.customNamespaces(AwsCloudwatchScrapeJobCustomNamespaceArgs.builder()
.name("string")
.metrics(AwsCloudwatchScrapeJobCustomNamespaceMetricArgs.builder()
.name("string")
.statistics("string")
.build())
.scrapeIntervalSeconds(0)
.build())
.enabled(false)
.exportTags(false)
.name("string")
.regionsSubsetOverrides("string")
.services(AwsCloudwatchScrapeJobServiceArgs.builder()
.name("string")
.metrics(AwsCloudwatchScrapeJobServiceMetricArgs.builder()
.name("string")
.statistics("string")
.build())
.resourceDiscoveryTagFilters(AwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilterArgs.builder()
.key("string")
.value("string")
.build())
.scrapeIntervalSeconds(0)
.tagsToAddToMetrics("string")
.build())
.staticLabels(Map.of("string", "string"))
.build());
aws_cloudwatch_scrape_job_resource = grafana.cloud_provider.AwsCloudwatchScrapeJob("awsCloudwatchScrapeJobResource",
aws_account_resource_id="string",
stack_id="string",
custom_namespaces=[{
"name": "string",
"metrics": [{
"name": "string",
"statistics": ["string"],
}],
"scrape_interval_seconds": 0,
}],
enabled=False,
export_tags=False,
name="string",
regions_subset_overrides=["string"],
services=[{
"name": "string",
"metrics": [{
"name": "string",
"statistics": ["string"],
}],
"resource_discovery_tag_filters": [{
"key": "string",
"value": "string",
}],
"scrape_interval_seconds": 0,
"tags_to_add_to_metrics": ["string"],
}],
static_labels={
"string": "string",
})
const awsCloudwatchScrapeJobResource = new grafana.cloudprovider.AwsCloudwatchScrapeJob("awsCloudwatchScrapeJobResource", {
awsAccountResourceId: "string",
stackId: "string",
customNamespaces: [{
name: "string",
metrics: [{
name: "string",
statistics: ["string"],
}],
scrapeIntervalSeconds: 0,
}],
enabled: false,
exportTags: false,
name: "string",
regionsSubsetOverrides: ["string"],
services: [{
name: "string",
metrics: [{
name: "string",
statistics: ["string"],
}],
resourceDiscoveryTagFilters: [{
key: "string",
value: "string",
}],
scrapeIntervalSeconds: 0,
tagsToAddToMetrics: ["string"],
}],
staticLabels: {
string: "string",
},
});
type: grafana:cloudProvider:AwsCloudwatchScrapeJob
properties:
awsAccountResourceId: string
customNamespaces:
- metrics:
- name: string
statistics:
- string
name: string
scrapeIntervalSeconds: 0
enabled: false
exportTags: false
name: string
regionsSubsetOverrides:
- string
services:
- metrics:
- name: string
statistics:
- string
name: string
resourceDiscoveryTagFilters:
- key: string
value: string
scrapeIntervalSeconds: 0
tagsToAddToMetrics:
- string
stackId: string
staticLabels:
string: string
AwsCloudwatchScrapeJob 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 AwsCloudwatchScrapeJob resource accepts the following input properties:
- Aws
Account stringResource Id - 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 thegrafana.cloudProvider.AwsAccount
resource. - Stack
Id string - Custom
Namespaces List<Pulumiverse.Grafana. Cloud Provider. Inputs. Aws Cloudwatch Scrape Job Custom Namespace> - 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. - Enabled bool
- Whether the CloudWatch Scrape Job is enabled or not.
- bool
- When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as
aws_<service_name>_info
. - Name string
- Regions
Subset List<string>Overrides - A subset of the regions that are configured in the associated AWS Account resource to apply to this scrape job. If not set or empty, all of the Account resource's regions are scraped.
- Services
List<Pulumiverse.
Grafana. Cloud Provider. Inputs. Aws Cloudwatch Scrape Job Service> - One or more configuration blocks to configure AWS services 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. - Static
Labels Dictionary<string, string> - A set of static labels to add to all metrics exported by this scrape job.
- Aws
Account stringResource Id - 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 thegrafana.cloudProvider.AwsAccount
resource. - Stack
Id string - Custom
Namespaces []AwsCloudwatch Scrape Job Custom Namespace Args - 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. - Enabled bool
- Whether the CloudWatch Scrape Job is enabled or not.
- bool
- When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as
aws_<service_name>_info
. - Name string
- Regions
Subset []stringOverrides - A subset of the regions that are configured in the associated AWS Account resource to apply to this scrape job. If not set or empty, all of the Account resource's regions are scraped.
- Services
[]Aws
Cloudwatch Scrape Job Service Args - One or more configuration blocks to configure AWS services 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. - Static
Labels map[string]string - A set of static labels to add to all metrics exported by this scrape job.
- aws
Account StringResource Id - 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 thegrafana.cloudProvider.AwsAccount
resource. - stack
Id String - custom
Namespaces List<AwsCloudwatch Scrape Job Custom Namespace> - 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. - enabled Boolean
- Whether the CloudWatch Scrape Job is enabled or not.
- Boolean
- When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as
aws_<service_name>_info
. - name String
- regions
Subset List<String>Overrides - A subset of the regions that are configured in the associated AWS Account resource to apply to this scrape job. If not set or empty, all of the Account resource's regions are scraped.
- services
List<Aws
Cloudwatch Scrape Job Service> - One or more configuration blocks to configure AWS services 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. - static
Labels Map<String,String> - A set of static labels to add to all metrics exported by this scrape job.
- aws
Account stringResource Id - 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 thegrafana.cloudProvider.AwsAccount
resource. - stack
Id string - custom
Namespaces AwsCloudwatch Scrape Job Custom Namespace[] - 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. - enabled boolean
- Whether the CloudWatch Scrape Job is enabled or not.
- boolean
- When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as
aws_<service_name>_info
. - name string
- regions
Subset string[]Overrides - A subset of the regions that are configured in the associated AWS Account resource to apply to this scrape job. If not set or empty, all of the Account resource's regions are scraped.
- services
Aws
Cloudwatch Scrape Job Service[] - One or more configuration blocks to configure AWS services 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. - static
Labels {[key: string]: string} - A set of static labels to add to all metrics exported by this scrape job.
- aws_
account_ strresource_ id - 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 thegrafana.cloudProvider.AwsAccount
resource. - stack_
id str - custom_
namespaces Sequence[cloudprovider.Aws Cloudwatch Scrape Job Custom Namespace Args] - 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. - enabled bool
- Whether the CloudWatch Scrape Job is enabled or not.
- bool
- When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as
aws_<service_name>_info
. - name str
- regions_
subset_ Sequence[str]overrides - A subset of the regions that are configured in the associated AWS Account resource to apply to this scrape job. If not set or empty, all of the Account resource's regions are scraped.
- services
Sequence[cloudprovider.
Aws Cloudwatch Scrape Job Service Args] - One or more configuration blocks to configure AWS services 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. - static_
labels Mapping[str, str] - A set of static labels to add to all metrics exported by this scrape job.
- aws
Account StringResource Id - 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 thegrafana.cloudProvider.AwsAccount
resource. - stack
Id String - custom
Namespaces 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. - enabled Boolean
- Whether the CloudWatch Scrape Job is enabled or not.
- Boolean
- When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as
aws_<service_name>_info
. - name String
- regions
Subset List<String>Overrides - A subset of the regions that are configured in the associated AWS Account resource to apply to this scrape job. If not set or empty, all of the Account resource's regions are scraped.
- services List<Property Map>
- One or more configuration blocks to configure AWS services 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. - static
Labels Map<String> - A set of static labels to add to all metrics exported by this scrape job.
Outputs
All input properties are implicitly available as output properties. Additionally, the AwsCloudwatchScrapeJob resource produces the following output properties:
- Disabled
Reason string - When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
- Id string
- The provider-assigned unique ID for this managed resource.
- Disabled
Reason string - When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
- Id string
- The provider-assigned unique ID for this managed resource.
- disabled
Reason String - When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
- id String
- The provider-assigned unique ID for this managed resource.
- disabled
Reason string - When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
- id string
- The provider-assigned unique ID for this managed resource.
- disabled_
reason str - When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
- id str
- The provider-assigned unique ID for this managed resource.
- disabled
Reason String - When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AwsCloudwatchScrapeJob Resource
Get an existing AwsCloudwatchScrapeJob 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?: AwsCloudwatchScrapeJobState, opts?: CustomResourceOptions): AwsCloudwatchScrapeJob
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
aws_account_resource_id: Optional[str] = None,
custom_namespaces: Optional[Sequence[_cloudprovider.AwsCloudwatchScrapeJobCustomNamespaceArgs]] = None,
disabled_reason: Optional[str] = None,
enabled: Optional[bool] = None,
export_tags: Optional[bool] = None,
name: Optional[str] = None,
regions_subset_overrides: Optional[Sequence[str]] = None,
services: Optional[Sequence[_cloudprovider.AwsCloudwatchScrapeJobServiceArgs]] = None,
stack_id: Optional[str] = None,
static_labels: Optional[Mapping[str, str]] = None) -> AwsCloudwatchScrapeJob
func GetAwsCloudwatchScrapeJob(ctx *Context, name string, id IDInput, state *AwsCloudwatchScrapeJobState, opts ...ResourceOption) (*AwsCloudwatchScrapeJob, error)
public static AwsCloudwatchScrapeJob Get(string name, Input<string> id, AwsCloudwatchScrapeJobState? state, CustomResourceOptions? opts = null)
public static AwsCloudwatchScrapeJob get(String name, Output<String> id, AwsCloudwatchScrapeJobState state, CustomResourceOptions options)
resources: _: type: grafana:cloudProvider:AwsCloudwatchScrapeJob get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Aws
Account stringResource Id - 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 thegrafana.cloudProvider.AwsAccount
resource. - Custom
Namespaces List<Pulumiverse.Grafana. Cloud Provider. Inputs. Aws Cloudwatch Scrape Job Custom Namespace> - 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. - Disabled
Reason string - When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
- Enabled bool
- Whether the CloudWatch Scrape Job is enabled or not.
- bool
- When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as
aws_<service_name>_info
. - Name string
- Regions
Subset List<string>Overrides - A subset of the regions that are configured in the associated AWS Account resource to apply to this scrape job. If not set or empty, all of the Account resource's regions are scraped.
- Services
List<Pulumiverse.
Grafana. Cloud Provider. Inputs. Aws Cloudwatch Scrape Job Service> - One or more configuration blocks to configure AWS services 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. - Stack
Id string - Static
Labels Dictionary<string, string> - A set of static labels to add to all metrics exported by this scrape job.
- Aws
Account stringResource Id - 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 thegrafana.cloudProvider.AwsAccount
resource. - Custom
Namespaces []AwsCloudwatch Scrape Job Custom Namespace Args - 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. - Disabled
Reason string - When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
- Enabled bool
- Whether the CloudWatch Scrape Job is enabled or not.
- bool
- When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as
aws_<service_name>_info
. - Name string
- Regions
Subset []stringOverrides - A subset of the regions that are configured in the associated AWS Account resource to apply to this scrape job. If not set or empty, all of the Account resource's regions are scraped.
- Services
[]Aws
Cloudwatch Scrape Job Service Args - One or more configuration blocks to configure AWS services 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. - Stack
Id string - Static
Labels map[string]string - A set of static labels to add to all metrics exported by this scrape job.
- aws
Account StringResource Id - 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 thegrafana.cloudProvider.AwsAccount
resource. - custom
Namespaces List<AwsCloudwatch Scrape Job Custom Namespace> - 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. - disabled
Reason String - When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
- enabled Boolean
- Whether the CloudWatch Scrape Job is enabled or not.
- Boolean
- When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as
aws_<service_name>_info
. - name String
- regions
Subset List<String>Overrides - A subset of the regions that are configured in the associated AWS Account resource to apply to this scrape job. If not set or empty, all of the Account resource's regions are scraped.
- services
List<Aws
Cloudwatch Scrape Job Service> - One or more configuration blocks to configure AWS services 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. - stack
Id String - static
Labels Map<String,String> - A set of static labels to add to all metrics exported by this scrape job.
- aws
Account stringResource Id - 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 thegrafana.cloudProvider.AwsAccount
resource. - custom
Namespaces AwsCloudwatch Scrape Job Custom Namespace[] - 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. - disabled
Reason string - When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
- enabled boolean
- Whether the CloudWatch Scrape Job is enabled or not.
- boolean
- When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as
aws_<service_name>_info
. - name string
- regions
Subset string[]Overrides - A subset of the regions that are configured in the associated AWS Account resource to apply to this scrape job. If not set or empty, all of the Account resource's regions are scraped.
- services
Aws
Cloudwatch Scrape Job Service[] - One or more configuration blocks to configure AWS services 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. - stack
Id string - static
Labels {[key: string]: string} - A set of static labels to add to all metrics exported by this scrape job.
- aws_
account_ strresource_ id - 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 thegrafana.cloudProvider.AwsAccount
resource. - custom_
namespaces Sequence[cloudprovider.Aws Cloudwatch Scrape Job Custom Namespace Args] - 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. - disabled_
reason str - When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
- enabled bool
- Whether the CloudWatch Scrape Job is enabled or not.
- bool
- When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as
aws_<service_name>_info
. - name str
- regions_
subset_ Sequence[str]overrides - A subset of the regions that are configured in the associated AWS Account resource to apply to this scrape job. If not set or empty, all of the Account resource's regions are scraped.
- services
Sequence[cloudprovider.
Aws Cloudwatch Scrape Job Service Args] - One or more configuration blocks to configure AWS services 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. - stack_
id str - static_
labels Mapping[str, str] - A set of static labels to add to all metrics exported by this scrape job.
- aws
Account StringResource Id - 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 thegrafana.cloudProvider.AwsAccount
resource. - custom
Namespaces 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. - disabled
Reason String - When the CloudWatch Scrape Job is disabled, this will show the reason that it is in that state.
- enabled Boolean
- Whether the CloudWatch Scrape Job is enabled or not.
- Boolean
- When enabled, AWS resource tags are exported as Prometheus labels to metrics formatted as
aws_<service_name>_info
. - name String
- regions
Subset List<String>Overrides - A subset of the regions that are configured in the associated AWS Account resource to apply to this scrape job. If not set or empty, all of the Account resource's regions are scraped.
- services List<Property Map>
- One or more configuration blocks to configure AWS services 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. - stack
Id String - static
Labels Map<String> - A set of static labels to add to all metrics exported by this scrape job.
Supporting Types
AwsCloudwatchScrapeJobCustomNamespace, AwsCloudwatchScrapeJobCustomNamespaceArgs
- Name string
- The name of the custom namespace to scrape.
- Metrics
List<Pulumiverse.
Grafana. Cloud Provider. Inputs. Aws Cloudwatch Scrape Job Custom Namespace Metric> - 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.
- Scrape
Interval intSeconds - The interval in seconds to scrape the custom namespace.
- Name string
- The name of the custom namespace to scrape.
- Metrics
[]Aws
Cloudwatch Scrape Job Custom Namespace Metric - 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.
- Scrape
Interval intSeconds - The interval in seconds to scrape the custom namespace.
- name String
- The name of the custom namespace to scrape.
- metrics
List<Aws
Cloudwatch Scrape Job Custom Namespace Metric> - 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.
- scrape
Interval IntegerSeconds - The interval in seconds to scrape the custom namespace.
- name string
- The name of the custom namespace to scrape.
- metrics
Aws
Cloudwatch Scrape Job Custom Namespace Metric[] - 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.
- scrape
Interval numberSeconds - The interval in seconds to scrape the custom namespace.
- name str
- The name of the custom namespace to scrape.
- metrics
Sequence[cloudprovider.
Aws Cloudwatch Scrape Job Custom Namespace Metric] - 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.
- scrape_
interval_ intseconds - The interval in seconds to scrape the custom namespace.
- name String
- The name of the custom namespace to scrape.
- 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.
- scrape
Interval NumberSeconds - The interval in seconds to scrape the custom namespace.
AwsCloudwatchScrapeJobCustomNamespaceMetric, AwsCloudwatchScrapeJobCustomNamespaceMetricArgs
- Name string
- The name of the metric to scrape.
- Statistics List<string>
- A set of statistics to scrape.
- Name string
- The name of the metric to scrape.
- Statistics []string
- A set of statistics to scrape.
- name String
- The name of the metric to scrape.
- statistics List<String>
- A set of statistics to scrape.
- name string
- The name of the metric to scrape.
- statistics string[]
- A set of statistics to scrape.
- name str
- The name of the metric to scrape.
- statistics Sequence[str]
- A set of statistics to scrape.
- name String
- The name of the metric to scrape.
- statistics List<String>
- A set of statistics to scrape.
AwsCloudwatchScrapeJobService, AwsCloudwatchScrapeJobServiceArgs
- Name 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
List<Pulumiverse.
Grafana. Cloud Provider. Inputs. Aws Cloudwatch Scrape Job Service Metric> - One or more configuration blocks to configure metrics and their statistics to scrape. Please note that AWS metric names must be supplied, and not their PromQL counterparts. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
- Resource
Discovery List<Pulumiverse.Tag Filters Grafana. Cloud Provider. Inputs. Aws Cloudwatch Scrape Job Service Resource Discovery Tag Filter> - 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.
- Scrape
Interval intSeconds - 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.
- List<string>
- A set of tags to add to all metrics exported by this scrape job, for use in PromQL queries.
- Name 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
[]Aws
Cloudwatch Scrape Job Service Metric - One or more configuration blocks to configure metrics and their statistics to scrape. Please note that AWS metric names must be supplied, and not their PromQL counterparts. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
- Resource
Discovery []AwsTag Filters Cloudwatch Scrape Job Service Resource Discovery Tag Filter - 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.
- Scrape
Interval intSeconds - 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.
- []string
- A set of tags to add to all metrics exported by this scrape job, for use in PromQL queries.
- name 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
List<Aws
Cloudwatch Scrape Job Service Metric> - One or more configuration blocks to configure metrics and their statistics to scrape. Please note that AWS metric names must be supplied, and not their PromQL counterparts. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
- resource
Discovery List<AwsTag Filters Cloudwatch Scrape Job Service Resource Discovery Tag Filter> - 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.
- scrape
Interval IntegerSeconds - 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.
- List<String>
- A set of tags to add to all metrics exported by this scrape job, for use in PromQL queries.
- name 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
Aws
Cloudwatch Scrape Job Service Metric[] - One or more configuration blocks to configure metrics and their statistics to scrape. Please note that AWS metric names must be supplied, and not their PromQL counterparts. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
- resource
Discovery AwsTag Filters Cloudwatch Scrape Job Service Resource Discovery Tag Filter[] - 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.
- scrape
Interval numberSeconds - 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.
- string[]
- A set of tags to add to all metrics exported by this scrape job, for use in PromQL queries.
- name 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
Sequence[cloudprovider.
Aws Cloudwatch Scrape Job Service Metric] - One or more configuration blocks to configure metrics and their statistics to scrape. Please note that AWS metric names must be supplied, and not their PromQL counterparts. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
- resource_
discovery_ Sequence[cloudprovider.tag_ filters Aws Cloudwatch Scrape Job Service Resource Discovery Tag Filter] - 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.
- scrape_
interval_ intseconds - 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.
- Sequence[str]
- A set of tags to add to all metrics exported by this scrape job, for use in PromQL queries.
- name 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 List<Property Map>
- One or more configuration blocks to configure metrics and their statistics to scrape. Please note that AWS metric names must be supplied, and not their PromQL counterparts. Each block must represent a distinct metric name. When accessing this as an attribute reference, it is a list of objects.
- resource
Discovery List<Property Map>Tag Filters - 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.
- scrape
Interval NumberSeconds - 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.
- List<String>
- A set of tags to add to all metrics exported by this scrape job, for use in PromQL queries.
AwsCloudwatchScrapeJobServiceMetric, AwsCloudwatchScrapeJobServiceMetricArgs
- Name string
- The name of the metric to scrape.
- Statistics List<string>
- A set of statistics to scrape.
- Name string
- The name of the metric to scrape.
- Statistics []string
- A set of statistics to scrape.
- name String
- The name of the metric to scrape.
- statistics List<String>
- A set of statistics to scrape.
- name string
- The name of the metric to scrape.
- statistics string[]
- A set of statistics to scrape.
- name str
- The name of the metric to scrape.
- statistics Sequence[str]
- A set of statistics to scrape.
- name String
- The name of the metric to scrape.
- statistics List<String>
- A set of statistics to scrape.
AwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilter, AwsCloudwatchScrapeJobServiceResourceDiscoveryTagFilterArgs
Import
$ pulumi import grafana:cloudProvider/awsCloudwatchScrapeJob:AwsCloudwatchScrapeJob name "{{ stack_id }}:{{ name }}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafana
Terraform Provider.