Skip to content

Commit

Permalink
add sensible default for monitoring retention (#493)
Browse files Browse the repository at this point in the history
* add sensible default for monitoring retention

* Update index.rst

* test sleep

* Revert "test sleep"

This reverts commit 88ebf90.

* pin mosquitto

---------

Co-authored-by: Tom Kralidis <tomkralidis@gmail.com>
  • Loading branch information
maaikelimper and tomkralidis committed Aug 23, 2023
1 parent c991011 commit 9e039d2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/source/reference/monitoring/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ wis2box also analyzes prometheus metrics from MinIO.

For more information see the `list of supported MinIO metrics <https://github.com/minio/minio/blob/master/docs/metrics/prometheus/list.md>`_

The default retention period for Prometheus metrics is 10 days.
This value can be modified in the Prometheus configuration at ``prometheus/prometheus.yml``.

Loki logging
------------

Expand All @@ -37,6 +40,9 @@ The logs of the following Docker containers are sent to Loki:
- wis2box-auth
- wis2box-ui

The default retention period for Loki logs is 10 days.
This value can be modified in the Loki configuration at ``loki/loki-config.yml``.

Monitoring topics
-----------------

Expand Down
5 changes: 5 additions & 0 deletions prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ alerting:
- targets:
# - alertmanager:9093

storage:
tsdb:
retention:
time: 240h

scrape_configs:
- job_name: minio-job
metrics_path: /minio/v2/metrics/cluster
Expand Down
2 changes: 1 addition & 1 deletion wis2box-broker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#
###############################################################################

FROM eclipse-mosquitto
FROM eclipse-mosquitto:2.0.15

RUN mkdir -p /data/wis2box/mosquitto
RUN ln -s /mosquitto /data/wis2box/mosquitto
Expand Down
1 change: 0 additions & 1 deletion wis2box-broker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ if [ -f /tmp/wis2box.crt ]; then
cp /mosquitto/config/mosquitto-ssl.conf /mosquitto/config/mosquitto.conf
else
echo "SSL disabled"
cp /mosquitto/config/mosquitto.conf /mosquitto/config/mosquitto.conf
fi

echo "Setting mosquitto authentication"
Expand Down

0 comments on commit 9e039d2

Please sign in to comment.