Merge ~sergiodj/ubuntu/+source/telegraf:bug1916305-telegraf-conf into ~ubuntu-server/ubuntu/+source/telegraf:master
Status: | Merged |
---|---|
Approved by: | Sergio Durigan Junior |
Approved revision: | 1f84544c5103b094bd4cebb827da494f11e95fa7 |
Merged at revision: | 1cdb11740aaeebfbabb57ea3bd102888648e2c56 |
Proposed branch: | ~sergiodj/ubuntu/+source/telegraf:bug1916305-telegraf-conf |
Merge into: | ~ubuntu-server/ubuntu/+source/telegraf:master |
Diff against target: |
102 lines (+62/-7) 4 files modified
debian/changelog (+13/-0) debian/patches/adjust-etc-telegraf.conf.patch (+48/-0) debian/patches/series (+1/-0) debian/tests/basic-outputs (+0/-7) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Bryce Harrington | Needs Fixing | ||
Canonical Server | Pending | ||
Review via email: mp+398402@code.launchpad.net |
Description of the change
Fix for bug 1916305.
In a nutshell: after installing telegraf, it will always try to connect to an influxdb instance. This is because of the default configuration file shipped with it. When it fails, it generated *a lot* of pollution in the log files. Since we might not always have such an instance in the system, it makes sense to disable this by default. And given that, by design, telegraf must always have at least one output configured, this MP enables the prometheus_client output, which should be harmless and is actually a good thing to allow the user to verify whether things are running OK.
There's a build with the proposed change here:
https:/
Yeah I remember these changes when doing the LMA docs. Dropping the influxdb config makes sense.
In testing upgrading to this version from an existing installation will prompt the user to confirm the config change. However, it looks like we only introduced telegraf as of groovy, so the impact on users can probably be considered negligible.
Other than that, the installation seems to work ok.
autopkgtest has been running `test basic-outputs` for a while for me in lxc, but seems to be stuck. Did you successfully verify autopkgtest already?
I spotted a small text error in the changelog. I also have some phrasing suggestions but that you can take or leave as you wish. No need to re-review after fixing those, you can go ahead and just land.