juju: github.com/juju/juju/worker/metrics


collectPackage collect provides a worker that executes the collect-metrics hook periodically, as long as the workload has been started (between start and stop hooks).
senderPackage sender contains the implementation of the metric sender manifold.
spoolPackage spool contains the implementation of a worker that extracts the spool directory path from the agent config and enables other workers to write and read metrics to and from a the spool directory using a writer and a reader.

Updated 2020-03-30. Refresh now. Tools for package owners.