First customer pain point pull request - default-hook

Gustavo Niemeyer gustavo at niemeyer.net
Tue Aug 19 22:10:24 UTC 2014


On Tue, Aug 19, 2014 at 6:58 PM, Matthew Williams
<matthew.williams at canonical.com> wrote:
> Something to be mindful of is that we will shortly be implementing a new
> hook for metering (likely called collect-metrics). This hook differs
> slightly to the others in that it will be called periodically (e.g. once
> every hour) with the intention of sending metrics for that unit to the state
> server.
>
> I'm not sure it changes any of the details in this feature or the pr - but I
> thought you should be aware of it

Yeah, that's a good point. I'm wonder how reliable the use of
default-hook will be, as it's supposed to run whenever any given hook
doesn't exist, so charms using that feature should expect _any_ hook
to be called there, even those they don't know about, or that don't
even exist yet. The charms that symlink into a single hook seem to be
symlinking a few things, not everything. It may well turn out that
default-hook will lead to brittle charms.


gustavo @ http://niemeyer.net



More information about the Juju-dev mailing list