ClickHouse/docs/en/operations/monitoring.md
Eugene Klimov 68fa04054a
add <prometheus> in server settings and monitoring section (#10015)
* add description for <prometheus> in server settings and monitoring section

Signed-off-by: Slach <bloodjazman@gmail.com>

* Update docs/en/operations/server_settings/settings.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/operations/server_settings/settings.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/operations/server_settings/settings.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/operations/server_settings/settings.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/operations/server_settings/settings.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* Update docs/en/operations/server_settings/settings.md

Co-Authored-By: BayoNet <da-daos@yandex.ru>

* sync russian description with english

Signed-off-by: Slach <bloodjazman@gmail.com>

* Update docs/ru/operations/server_settings/settings.md

* sync russian description with english

Signed-off-by: Slach <bloodjazman@gmail.com>

Co-authored-by: BayoNet <da-daos@yandex.ru>
Co-authored-by: Ilya Yatsishin <2159081+qoega@users.noreply.github.com>
2020-04-11 08:27:24 +03:00

2.7 KiB

toc_priority toc_title
45 Monitoring

Monitoring

You can monitor:

  • Utilization of hardware resources.
  • ClickHouse server metrics.

Resource Utilization

ClickHouse does not monitor the state of hardware resources by itself.

It is highly recommended to set up monitoring for:

  • Load and temperature on processors.

    You can use dmesg, turbostat or other instruments.

  • Utilization of storage system, RAM and network.

ClickHouse Server Metrics

ClickHouse server has embedded instruments for self-state monitoring.

To track server events use server logs. See the logger section of the configuration file.

ClickHouse collects:

  • Different metrics of how the server uses computational resources.
  • Common statistics on query processing.

You can find metrics in the system.metrics, system.events, and system.asynchronous_metrics tables.

You can configure ClickHouse to export metrics to Graphite. See the Graphite section in the ClickHouse server configuration file. Before configuring export of metrics, you should set up Graphite by following their official guide.

You can configure ClickHouse to export metrics to Prometheus. See the Prometheus section in the ClickHouse server configuration file. Before configuring export of metrics, you should set up Prometheus by following their official guide.

Additionally, you can monitor server availability through the HTTP API. Send the HTTP GET request to /ping. If the server is available, it responds with 200 OK.

To monitor servers in a cluster configuration, you should set the max_replica_delay_for_distributed_queries parameter and use the HTTP resource /replicas_status. A request to /replicas_status returns 200 OK if the replica is available and is not delayed behind the other replicas. If a replica is delayed, it returns 503 HTTP_SERVICE_UNAVAILABLE with information about the gap.