<p>how can I do health check for cnosdb in kubernetes, as we know, health-check is important in kubernetes, as common, a binary should provider a restful api for kubernetes periodically health-checking. Does cnosdb provider such api?</p>
<p>best practise to do health-checking in kubernetes for cnosdb</p>

xufei Alex
<p>It's a very general question, which in my opinion leaves too much room for interpretation.</p>
<p>In general, however, you should think about configuring a Monitoring stack, perhaps based on Prometheus, Grafana and Alertmanager that allows you to extrapolate the metrics that are exposed by the DB.</p>
<p>Otherwise you can do something very rough by following the following CURL:</p>
<pre><code>curl http://127.0.0.1:21001/metrics
curl http://127.0.0.1:21002/metrics
curl http://127.0.0.1:21003/metrics
</code></pre>
<p><a href="https://docs.cnosdb.com/en/cluster/cluster.html#meta-custer-startup-process" rel="nofollow noreferrer">https://docs.cnosdb.com/en/cluster/cluster.html#meta-custer-startup-process</a></p>
