alicloud.arms.Prometheus
Explore with Pulumi AI
Provides a Application Real-Time Monitoring Service (ARMS) Prometheus resource.
For information about Application Real-Time Monitoring Service (ARMS) Prometheus and how to use it, see What is Prometheus.
NOTE: Available since v1.203.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf_example";
const default = alicloud.getZones({
availableResourceCreation: "VSwitch",
});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "10.4.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vswitchName: name,
cidrBlock: "10.4.0.0/24",
vpcId: defaultNetwork.id,
zoneId: Promise.all([_default, _default.then(_default => _default.zones).length]).then(([_default, length]) => _default.zones[length - 1].id),
});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
name: name,
vpcId: defaultNetwork.id,
});
const defaultGetResourceGroups = alicloud.resourcemanager.getResourceGroups({});
const defaultPrometheus = new alicloud.arms.Prometheus("default", {
clusterType: "ecs",
grafanaInstanceId: "free",
vpcId: defaultNetwork.id,
vswitchId: defaultSwitch.id,
securityGroupId: defaultSecurityGroup.id,
clusterName: pulumi.interpolate`${name}-${defaultNetwork.id}`,
resourceGroupId: defaultGetResourceGroups.then(defaultGetResourceGroups => defaultGetResourceGroups.groups?.[0]?.id),
tags: {
Created: "TF",
For: "Prometheus",
},
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf_example"
default = alicloud.get_zones(available_resource_creation="VSwitch")
default_network = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="10.4.0.0/16")
default_switch = alicloud.vpc.Switch("default",
vswitch_name=name,
cidr_block="10.4.0.0/24",
vpc_id=default_network.id,
zone_id=default.zones[len(default.zones) - 1].id)
default_security_group = alicloud.ecs.SecurityGroup("default",
name=name,
vpc_id=default_network.id)
default_get_resource_groups = alicloud.resourcemanager.get_resource_groups()
default_prometheus = alicloud.arms.Prometheus("default",
cluster_type="ecs",
grafana_instance_id="free",
vpc_id=default_network.id,
vswitch_id=default_switch.id,
security_group_id=default_security_group.id,
cluster_name=default_network.id.apply(lambda id: f"{name}-{id}"),
resource_group_id=default_get_resource_groups.groups[0].id,
tags={
"Created": "TF",
"For": "Prometheus",
})
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/arms"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf_example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableResourceCreation: pulumi.StringRef("VSwitch"),
}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/16"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VswitchName: pulumi.String(name),
CidrBlock: pulumi.String("10.4.0.0/24"),
VpcId: defaultNetwork.ID(),
ZoneId: _default.Zones[len(_default.Zones)-1].Id,
})
if err != nil {
return err
}
defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
Name: pulumi.String(name),
VpcId: defaultNetwork.ID(),
})
if err != nil {
return err
}
defaultGetResourceGroups, err := resourcemanager.GetResourceGroups(ctx, nil, nil)
if err != nil {
return err
}
_, err = arms.NewPrometheus(ctx, "default", &arms.PrometheusArgs{
ClusterType: pulumi.String("ecs"),
GrafanaInstanceId: pulumi.String("free"),
VpcId: defaultNetwork.ID(),
VswitchId: defaultSwitch.ID(),
SecurityGroupId: defaultSecurityGroup.ID(),
ClusterName: defaultNetwork.ID().ApplyT(func(id string) (string, error) {
return fmt.Sprintf("%v-%v", name, id), nil
}).(pulumi.StringOutput),
ResourceGroupId: pulumi.String(defaultGetResourceGroups.Groups[0].Id),
Tags: pulumi.StringMap{
"Created": pulumi.String("TF"),
"For": pulumi.String("Prometheus"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf_example";
var @default = AliCloud.GetZones.Invoke(new()
{
AvailableResourceCreation = "VSwitch",
});
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "10.4.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VswitchName = name,
CidrBlock = "10.4.0.0/24",
VpcId = defaultNetwork.Id,
ZoneId = Output.Tuple(@default, @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones)).Length).Apply(values =>
{
var @default = values.Item1;
var length = values.Item2;
return @default.Apply(getZonesResult => getZonesResult.Zones)[length - 1].Id;
}),
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
{
Name = name,
VpcId = defaultNetwork.Id,
});
var defaultGetResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke();
var defaultPrometheus = new AliCloud.Arms.Prometheus("default", new()
{
ClusterType = "ecs",
GrafanaInstanceId = "free",
VpcId = defaultNetwork.Id,
VswitchId = defaultSwitch.Id,
SecurityGroupId = defaultSecurityGroup.Id,
ClusterName = defaultNetwork.Id.Apply(id => $"{name}-{id}"),
ResourceGroupId = defaultGetResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Groups[0]?.Id),
Tags =
{
{ "Created", "TF" },
{ "For", "Prometheus" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.arms.Prometheus;
import com.pulumi.alicloud.arms.PrometheusArgs;
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 name = config.get("name").orElse("tf_example");
final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("VSwitch")
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.4.0.0/16")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vswitchName(name)
.cidrBlock("10.4.0.0/24")
.vpcId(defaultNetwork.id())
.zoneId(default_.zones()[default_.zones().length() - 1].id())
.build());
var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
.name(name)
.vpcId(defaultNetwork.id())
.build());
final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups();
var defaultPrometheus = new Prometheus("defaultPrometheus", PrometheusArgs.builder()
.clusterType("ecs")
.grafanaInstanceId("free")
.vpcId(defaultNetwork.id())
.vswitchId(defaultSwitch.id())
.securityGroupId(defaultSecurityGroup.id())
.clusterName(defaultNetwork.id().applyValue(id -> String.format("%s-%s", name,id)))
.resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[0].id()))
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "Prometheus")
))
.build());
}
}
Coming soon!
Create Prometheus Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Prometheus(name: string, args: PrometheusArgs, opts?: CustomResourceOptions);
@overload
def Prometheus(resource_name: str,
args: PrometheusArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Prometheus(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_type: Optional[str] = None,
grafana_instance_id: Optional[str] = None,
cluster_id: Optional[str] = None,
cluster_name: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_group_id: Optional[str] = None,
sub_clusters_json: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None)
func NewPrometheus(ctx *Context, name string, args PrometheusArgs, opts ...ResourceOption) (*Prometheus, error)
public Prometheus(string name, PrometheusArgs args, CustomResourceOptions? opts = null)
public Prometheus(String name, PrometheusArgs args)
public Prometheus(String name, PrometheusArgs args, CustomResourceOptions options)
type: alicloud:arms:Prometheus
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 PrometheusArgs
- 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 PrometheusArgs
- 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 PrometheusArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrometheusArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrometheusArgs
- 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 prometheusResource = new AliCloud.Arms.Prometheus("prometheusResource", new()
{
ClusterType = "string",
GrafanaInstanceId = "string",
ClusterId = "string",
ClusterName = "string",
ResourceGroupId = "string",
SecurityGroupId = "string",
SubClustersJson = "string",
Tags =
{
{ "string", "string" },
},
VpcId = "string",
VswitchId = "string",
});
example, err := arms.NewPrometheus(ctx, "prometheusResource", &arms.PrometheusArgs{
ClusterType: pulumi.String("string"),
GrafanaInstanceId: pulumi.String("string"),
ClusterId: pulumi.String("string"),
ClusterName: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
SubClustersJson: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
VpcId: pulumi.String("string"),
VswitchId: pulumi.String("string"),
})
var prometheusResource = new Prometheus("prometheusResource", PrometheusArgs.builder()
.clusterType("string")
.grafanaInstanceId("string")
.clusterId("string")
.clusterName("string")
.resourceGroupId("string")
.securityGroupId("string")
.subClustersJson("string")
.tags(Map.of("string", "string"))
.vpcId("string")
.vswitchId("string")
.build());
prometheus_resource = alicloud.arms.Prometheus("prometheusResource",
cluster_type="string",
grafana_instance_id="string",
cluster_id="string",
cluster_name="string",
resource_group_id="string",
security_group_id="string",
sub_clusters_json="string",
tags={
"string": "string",
},
vpc_id="string",
vswitch_id="string")
const prometheusResource = new alicloud.arms.Prometheus("prometheusResource", {
clusterType: "string",
grafanaInstanceId: "string",
clusterId: "string",
clusterName: "string",
resourceGroupId: "string",
securityGroupId: "string",
subClustersJson: "string",
tags: {
string: "string",
},
vpcId: "string",
vswitchId: "string",
});
type: alicloud:arms:Prometheus
properties:
clusterId: string
clusterName: string
clusterType: string
grafanaInstanceId: string
resourceGroupId: string
securityGroupId: string
subClustersJson: string
tags:
string: string
vpcId: string
vswitchId: string
Prometheus Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Prometheus resource accepts the following input properties:
- Cluster
Type string - The type of the Prometheus instance. Valid values:
remote-write
,ecs
,global-view
,aliyun-cs
. - Grafana
Instance stringId - The ID of the Grafana dedicated instance. When using the shared version of Grafana, you can set
grafana_instance_id
tofree
. - Cluster
Id string - The ID of the Kubernetes cluster. This parameter is required, if you set
cluster_type
toaliyun-cs
. - Cluster
Name string - The name of the created cluster. This parameter is required, if you set
cluster_type
toremote-write
,ecs
orglobal-view
. - Resource
Group stringId - The ID of the resource group.
- Security
Group stringId - The ID of the security group. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - Sub
Clusters stringJson - The child instance json string of the globalView instance.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Vpc
Id string - The ID of the VPC. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - Vswitch
Id string - The ID of the VSwitch. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance).
- Cluster
Type string - The type of the Prometheus instance. Valid values:
remote-write
,ecs
,global-view
,aliyun-cs
. - Grafana
Instance stringId - The ID of the Grafana dedicated instance. When using the shared version of Grafana, you can set
grafana_instance_id
tofree
. - Cluster
Id string - The ID of the Kubernetes cluster. This parameter is required, if you set
cluster_type
toaliyun-cs
. - Cluster
Name string - The name of the created cluster. This parameter is required, if you set
cluster_type
toremote-write
,ecs
orglobal-view
. - Resource
Group stringId - The ID of the resource group.
- Security
Group stringId - The ID of the security group. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - Sub
Clusters stringJson - The child instance json string of the globalView instance.
- map[string]string
- A mapping of tags to assign to the resource.
- Vpc
Id string - The ID of the VPC. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - Vswitch
Id string - The ID of the VSwitch. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance).
- cluster
Type String - The type of the Prometheus instance. Valid values:
remote-write
,ecs
,global-view
,aliyun-cs
. - grafana
Instance StringId - The ID of the Grafana dedicated instance. When using the shared version of Grafana, you can set
grafana_instance_id
tofree
. - cluster
Id String - The ID of the Kubernetes cluster. This parameter is required, if you set
cluster_type
toaliyun-cs
. - cluster
Name String - The name of the created cluster. This parameter is required, if you set
cluster_type
toremote-write
,ecs
orglobal-view
. - resource
Group StringId - The ID of the resource group.
- security
Group StringId - The ID of the security group. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - sub
Clusters StringJson - The child instance json string of the globalView instance.
- Map<String,String>
- A mapping of tags to assign to the resource.
- vpc
Id String - The ID of the VPC. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - vswitch
Id String - The ID of the VSwitch. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance).
- cluster
Type string - The type of the Prometheus instance. Valid values:
remote-write
,ecs
,global-view
,aliyun-cs
. - grafana
Instance stringId - The ID of the Grafana dedicated instance. When using the shared version of Grafana, you can set
grafana_instance_id
tofree
. - cluster
Id string - The ID of the Kubernetes cluster. This parameter is required, if you set
cluster_type
toaliyun-cs
. - cluster
Name string - The name of the created cluster. This parameter is required, if you set
cluster_type
toremote-write
,ecs
orglobal-view
. - resource
Group stringId - The ID of the resource group.
- security
Group stringId - The ID of the security group. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - sub
Clusters stringJson - The child instance json string of the globalView instance.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- vpc
Id string - The ID of the VPC. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - vswitch
Id string - The ID of the VSwitch. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance).
- cluster_
type str - The type of the Prometheus instance. Valid values:
remote-write
,ecs
,global-view
,aliyun-cs
. - grafana_
instance_ strid - The ID of the Grafana dedicated instance. When using the shared version of Grafana, you can set
grafana_instance_id
tofree
. - cluster_
id str - The ID of the Kubernetes cluster. This parameter is required, if you set
cluster_type
toaliyun-cs
. - cluster_
name str - The name of the created cluster. This parameter is required, if you set
cluster_type
toremote-write
,ecs
orglobal-view
. - resource_
group_ strid - The ID of the resource group.
- security_
group_ strid - The ID of the security group. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - sub_
clusters_ strjson - The child instance json string of the globalView instance.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- vpc_
id str - The ID of the VPC. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - vswitch_
id str - The ID of the VSwitch. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance).
- cluster
Type String - The type of the Prometheus instance. Valid values:
remote-write
,ecs
,global-view
,aliyun-cs
. - grafana
Instance StringId - The ID of the Grafana dedicated instance. When using the shared version of Grafana, you can set
grafana_instance_id
tofree
. - cluster
Id String - The ID of the Kubernetes cluster. This parameter is required, if you set
cluster_type
toaliyun-cs
. - cluster
Name String - The name of the created cluster. This parameter is required, if you set
cluster_type
toremote-write
,ecs
orglobal-view
. - resource
Group StringId - The ID of the resource group.
- security
Group StringId - The ID of the security group. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - sub
Clusters StringJson - The child instance json string of the globalView instance.
- Map<String>
- A mapping of tags to assign to the resource.
- vpc
Id String - The ID of the VPC. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - vswitch
Id String - The ID of the VSwitch. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance).
Outputs
All input properties are implicitly available as output properties. Additionally, the Prometheus resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Prometheus Resource
Get an existing Prometheus 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?: PrometheusState, opts?: CustomResourceOptions): Prometheus
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
cluster_name: Optional[str] = None,
cluster_type: Optional[str] = None,
grafana_instance_id: Optional[str] = None,
resource_group_id: Optional[str] = None,
security_group_id: Optional[str] = None,
sub_clusters_json: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None) -> Prometheus
func GetPrometheus(ctx *Context, name string, id IDInput, state *PrometheusState, opts ...ResourceOption) (*Prometheus, error)
public static Prometheus Get(string name, Input<string> id, PrometheusState? state, CustomResourceOptions? opts = null)
public static Prometheus get(String name, Output<String> id, PrometheusState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Cluster
Id string - The ID of the Kubernetes cluster. This parameter is required, if you set
cluster_type
toaliyun-cs
. - Cluster
Name string - The name of the created cluster. This parameter is required, if you set
cluster_type
toremote-write
,ecs
orglobal-view
. - Cluster
Type string - The type of the Prometheus instance. Valid values:
remote-write
,ecs
,global-view
,aliyun-cs
. - Grafana
Instance stringId - The ID of the Grafana dedicated instance. When using the shared version of Grafana, you can set
grafana_instance_id
tofree
. - Resource
Group stringId - The ID of the resource group.
- Security
Group stringId - The ID of the security group. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - Sub
Clusters stringJson - The child instance json string of the globalView instance.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Vpc
Id string - The ID of the VPC. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - Vswitch
Id string - The ID of the VSwitch. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance).
- Cluster
Id string - The ID of the Kubernetes cluster. This parameter is required, if you set
cluster_type
toaliyun-cs
. - Cluster
Name string - The name of the created cluster. This parameter is required, if you set
cluster_type
toremote-write
,ecs
orglobal-view
. - Cluster
Type string - The type of the Prometheus instance. Valid values:
remote-write
,ecs
,global-view
,aliyun-cs
. - Grafana
Instance stringId - The ID of the Grafana dedicated instance. When using the shared version of Grafana, you can set
grafana_instance_id
tofree
. - Resource
Group stringId - The ID of the resource group.
- Security
Group stringId - The ID of the security group. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - Sub
Clusters stringJson - The child instance json string of the globalView instance.
- map[string]string
- A mapping of tags to assign to the resource.
- Vpc
Id string - The ID of the VPC. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - Vswitch
Id string - The ID of the VSwitch. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance).
- cluster
Id String - The ID of the Kubernetes cluster. This parameter is required, if you set
cluster_type
toaliyun-cs
. - cluster
Name String - The name of the created cluster. This parameter is required, if you set
cluster_type
toremote-write
,ecs
orglobal-view
. - cluster
Type String - The type of the Prometheus instance. Valid values:
remote-write
,ecs
,global-view
,aliyun-cs
. - grafana
Instance StringId - The ID of the Grafana dedicated instance. When using the shared version of Grafana, you can set
grafana_instance_id
tofree
. - resource
Group StringId - The ID of the resource group.
- security
Group StringId - The ID of the security group. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - sub
Clusters StringJson - The child instance json string of the globalView instance.
- Map<String,String>
- A mapping of tags to assign to the resource.
- vpc
Id String - The ID of the VPC. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - vswitch
Id String - The ID of the VSwitch. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance).
- cluster
Id string - The ID of the Kubernetes cluster. This parameter is required, if you set
cluster_type
toaliyun-cs
. - cluster
Name string - The name of the created cluster. This parameter is required, if you set
cluster_type
toremote-write
,ecs
orglobal-view
. - cluster
Type string - The type of the Prometheus instance. Valid values:
remote-write
,ecs
,global-view
,aliyun-cs
. - grafana
Instance stringId - The ID of the Grafana dedicated instance. When using the shared version of Grafana, you can set
grafana_instance_id
tofree
. - resource
Group stringId - The ID of the resource group.
- security
Group stringId - The ID of the security group. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - sub
Clusters stringJson - The child instance json string of the globalView instance.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- vpc
Id string - The ID of the VPC. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - vswitch
Id string - The ID of the VSwitch. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance).
- cluster_
id str - The ID of the Kubernetes cluster. This parameter is required, if you set
cluster_type
toaliyun-cs
. - cluster_
name str - The name of the created cluster. This parameter is required, if you set
cluster_type
toremote-write
,ecs
orglobal-view
. - cluster_
type str - The type of the Prometheus instance. Valid values:
remote-write
,ecs
,global-view
,aliyun-cs
. - grafana_
instance_ strid - The ID of the Grafana dedicated instance. When using the shared version of Grafana, you can set
grafana_instance_id
tofree
. - resource_
group_ strid - The ID of the resource group.
- security_
group_ strid - The ID of the security group. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - sub_
clusters_ strjson - The child instance json string of the globalView instance.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- vpc_
id str - The ID of the VPC. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - vswitch_
id str - The ID of the VSwitch. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance).
- cluster
Id String - The ID of the Kubernetes cluster. This parameter is required, if you set
cluster_type
toaliyun-cs
. - cluster
Name String - The name of the created cluster. This parameter is required, if you set
cluster_type
toremote-write
,ecs
orglobal-view
. - cluster
Type String - The type of the Prometheus instance. Valid values:
remote-write
,ecs
,global-view
,aliyun-cs
. - grafana
Instance StringId - The ID of the Grafana dedicated instance. When using the shared version of Grafana, you can set
grafana_instance_id
tofree
. - resource
Group StringId - The ID of the resource group.
- security
Group StringId - The ID of the security group. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - sub
Clusters StringJson - The child instance json string of the globalView instance.
- Map<String>
- A mapping of tags to assign to the resource.
- vpc
Id String - The ID of the VPC. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance). - vswitch
Id String - The ID of the VSwitch. This parameter is required, if you set
cluster_type
toecs
oraliyun-cs
(ASK instance).
Import
Application Real-Time Monitoring Service (ARMS) Prometheus can be imported using the id, e.g.
$ pulumi import alicloud:arms/prometheus:Prometheus example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.