1. Prometheus Setup
Prometheus is a tool to monitor metrics and setup alerts in the case that some metric has responded negatively for an extended period. Setting this up with CleanSpeak is easy.
The only requirement to hookup CleanSpeak is to direct prometheus to the CleanSpeak endpoints. We used the following configuration for a CleanSpeak instance running locally on the docker host. (You can reach dockers host ip via
host.docker.internal on mac and windows docker, and by default management interface runs on
8011 and webservice runs on
scrape_configs: - job_name: CleanSpeak metrics_path: /prometheus/metrics scheme: https static_configs: - targets: ['local.cleanspeak.io:8011', 'local-api.cleanspeak.io:8001']
We then started prometheus with
docker run -v $(pwd)/prometheus.yaml:/etc/prometheus/prometheus.yml -p 9090:9090 prom/prometheus