Statistics and metrics about Charm, layer and interface usage

Rick Harding rick.harding at canonical.com
Thu Jan 25 16:38:31 UTC 2018


https://github.com/juju/charmstore/blob/v5-unstable/docs/API.md is the docs
for the API to the charmstore itself. As Adam notes, you can pull down any
file and there's manifest call that lists out the files in the charm. From
there you could probably check if the charm has a layers.yaml and if so
fetch that file, parse it, etc.

https://github.com/juju/charmstore/blob/v5-unstable/docs/API.md#get-idmetamanifest

On Thu, Jan 25, 2018 at 11:22 AM Adam Collard <adam.collard at canonical.com>
wrote:

> Hi Merlijn,
>
>
> On Thu, 25 Jan 2018 at 16:17 Merlijn Sebrechts <
> merlijn.sebrechts at gmail.com> wrote:
>
>> Hi all
>>
>>
>> I'm writing a Juju-related paper and I'd like to get statistics on Charm,
>> layer and interface usage. Are these publicly available?
>>
>> Related: is there a documented API to get the code of the charms that are
>> available in the charm store?
>>
>
> GET https://api.jujucharms.com/charmstore/v5/$MY_CHARM_NAME/archive/ will
> give you a .zip
> and
>
> GET
> https://api.jujucharms.com/charmstore/v5/$MY_CHARM_NAME/archive/$PATH/$TO/$FILE
> will give you the 'raw' contents.
>
> e.g. curl
> https://api.jujucharms.com/charmstore/v5/postgresql/archive/hooks/install
>
> YMMV,
>
> Adam
> --
> Juju-dev mailing list
> Juju-dev at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20180125/cf1f4f3d/attachment.html>


More information about the Juju-dev mailing list