The docker-compose.yml
contains all the services to run in order to observe
the log output of the storage diagnostics from rs-*fs-report
repositories. All
services are meant to run on localhost
.
Run the following:
docker-compose up --build -d
to start all the services. The services are as follow:
fluentd
- Log interface for
rs-*fs-report
- Log interface for
elasticsearch
- Log backend for storage
grafana
- Log visualization for observing storage diagnostics
grafana-import
- Add
elasticsearch
intografana
, and import dashboard for log visualization. - Non-persistent, spins up and immediately spins down.
- Add
hdfs-krb5
- HDFS + Kerberos server to performing the
hdfs dfs
commands on. - The keytab file in
rs-hdfs-report.toml
matches the one used in this server.
- HDFS + Kerberos server to performing the
postgres-ssl
- Postgres database server with SSL enabled. Clients may only connect to it
when SSL handshake authentication. The
psql
client might look like below.psql -h localhost -U postgres sslmode=require
- To verify that the
sslmode
is indeed used, you may run the followingYou should observe that the connection cannot be established, with an error remarkpsql -h localhost -U postgres sslmode=disable
SSL off
. - Custom SSL public and private keys may be used and be placed in
postgres-ssl/ssl/
, and the override filedocker-compose.override.pg-ssl.yml
should be added. You will need to ensure the permissions are set correct on theserver.key
.Note that UID/GIDsudo chown 70:70 * sudo chmod 600 server.key
70
referspostgres
. - The
pg_hba.conf
may also be customized atdata/
. To use the customized version, the override filedocker-compose.override.pg-hba.yml
should be added.
- Postgres database server with SSL enabled. Clients may only connect to it
when SSL handshake authentication. The
Open http://localhost:3000 and log in with:
- Username:
admin
- Password:
admin
Open up Diagnostics
dashboard. If rs-*fs-report
service(s) is/are already
running, you should see new log points on the respective panels at every 10
second refresh.
Run the following:
docker-compose down -v
This stops all services and removes all local volumes, i.e. previous logs and imports are removed, making the session ephemeral.