1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. arms
  5. PrometheusMonitoring
Alibaba Cloud v3.59.0 published on Friday, Jul 12, 2024 by Pulumi

alicloud.arms.PrometheusMonitoring

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.59.0 published on Friday, Jul 12, 2024 by Pulumi

    Provides a ARMS Prometheus Monitoring resource. Including serviceMonitor, podMonitor, customJob, probe and other four types of monitoring.

    For information about ARMS Prometheus Monitoring and how to use it, see What is Prometheus Monitoring.

    NOTE: Available since v1.209.0.

    Create PrometheusMonitoring Resource

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

    Constructor syntax

    new PrometheusMonitoring(name: string, args: PrometheusMonitoringArgs, opts?: CustomResourceOptions);
    @overload
    def PrometheusMonitoring(resource_name: str,
                             args: PrometheusMonitoringArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def PrometheusMonitoring(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             cluster_id: Optional[str] = None,
                             config_yaml: Optional[str] = None,
                             type: Optional[str] = None,
                             status: Optional[str] = None)
    func NewPrometheusMonitoring(ctx *Context, name string, args PrometheusMonitoringArgs, opts ...ResourceOption) (*PrometheusMonitoring, error)
    public PrometheusMonitoring(string name, PrometheusMonitoringArgs args, CustomResourceOptions? opts = null)
    public PrometheusMonitoring(String name, PrometheusMonitoringArgs args)
    public PrometheusMonitoring(String name, PrometheusMonitoringArgs args, CustomResourceOptions options)
    
    type: alicloud:arms:PrometheusMonitoring
    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 PrometheusMonitoringArgs
    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 PrometheusMonitoringArgs
    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 PrometheusMonitoringArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PrometheusMonitoringArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PrometheusMonitoringArgs
    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 prometheusMonitoringResource = new AliCloud.Arms.PrometheusMonitoring("prometheusMonitoringResource", new()
    {
        ClusterId = "string",
        ConfigYaml = "string",
        Type = "string",
        Status = "string",
    });
    
    example, err := arms.NewPrometheusMonitoring(ctx, "prometheusMonitoringResource", &arms.PrometheusMonitoringArgs{
    	ClusterId:  pulumi.String("string"),
    	ConfigYaml: pulumi.String("string"),
    	Type:       pulumi.String("string"),
    	Status:     pulumi.String("string"),
    })
    
    var prometheusMonitoringResource = new PrometheusMonitoring("prometheusMonitoringResource", PrometheusMonitoringArgs.builder()
        .clusterId("string")
        .configYaml("string")
        .type("string")
        .status("string")
        .build());
    
    prometheus_monitoring_resource = alicloud.arms.PrometheusMonitoring("prometheusMonitoringResource",
        cluster_id="string",
        config_yaml="string",
        type="string",
        status="string")
    
    const prometheusMonitoringResource = new alicloud.arms.PrometheusMonitoring("prometheusMonitoringResource", {
        clusterId: "string",
        configYaml: "string",
        type: "string",
        status: "string",
    });
    
    type: alicloud:arms:PrometheusMonitoring
    properties:
        clusterId: string
        configYaml: string
        status: string
        type: string
    

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

    ClusterId string
    The ID of the prometheus instance.
    ConfigYaml string
    Yaml configuration for monitoring.
    Type string
    Monitoring type: serviceMonitor, podMonitor, customJob, probe.
    Status string
    Valid values: stop, run.
    ClusterId string
    The ID of the prometheus instance.
    ConfigYaml string
    Yaml configuration for monitoring.
    Type string
    Monitoring type: serviceMonitor, podMonitor, customJob, probe.
    Status string
    Valid values: stop, run.
    clusterId String
    The ID of the prometheus instance.
    configYaml String
    Yaml configuration for monitoring.
    type String
    Monitoring type: serviceMonitor, podMonitor, customJob, probe.
    status String
    Valid values: stop, run.
    clusterId string
    The ID of the prometheus instance.
    configYaml string
    Yaml configuration for monitoring.
    type string
    Monitoring type: serviceMonitor, podMonitor, customJob, probe.
    status string
    Valid values: stop, run.
    cluster_id str
    The ID of the prometheus instance.
    config_yaml str
    Yaml configuration for monitoring.
    type str
    Monitoring type: serviceMonitor, podMonitor, customJob, probe.
    status str
    Valid values: stop, run.
    clusterId String
    The ID of the prometheus instance.
    configYaml String
    Yaml configuration for monitoring.
    type String
    Monitoring type: serviceMonitor, podMonitor, customJob, probe.
    status String
    Valid values: stop, run.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    MonitoringName string
    The name of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    MonitoringName string
    The name of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    monitoringName String
    The name of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    monitoringName string
    The name of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    monitoring_name str
    The name of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    monitoringName String
    The name of the resource.

    Look up Existing PrometheusMonitoring Resource

    Get an existing PrometheusMonitoring 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?: PrometheusMonitoringState, opts?: CustomResourceOptions): PrometheusMonitoring
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            config_yaml: Optional[str] = None,
            monitoring_name: Optional[str] = None,
            status: Optional[str] = None,
            type: Optional[str] = None) -> PrometheusMonitoring
    func GetPrometheusMonitoring(ctx *Context, name string, id IDInput, state *PrometheusMonitoringState, opts ...ResourceOption) (*PrometheusMonitoring, error)
    public static PrometheusMonitoring Get(string name, Input<string> id, PrometheusMonitoringState? state, CustomResourceOptions? opts = null)
    public static PrometheusMonitoring get(String name, Output<String> id, PrometheusMonitoringState 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.
    The following state arguments are supported:
    ClusterId string
    The ID of the prometheus instance.
    ConfigYaml string
    Yaml configuration for monitoring.
    MonitoringName string
    The name of the resource.
    Status string
    Valid values: stop, run.
    Type string
    Monitoring type: serviceMonitor, podMonitor, customJob, probe.
    ClusterId string
    The ID of the prometheus instance.
    ConfigYaml string
    Yaml configuration for monitoring.
    MonitoringName string
    The name of the resource.
    Status string
    Valid values: stop, run.
    Type string
    Monitoring type: serviceMonitor, podMonitor, customJob, probe.
    clusterId String
    The ID of the prometheus instance.
    configYaml String
    Yaml configuration for monitoring.
    monitoringName String
    The name of the resource.
    status String
    Valid values: stop, run.
    type String
    Monitoring type: serviceMonitor, podMonitor, customJob, probe.
    clusterId string
    The ID of the prometheus instance.
    configYaml string
    Yaml configuration for monitoring.
    monitoringName string
    The name of the resource.
    status string
    Valid values: stop, run.
    type string
    Monitoring type: serviceMonitor, podMonitor, customJob, probe.
    cluster_id str
    The ID of the prometheus instance.
    config_yaml str
    Yaml configuration for monitoring.
    monitoring_name str
    The name of the resource.
    status str
    Valid values: stop, run.
    type str
    Monitoring type: serviceMonitor, podMonitor, customJob, probe.
    clusterId String
    The ID of the prometheus instance.
    configYaml String
    Yaml configuration for monitoring.
    monitoringName String
    The name of the resource.
    status String
    Valid values: stop, run.
    type String
    Monitoring type: serviceMonitor, podMonitor, customJob, probe.

    Import

    ARMS Prometheus Monitoring can be imported using the id, e.g.

    $ pulumi import alicloud:arms/prometheusMonitoring:PrometheusMonitoring example <cluster_id>:<monitoring_name>:<type>
    

    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.
    alicloud logo
    Alibaba Cloud v3.59.0 published on Friday, Jul 12, 2024 by Pulumi