Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

resoto-plugin-dockerhub-3.9.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

resoto_plugin_dockerhub-3.9.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file resoto-plugin-dockerhub-3.9.0.tar.gz.

File metadata

File hashes

Hashes for resoto-plugin-dockerhub-3.9.0.tar.gz
Algorithm Hash digest
SHA256 aa2bdb084ca3b002a07609e77ba445c46466a84dc1a5873ac50eab3f19225205
MD5 b0cf6d300c0953d20695f36033300d58
BLAKE2b-256 e30c9d4c9bbbada497e5e7389cd885b12aab3e0cc04681c3645a11512f880b5f

See more details on using hashes here.

File details

Details for the file resoto_plugin_dockerhub-3.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for resoto_plugin_dockerhub-3.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98b1e2db75ae861321d0427f973fe6305fa0ba4c04dac1954920e0a8affbbf91
MD5 7898227fe09478170d1f83dc858d0090
BLAKE2b-256 8720d636e82344205e3ee7236ceceb37a3c3ca3b5658ac58f555761f477fea2f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page