# fix-plugin-dockerhub
Docker Hub Collector Plugin for Fix
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 `fix.metrics`
```
fixmetrics:
[...]
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](../../LICENSE) for details.
Raw data
{
"_id": null,
"home_page": null,
"name": "fixinventory-plugin-dockerhub",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": null,
"author": "Some Engineering Inc.",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/fa/ef/5cf57619740cf45f1728b2654f6a875bd3879786da32481d8c5eda486d94/fixinventory_plugin_dockerhub-4.1.0.tar.gz",
"platform": null,
"description": "# fix-plugin-dockerhub\nDocker Hub Collector Plugin for Fix\n\nThis collector plugin is used to collect data from Docker Hub. It is used internally at Some Engineering to create metrics about image downloads.\n\nTo export the number of image pulls add the following config to `fix.metrics`\n```\nfixmetrics:\n [...]\n metrics:\n dockerhub_downloads_total:\n # Metric help text\n help: 'Docker Hub downloads'\n # Aggregation search to run\n 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)'\n # Type of metric (gauge or counter)\n type: 'counter'\n```\n## License\nSee [LICENSE](../../LICENSE) for details.\n",
"bugtrack_url": null,
"license": "AGPLv3",
"summary": "Fix Docker Hub Collector Plugin",
"version": "4.1.0",
"project_urls": {
"Documentation": "https://inventory.fix.security",
"Source": "https://github.com/someengineering/fix/tree/main/plugins/dockerhub"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "78fc03fd0c0d9d78345323d2cbba7838f8b7078ec29a7a2f7f7703e4bfb51e7d",
"md5": "71c5641e95fce8d1ff9bcc970baacf1e",
"sha256": "4f0fee73ed5891d44ffc995523efc246c8dda840a33339375d252347d9e2ff14"
},
"downloads": -1,
"filename": "fixinventory_plugin_dockerhub-4.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "71c5641e95fce8d1ff9bcc970baacf1e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 4413,
"upload_time": "2024-07-18T16:37:52",
"upload_time_iso_8601": "2024-07-18T16:37:52.589634Z",
"url": "https://files.pythonhosted.org/packages/78/fc/03fd0c0d9d78345323d2cbba7838f8b7078ec29a7a2f7f7703e4bfb51e7d/fixinventory_plugin_dockerhub-4.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "faef5cf57619740cf45f1728b2654f6a875bd3879786da32481d8c5eda486d94",
"md5": "0f360e7737434df07b901e03b0179b7d",
"sha256": "2cdaeac53882f027e6a49ba486864c573b90d9591f7ddeeb975153976af153b5"
},
"downloads": -1,
"filename": "fixinventory_plugin_dockerhub-4.1.0.tar.gz",
"has_sig": false,
"md5_digest": "0f360e7737434df07b901e03b0179b7d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 3862,
"upload_time": "2024-07-18T16:37:55",
"upload_time_iso_8601": "2024-07-18T16:37:55.436169Z",
"url": "https://files.pythonhosted.org/packages/fa/ef/5cf57619740cf45f1728b2654f6a875bd3879786da32481d8c5eda486d94/fixinventory_plugin_dockerhub-4.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-18 16:37:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "someengineering",
"github_project": "fix",
"github_not_found": true,
"lcname": "fixinventory-plugin-dockerhub"
}