環境のターゲットを照会します。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| EnvironmentId |
string |
必須 |
環境 ID。 |
env-xxx |
| RegionId |
string |
任意 |
リージョン ID。 |
cn-hangzhou |
| JobName |
string |
任意 |
ジョブ名。 |
blackbox |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答 |
||
| RequestId |
string |
リクエスト ID。 |
16AF921B-8187-489F-9913-43C808B4**** |
| Code |
integer |
状態コード。状態コード 200 は、リクエストが成功したことを示します。 |
200 |
| Message |
string |
返されたメッセージ。 |
success |
| Success |
boolean |
リクエストが成功したかどうかを示します。有効な値:
|
true |
| Data |
object |
返された構造体。 |
|
| ActiveTargets |
array<object> |
アクティブなターゲット。 |
|
|
array<object> |
ターゲット情報。 |
||
| DiscoveredLabels |
object |
サービス検出に使用されるタグ。 |
|
|
string |
タグ値。 |
{ "__meta_kubernetes_pod_label_pod_template_hash": "7477c58b8d", "__meta_kubernetes_endpoints_name": "mysql-exporter-mysql-1694448841945-service", "__meta_kubernetes_endpoint_port_name": "metrics" } |
|
| GlobalUrl |
string |
ターゲットの URL。 |
http://xxx |
| Health |
string |
ヘルスステータス。 |
up |
| Labels |
object |
タグ。 |
|
|
string |
タグ値。 |
{ "endpoint": "metrics", "instance": "172.16.0.9:9104", "pod": "mysql-1694570927659-7655486df8-djg22", "service": "mysql-exporter-mysql-1694570927659-service", "namespace": "arms-prom", "job": "mysql-exporter-mysql-1694570927659-service" } |
|
| LastError |
string |
最後のエラーメッセージ。 |
Get \"http://172.16.0.86:9104/metrics\": dial tcp 172.16.0.86:9104: connect: connection refused |
| LastScrape |
string |
最後のコレクション時間。 |
2023-10-12T07:15:47.306691514Z |
| LastScrapeDuration |
number |
最後のコレクションの持続時間。 |
0.00127593 |
| LastScrapeSeries |
integer |
最後のコレクションにおけるメトリックの数。 |
122 |
| ScrapePool |
string |
コレクションの名前。 |
arms-prom/mysql-exporter-mysql-1694429267986-sm/0" |
| ScrapeUrl |
string |
コレクションの URL。 |
http://xxxx |
| DroppedTargets |
array<object> |
削除されたターゲット。 |
|
|
array<object> |
ターゲット情報。 |
||
| DiscoveredLabels |
object |
サービス検出に使用されるタグ。 |
|
|
string |
タグ値。 |
{ "__meta_kubernetes_pod_label_pod_template_hash": "7477c58b8d", "__meta_kubernetes_endpoints_name": "mysql-exporter-mysql-1694448841945-service", "__meta_kubernetes_endpoint_port_name": "metrics" } |
|
| GlobalUrl |
string |
ターゲットの URL。 |
http://xxx |
| Health |
string |
ヘルスステータス。 |
up |
| Labels |
object |
タグ。 |
|
|
string |
タグ値。 |
{ "endpoint": "metrics", "instance": "172.16.0.9:9104", "pod": "mysql-1694570927659-7655486df8-djg22", "service": "mysql-exporter-mysql-1694570927659-service", "namespace": "arms-prom", "job": "mysql-exporter-mysql-1694570927659-service" } |
|
| LastError |
string |
最後のエラーメッセージ。 |
Get \"http://172.16.0.86:9104/metrics\": dial tcp 172.16.0.86:9104: connect: connection refused |
| LastScrape |
string |
最後のコレクション時間。 |
2023-10-12T07:15:47.306691514Z |
| LastScrapeDuration |
number |
最後のコレクションの持続時間。 |
0.00127593 |
| LastScrapeSeries |
integer |
最後のコレクションにおけるメトリックの数。 |
122 |
| ScrapePool |
string |
コレクションの名前。 |
arms-prom/mysql-exporter-mysql-1694429267986-sm/0" |
| ScrapeUrl |
string |
コレクションの URL。 |
http://xxxx |
例
成功レスポンス
JSONJSON
{
"RequestId": "16AF921B-8187-489F-9913-43C808B4****",
"Code": 200,
"Message": "success",
"Success": true,
"Data": {
"ActiveTargets": [
{
"DiscoveredLabels": {
"key": "{\n \"__meta_kubernetes_pod_label_pod_template_hash\": \"7477c58b8d\",\n \"__meta_kubernetes_endpoints_name\": \"mysql-exporter-mysql-1694448841945-service\",\n \"__meta_kubernetes_endpoint_port_name\": \"metrics\"\n}"
},
"GlobalUrl": "http://xxx",
"Health": "up",
"Labels": {
"key": "{\n \"endpoint\": \"metrics\",\n \"instance\": \"172.16.0.9:9104\",\n \"pod\": \"mysql-1694570927659-7655486df8-djg22\",\n \"service\": \"mysql-exporter-mysql-1694570927659-service\",\n \"namespace\": \"arms-prom\",\n \"job\": \"mysql-exporter-mysql-1694570927659-service\"\n }"
},
"LastError": "Get \\\"http://172.16.0.86:9104/metrics\\\": dial tcp 172.16.0.86:9104: connect: connection refused",
"LastScrape": "2023-10-12T07:15:47.306691514Z",
"LastScrapeDuration": 0.00127593,
"LastScrapeSeries": 122,
"ScrapePool": "arms-prom/mysql-exporter-mysql-1694429267986-sm/0\"",
"ScrapeUrl": "http://xxxx"
}
],
"DroppedTargets": [
{
"DiscoveredLabels": {
"key": "{\n \"__meta_kubernetes_pod_label_pod_template_hash\": \"7477c58b8d\",\n \"__meta_kubernetes_endpoints_name\": \"mysql-exporter-mysql-1694448841945-service\",\n \"__meta_kubernetes_endpoint_port_name\": \"metrics\"\n}"
},
"GlobalUrl": "http://xxx",
"Health": "up",
"Labels": {
"key": "{\n \"endpoint\": \"metrics\",\n \"instance\": \"172.16.0.9:9104\",\n \"pod\": \"mysql-1694570927659-7655486df8-djg22\",\n \"service\": \"mysql-exporter-mysql-1694570927659-service\",\n \"namespace\": \"arms-prom\",\n \"job\": \"mysql-exporter-mysql-1694570927659-service\"\n }"
},
"LastError": "Get \\\"http://172.16.0.86:9104/metrics\\\": dial tcp 172.16.0.86:9104: connect: connection refused",
"LastScrape": "2023-10-12T07:15:47.306691514Z",
"LastScrapeDuration": 0.00127593,
"LastScrapeSeries": 122,
"ScrapePool": "arms-prom/mysql-exporter-mysql-1694429267986-sm/0\"",
"ScrapeUrl": "http://xxxx"
}
]
}
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。