Resoto Docker Hub Collector Plugin
Project description
resoto-plugin-dockerhub
Docker Hub Collector Plugin for Resoto
This collector plugin is used to collect data from Docker Hub. It is used internally at Some Engineering to create metrics about image downloads.
To export the number of image pulls add the following config to resoto.metrics
resotometrics:
[...]
metrics:
dockerhub_downloads_total:
# Metric help text
help: 'Docker Hub downloads'
# Aggregation search to run
search: 'aggregate(/ancestors.cloud.reported.name as cloud, /ancestors.account.reported.name as namespace, id as repository: sum(pull_count) as dockerhub_downloads_total): is(dockerhub_repository)'
# Type of metric (gauge or counter)
type: 'counter'
License
See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file resoto-plugin-dockerhub-3.9.0.tar.gz
.
File metadata
- Download URL: resoto-plugin-dockerhub-3.9.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa2bdb084ca3b002a07609e77ba445c46466a84dc1a5873ac50eab3f19225205 |
|
MD5 | b0cf6d300c0953d20695f36033300d58 |
|
BLAKE2b-256 | e30c9d4c9bbbada497e5e7389cd885b12aab3e0cc04681c3645a11512f880b5f |
File details
Details for the file resoto_plugin_dockerhub-3.9.0-py3-none-any.whl
.
File metadata
- Download URL: resoto_plugin_dockerhub-3.9.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98b1e2db75ae861321d0427f973fe6305fa0ba4c04dac1954920e0a8affbbf91 |
|
MD5 | 7898227fe09478170d1f83dc858d0090 |
|
BLAKE2b-256 | 8720d636e82344205e3ee7236ceceb37a3c3ca3b5658ac58f555761f477fea2f |