插件下载了解更多
Alibaba Cloud Developer ToolkitbetaAlibaba Cloud OpenAPI
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
Alibaba Cloud Developer ToolkitbetaAlibaba Cloud OpenAPI
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.
流控信息
当前云产品API请求速率暂未透出。
请求参数
字段名称 | 字段详情 |
---|---|
RegionIdstring | 地域 ID。 示例值:cn-hangzhou |
ClusterIdstring | Prometheus 实例 ID。 示例值:cc7a37ee31aea4ed1a059eff8034b****参考取值来源: AddTagToFlinkCluster ListClusterFromGrafana |
Typestring | 容器服务类型的实例支持:serviceMonitor、podMonitor、customJob、probe。展开详情 示例值:customJob |
MonitoringNamestring | 监控配置名称。 示例值:customJob1参考取值来源: ListPrometheusMonitoring |
返回参数
字段名称 | 字段详情 |
---|---|
RequestIdstring | Id of the request 示例值:78901766-3806-4E96-8E47-CFEF59E4**** |
Codeinteger<int32> | 状态码。说明 200 表示成功。 示例值:200 |
Dataobject | 返回结构体。 |
Messagestring | 返回结果的提示信息。 示例值:message |
返回说明
serviceMonitor 示例:
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: tomcat-demo
namespace: default
spec:
endpoints:
- interval: 30s
path: /metrics
port: tomcat-monitor
namespaceSelector:
any: true
selector:
matchLabels:
app: tomcat
podMonitor 示例:
apiVersion: "monitoring.coreos.com/v1"
kind: "PodMonitor"
metadata:
name: "podmonitor-demo"
namespace: "default"
spec:
namespaceSelector:
any: true
podMetricsEndpoints:
- interval: "30s"
path: "/metrics"
port: "tomcat-monitor"
selector:
matchLabels:
app: "nginx2-exporter"
customJob 示例:
scrape_configs:
- job_name: prometheus1
honor_timestamps: false
honor_labels: false
scheme: http
metrics_path: /metric
static_configs:
- targets:
- 127.0.0.1:9090
probe 示例:
apiVersion: monitoring.coreos.com/v1
kind: Probe
metadata:
name: name1-tcp-blackbox #规则:xxx-{tcp/http/ping}-blackbox
namespace: arms-prom #可选
spec:
interval: 30s
jobName: blackbox
module: tcp_connect
prober:
path: /blackbox/probe
scheme: http
url: 'localhost:9335'
targets:
staticConfig:
static:
- 'arms-prom-admin.arms-prom:9335'
返回示例
变更历史
暂无变更历史