As a follow up to #187 we need to limit also the TSDB size. This is important to prevent the disk where both prometheus and the frontend run from getting full, which leads to broken control plane.
The default opennebula-prometheus systemd unit provides
ExecStart=/usr/bin/prometheus \
--config.file=/etc/one/prometheus/prometheus.yml \
--storage.tsdb.path=/var/lib/prometheus/data/
we are thinking maybe we can use systemd overrides as well to add extra arguments to control TSDB.
The goal itself is to limit the size of the DB, but perhaps it can be introduced as a general prometheus systemd override feature where we could declare whatever.
As a follow up to #187 we need to limit also the TSDB size. This is important to prevent the disk where both prometheus and the frontend run from getting full, which leads to broken control plane.
The default
opennebula-prometheussystemd unit provideswe are thinking maybe we can use systemd overrides as well to add extra arguments to control TSDB.
The goal itself is to limit the size of the DB, but perhaps it can be introduced as a general prometheus systemd override feature where we could declare whatever.