X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a77e606772cd4909f2401f55cd7c3c08f8325fb8..1416b0952adc0bfee85e15d9c86a51c32fcfd003:/doc/admin/health-checks.html.textile.liquid diff --git a/doc/admin/health-checks.html.textile.liquid b/doc/admin/health-checks.html.textile.liquid index 64ce5ee493..630c6a178f 100644 --- a/doc/admin/health-checks.html.textile.liquid +++ b/doc/admin/health-checks.html.textile.liquid @@ -10,51 +10,30 @@ Copyright (C) The Arvados Authors. All rights reserved. SPDX-License-Identifier: CC-BY-SA-3.0 {% endcomment %} -Arvados services support endpoints for monitoring the status of a cluster. +Health check endpoints are found at @/_health/ping@ on many Arvados services. The purpose of the health check is to offer a simple method of determining if a service can be reached and allow the service to self-report any problems, suitable for integrating into operational alert systems. -Health check endpoints are found at @/_health/ping@ for many Arvados services. +To access health check endpoints, services must be configured with a "management token":management-token.html . -Services must have ManagementToken configured. This is used to authorize access to the health check endpoint. If ManagementToken is not configured, health checks will return the error @404 disabled@. - -The requester must provide the HTTP header @Authorization: Bearer (ManagementToken)@. - -This endpoint returns a JSON object with the field @health@. This has a value of either @OK@ or @ERROR@. On error, it may also include a field @error@ with additional information. - -h2. How to enable health checks on each service. - -h3. API server - -Set @MangementToken@ in @application.yml@ +Health check endpoints return a JSON object with the field @health@. This has a value of either @OK@ or @ERROR@. On error, it may also include a field @error@ with additional information. Examples:
-  # Token to be included in all healthcheck requests. Disabled by default.
-  # Server expects request header of the format "Authorization: Bearer xxx"
-  ManagementToken: ...
+{
+  "health": "OK"
+}
 
-h3. Node Manager - -Set @port@ (the listen port) and @MangementToken@ in the @Manage@ section of @node-manager.ini@ . -
-[Manage]
-port=8888
-ManagementToken=...
+{
+  "health": "ERROR"
+  "error": "Inverted polarity in the warp core"
+}
 
- -* -* keepstore -* keep-web -* keepproxy -* arv-git-httpd -* websockets - h2. Healthcheck aggregator The service @arvados-health@ performs health checks on all configured services and returns a single value of @OK@ or @ERROR@ for the entire cluster. It exposes the endpoint @/_health/all@ . -The healthcheck aggregator uses the "NodeProfile" section of the cluster-wide configuration file. Here is an example. +The healthcheck aggregator uses the @NodeProfile@ section of the cluster-wide @arvados.yml@ configuration file. Here is an example.
 Cluster: