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
@@ -378,8 +379,20 @@ You can customize a dashboard using metrics from system tables like `system.metr
378
379
379
380
<br />
380
381
382
+
#### Access the BYOC Prometheus stack {#prometheus-access}
383
+
ClickHouse BYOC deploys a Prometheus stack on your Kubernetes cluster. You may access and scrape the metrics from there and integrate them with your own monitoring stack.
384
+
385
+
Contact ClickHouse support to enable the Private Load balancer and ask for the URL. Please note that this URL is only accessible via private network and does not support authentication
**DEPRECATED: ** Please use the Prometheus stack integration in the above section instead. Besides the ClickHouse Server metrics, it provides more metrics including the K8S metrics and metrics from other services.
395
+
383
396
ClickHouse Cloud provides a Prometheus endpoint that you can use to scrape metrics for monitoring. This allows for integration with tools like Grafana and Datadog for visualization.
384
397
385
398
**Sample request via https endpoint /metrics_all**
A ClickHouse username and password pair can be used for authentication. We recommend creating a dedicated user with minimal permissions for scraping metrics. At minimum, a `READ` permission is required on the `system.custom_metrics` table across replicas. For example:
420
433
421
434
```sql
422
-
GRANT REMOTE ON*.* TO scraping_user
423
-
GRANTSELECTONsystem.custom_metrics TO scraping_user
435
+
GRANT REMOTE ON*.* TO scrapping_user;
436
+
GRANTSELECTONsystem._custom_metrics_dictionary_custom_metrics_tables TO scrapping_user;
437
+
GRANTSELECTONsystem._custom_metrics_dictionary_database_replicated_recovery_time TO scrapping_user;
438
+
GRANTSELECTONsystem._custom_metrics_dictionary_failed_mutations TO scrapping_user;
439
+
GRANTSELECTONsystem._custom_metrics_dictionary_group TO scrapping_user;
440
+
GRANTSELECTONsystem._custom_metrics_dictionary_shared_catalog_recovery_time TO scrapping_user;
441
+
GRANTSELECTONsystem._custom_metrics_dictionary_table_read_only_duration_seconds TO scrapping_user;
442
+
GRANTSELECTONsystem._custom_metrics_view_error_metrics TO scrapping_user;
443
+
GRANTSELECTONsystem._custom_metrics_view_histograms TO scrapping_user;
444
+
GRANTSELECTONsystem._custom_metrics_view_metrics_and_events TO scrapping_user;
445
+
GRANTSELECT(description, metric, value) ONsystem.asynchronous_metrics TO scrapping_user;
446
+
GRANTSELECTONsystem.custom_metrics TO scrapping_user;
447
+
GRANTSELECT(name, value) ONsystem.errors TO scrapping_user;
448
+
GRANTSELECT(description, event, value) ONsystem.events TO scrapping_user;
449
+
GRANTSELECT(description, labels, metric, value) ONsystem.histogram_metrics TO scrapping_user;
450
+
GRANTSELECT(description, metric, value) ONsystem.metrics TO scrapping_user;
0 commit comments