http://dacxzjk3kq5mmepbdd3ai2ifynlzxsnpl2cnkfhridqfywihrfftapid.onion/help/administration/monitoring/prometheus/index.md
This flag is experimental
and may change in future releases. Units supported: B , KB , MB , GB , TB , PB , EB . For
example, 512MB .
To configure the storage retention size:
Edit /etc/gitlab/gitlab.rb :
prometheus [ 'flags' ] = {
'storage.tsdb.path' => "/var/opt/gitlab/prometheus/data" ,
'storage.tsdb.retention.time' => "7d" ,
'storage.tsdb.retention.size' => "2GB" ,
'config.file' => "/var/opt/gitlab/prometheus/prometheus.yml"
}
Reconfigure GitLab:
...