-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pebble log forwarding support check to jujuversion
#1230
Comments
@sed-i Do you think this will be needed in charms, that is, support for both older versions of Juju (without log forwarding) and newer ones with it? |
I've been asked to for postgresql-k8s. Afaiu, in air-gapped, the plan is to use juju 3.4.1+ (and not download promtail), but otherwise to not force people to upgrade. Having the ability to use either, helps charm authors by not requiring them to open a new track. It seems like this check will be repeated in every charm that logs to loki and that needs to work with juju < 3.4.1 and be deployed airgapped. Not sure about the number of charms in that intersection. |
I'm okay with adding a |
Thanks @benhoyt. From a first glance at github search results, this might get used around. |
…anonical#1370) Adds a new property to `JujuVersion` indicating if the version of Pebble bundled with Juju supports log forwarding to Loki, with labels. See discussion in canonical#1230 around which version of log forwarding should be the cutoff for support, which landed on when labels were added. Fixes canonical#1230
Following up on #1074, should we add something to
ops/jujuversion.py
?E.g.
supports_pebble_log_forwarding
.I realize it's a pebble feature, but since the two are in lockstep then perhaps it makes sense?
The text was updated successfully, but these errors were encountered: