~logrotate-charmers/charm-logrotated:prometheus

Last commit made on 2019-06-20
Get this branch:
git clone -b prometheus https://git.launchpad.net/~logrotate-charmers/charm-logrotated
Members of Logrotate Charmers can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
prometheus
Repository:
lp:~logrotate-charmers/charm-logrotated

Recent commits

eeb79ea... by Diko Parvanov

Prometheus integration via pushgateway

Proposed prometheus-pushgateway integration. New configuration
option 'prometheus-push-gateway-info' proposed which should conform
to the following format: {HOST}:{PORT}. As the detection of changes
for logrotate files are is done only sometimes, doesn't make sense
to put a web server service metrics. Instead integrate with
prometheus-pushgateway charm and use it as target for the metrics.
The logrotate charm will push metrics in the format of:
logroatte_{host}_{config_file}, where {host} and {config_file}
will get their dashes (-) replaced with underscores (_) as prometheus
does not allow dashes in the metrics.
Push is only done after the first installation and modifications are
completed, for this a hookenv unitdata key is used ('installed')
that is set after installation completes.

18a05b4... by Diko Parvanov

Merge branch 'bug_1833379' into master

166da2a... by Diko Parvanov

Adding missing 'rotate' line in entries

If 'rotate' line is missing in any of the logrotate
files - add it with proper retention.

Closes Bug: 1833379

6d391ef... by Diko Parvanov

Fixed linting and unit testing

Fixed the linting to pass the tox -e lint test.
Fixed the unit testing to pass tox -e unit,
regression from previous commits.

Closes-Bug: 1833095
Closes-Bug: 1833093

8851293... by Diko Parvanov

Fixed a bug with default retention count

count variable did not have a default value
now falls back to lowest interval - days

fd4486c... by Diko Parvanov

Fixed indentation in lib_logrotate

77e4d7f... by Diko Parvanov

Fixed a bug in lib_logrotate

5b87d0c... by Diko Parvanov

Added Juju header check

When modifying the files the charm now adds headers
to inform the user that the files are maintained
by Juju and manual changes might be overwritten.

e0d47ec... by Diko Parvanov

Changed default config

Set default retention from 180 to 30 days.

6c25d17... by Diko Parvanov

Changed logrotate-cronjob-frequency to string

As proposed on LP#1832208 changed the option
from int to string

Closes-Bug: 1832208