O DATASOURCE::ARMS::Prometheus consulta informações sobre uma instância especificada do Prometheus.
Sintaxe
{
"Type": "DATASOURCE::ARMS::Prometheus",
"Properties": {
"ClusterId": String,
"RefreshOptions": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatório |
Editável |
Descrição |
Restrição |
|
ClusterId |
String |
Sim |
Sim |
O ID da instância do Prometheus. |
Nenhuma. |
|
RefreshOptions |
String |
Não |
Sim |
A política de atualização da fonte de dados para atualizações de stack. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
-
VpcId: a VPC associada à instância do Prometheus.
-
ResourceGroupId: o ID do grupo de recursos da instância do Prometheus.
-
ClusterId: o ID da instância do Prometheus.
-
UserId: o ID do usuário.
-
SecurityGroupId: o ID do grupo de segurança.
-
VSwitchId: o ID do vSwitch.
-
PaymentType: o método de faturamento.
-
ClusterType: o tipo de instância do Prometheus.
-
Tags: as tags da instância do Prometheus.
-
SubClustersJson: as instâncias filho GlobalView da instância do Prometheus, como uma string JSON.
-
GrafanaInstanceId: o ID do workspace do Grafana.
-
PrometheusName: o nome da instância do Prometheus.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ClusterId:
Type: String
Description:
en: The ID of the Prometheus instance.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::ARMS::Prometheus
Properties:
ClusterId:
Ref: ClusterId
Outputs:
VpcId:
Description: The VPC ID. This parameter is returned only for Prometheus instances for ECS.
Value:
Fn::GetAtt:
- ExtensionDataSource
- VpcId
ResourceGroupId:
Description: The ID of the resource group to which the instance belongs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
ClusterId:
Description: The ID of the Prometheus instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ClusterId
UserId:
Description: The user ID.
Value:
Fn::GetAtt:
- ExtensionDataSource
- UserId
SecurityGroupId:
Description: The ID of the security group. This parameter is returned only for Prometheus instances for ECS.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SecurityGroupId
VSwitchId:
Description: The vSwitch ID. This parameter is returned only for Prometheus instances for ECS.
Value:
Fn::GetAtt:
- ExtensionDataSource
- VSwitchId
PaymentType:
Description: The billing method.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PaymentType
ClusterType:
Description: The type of the instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ClusterType
Tags:
Description: The tags of the instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Tags
SubClustersJson:
Description: The child instances of the Prometheus instance for GlobalView.
Value:
Fn::GetAtt:
- ExtensionDataSource
- SubClustersJson
GrafanaInstanceId:
Description: The ID of the Grafana workspace.
Value:
Fn::GetAtt:
- ExtensionDataSource
- GrafanaInstanceId
PrometheusName:
Description: The name of the instance.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PrometheusName
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ClusterId": {
"Type": "String",
"Description": {
"en": "The ID of the Prometheus instance."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ARMS::Prometheus",
"Properties": {
"ClusterId": {
"Ref": "ClusterId"
}
}
}
},
"Outputs": {
"VpcId": {
"Description": "The VPC ID. This parameter is returned only for Prometheus instances for ECS.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"VpcId"
]
}
},
"ResourceGroupId": {
"Description": "The ID of the resource group to which the instance belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"ClusterId": {
"Description": "The ID of the Prometheus instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ClusterId"
]
}
},
"UserId": {
"Description": "The user ID.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"UserId"
]
}
},
"SecurityGroupId": {
"Description": "The ID of the security group. This parameter is returned only for Prometheus instances for ECS.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SecurityGroupId"
]
}
},
"VSwitchId": {
"Description": "The vSwitch ID. This parameter is returned only for Prometheus instances for ECS.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"VSwitchId"
]
}
},
"PaymentType": {
"Description": "The billing method.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PaymentType"
]
}
},
"ClusterType": {
"Description": "The type of the instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ClusterType"
]
}
},
"Tags": {
"Description": "The tags of the instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Tags"
]
}
},
"SubClustersJson": {
"Description": "The child instances of the Prometheus instance for GlobalView.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"SubClustersJson"
]
}
},
"GrafanaInstanceId": {
"Description": "The ID of the Grafana workspace.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"GrafanaInstanceId"
]
}
},
"PrometheusName": {
"Description": "The name of the instance.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PrometheusName"
]
}
}
}
}