diff options
author | Alex Auvolat <alex@adnab.me> | 2022-02-26 20:31:57 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-02-26 20:31:57 +0100 |
commit | 7dcb4072dcced7a4d92ae2c356722ccb6bfd5e2b (patch) | |
tree | 65c4b542097d1e1bea1ad6c9908c2c0f97b52fc6 /doc | |
parent | bd2abf344915f502693a17a5f141518e1609910d (diff) | |
download | nixcfg-7dcb4072dcced7a4d92ae2c356722ccb6bfd5e2b.tar.gz nixcfg-7dcb4072dcced7a4d92ae2c356722ccb6bfd5e2b.zip |
Scrape meterics from system process on each node
Diffstat (limited to 'doc')
-rw-r--r-- | doc/telemetry.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/telemetry.md b/doc/telemetry.md index ee8d0dd..1e405a5 100644 --- a/doc/telemetry.md +++ b/doc/telemetry.md @@ -1,3 +1,27 @@ +# create elasticsearch folders on all nodes + +```bash +mkdir -p /mnt/ssd/telemetry/es_data/nodes +chown 1000 /mnt/ssd/telemetry/es_data/nodes +``` + +# generate ca and tls certs for elasticsearch cluster + +start a `bash` in an elasticsearch image, such as `docker.elastic.co/elasticsearch/elasticsearch:7.17.0`: `docker run -ti docker.elastic.co/elasticsearch/elasticsearch:7.17.0 bash` + +generate a ca and node certs: + +```bash +./bin/elasticsearch-certutil ca +./bin/elasticsearch-certutil cert --ca elastic-stack-ca.p12 +``` + +copy `elastic-certificates.p12` to `/mnt/ssd/telemetry/es_data` in all nodes, and chown it: + +```bash +chown 1000 /mnt/ssd/telemetry/es_data/elastic-certificates.p12 +``` + # create elasticsearch passwords in elasticsearch container |