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:
|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.|
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.|
96
94
97
95
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.
98
96
@@ -107,7 +105,7 @@ global:
107
105
scrape_configs:
108
106
- job_name: "prometheus"
109
107
static_configs:
110
-
- targets: ["localhost:9090"]
108
+
- targets: ["localhost:9090"]
111
109
- job_name: "clickhouse"
112
110
static_configs:
113
111
- targets: ["api.clickhouse.cloud"]
@@ -137,35 +135,35 @@ We provide instructions on using these options below, focusing on the details sp
137
135
- Configure the Scrape URL to point to the Prometheus endpoint and use basic auth to configure your connection with the API key/secret
138
136
- Test the connection to ensure you are able to connect
0 commit comments