~hloeung/prometheus-registration/+git/layer-promreg-client:master

Last commit made on 2019-07-23
Get this branch:
git clone -b master https://git.launchpad.net/~hloeung/prometheus-registration/+git/layer-promreg-client
Only Haw Loeung can upload to this branch. If you are Haw Loeung please log in for upload directions.

Branch information

Recent commits

8a9e288... by Haw Loeung

layer:apt unused, so let's remove it here to avoid being pulled in in other places

49e99e6... by Junien F

fix checking of return code when de-registering

Reviewed-on: https://code.launchpad.net/~axino/prometheus-registration/+git/layer-promreg-client/+merge/343808
Reviewed-by: Tom Haddon <email address hidden>

04ed5ea... by Junien F

fix checking of return code when de-registering

prometheus typically returns 202 'accepted' and not 200 'ok'

0f9f74b... by Tim Kuhlman

[cjwatson, r=timkuhlman] Strip trailing newlines from promreg_authtoken

It's convenient to include the key from a secrets directory using
juju-deployer's `include-file:` syntax, but that tends to leave any
trailing newline from the secret file in the configuration, which breaks
with an "Invalid header value" exception in `http.client`. Stripping
the newline here is a bit friendlier.

937732c... by Colin Watson

Strip trailing newlines from promreg_authtoken

It's convenient to include the key from a secrets directory using
juju-deployer's `include-file:` syntax, but that tends to leave any
trailing newline from the secret file in the configuration, which breaks
with an "Invalid header value" exception in `http.client`. Stripping
the newline here is a bit friendlier.

4c91c19... by Tim Kuhlman

Support pulling the model name rather than environment for Juju2

617da5f... by Tim Kuhlman

Remove the requirement for python-netifaces

50946f3... by Tim Kuhlman

Finished unit tests

1e02b2d... by Tim Kuhlman

Added initial unit tests

917e295... by Tim Kuhlman

Properly deal with no promreg_url being set.