You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| GET |https://api.clickhouse.cloud/v1/organizations/:organizationId/services/:serviceId/prometheus| Returns the full set of metrics |
22
+
| GET |https://api.clickhouse.cloud/v1/organizations/:organizationId/services/:serviceId/prometheus?filtered_metrics=true| Returns a filtered list of metrics to reduce response payload size |
ClickHouse Cloud provides a special metric `ClickHouse_ServiceInfo` which is a `gauge` that always has the value of `1`. This metric contains all the **Metric Labels** as well as the following labels:
86
88
87
-
|Label|Description|
88
-
|---|---|
89
-
|clickhouse_cluster_status|Status of the service. Could be one of the following: [`awaking`\|`running`\|`degraded`\|`idle`\|`stopped`]|
90
-
|clickhouse_version|Version of the ClickHouse server that the service is running|
91
-
|scrape|Indicates the status of the last scrape. Could be either `full` or `partial`|
92
-
|full|Indicates that there were no errors during the last metrics scrape|
93
-
|partial|Indicates that there were some errors during the last metrics scrape and only `ClickHouse_ServiceInfo` metric was returned.|
|clickhouse_cluster_status|Status of the service. Could be one of the following: [`awaking`\|`running`\|`degraded`\|`idle`\|`stopped`]|
92
+
|clickhouse_version|Version of the ClickHouse server that the service is running|
93
+
|scrape|Indicates the status of the last scrape. Could be either `full` or `partial`|
94
+
|full|Indicates that there were no errors during the last metrics scrape|
95
+
|partial|Indicates that there were some errors during the last metrics scrape and only `ClickHouse_ServiceInfo` metric was returned.|
94
96
95
97
Requests to retrieve metrics will not resume an idled service. In the case that a service is in the `idle` state, only the `ClickHouse_ServiceInfo` metric will be returned.
96
98
@@ -105,7 +107,7 @@ global:
105
107
scrape_configs:
106
108
- job_name: "prometheus"
107
109
static_configs:
108
-
- targets: ["localhost:9090"]
110
+
- targets: ["localhost:9090"]
109
111
- job_name: "clickhouse"
110
112
static_configs:
111
113
- targets: ["api.clickhouse.cloud"]
@@ -135,35 +137,35 @@ We provide instructions on using these options below, focusing on the details sp
135
137
- Configure the Scrape URL to point to the Prometheus endpoint and use basic auth to configure your connection with the API key/secret
136
138
- Test the connection to ensure you are able to connect
0 commit comments