# 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.12",
"maintainer_email": null,
"keywords": null,
"author": "Some Engineering Inc.",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/c3/d8/28d26f810b0fc10bab9f676d342099ae22a9417985faed84b8298c33d514/fixinventory_plugin_dockerhub-4.2.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.2.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": "c3a7014ed1111ae7128392bec32d5f386912b1a7aa9e45e8010cd5a2b08f7af2",
"md5": "17c5879335619fb74c111395495931c2",
"sha256": "2c75b9de66a719ef6697742dcd195c44ad518add5b5231bde2328d7fab6535a4"
},
"downloads": -1,
"filename": "fixinventory_plugin_dockerhub-4.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "17c5879335619fb74c111395495931c2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 4415,
"upload_time": "2024-12-05T17:26:21",
"upload_time_iso_8601": "2024-12-05T17:26:21.722456Z",
"url": "https://files.pythonhosted.org/packages/c3/a7/014ed1111ae7128392bec32d5f386912b1a7aa9e45e8010cd5a2b08f7af2/fixinventory_plugin_dockerhub-4.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c3d828d26f810b0fc10bab9f676d342099ae22a9417985faed84b8298c33d514",
"md5": "f4cc4db7a95f5bbc8dd12ead60e82b3b",
"sha256": "81ab947d82a26fe454b29a9c46177553bbc3bc53e65336af5b8372509f78c9e3"
},
"downloads": -1,
"filename": "fixinventory_plugin_dockerhub-4.2.0.tar.gz",
"has_sig": false,
"md5_digest": "f4cc4db7a95f5bbc8dd12ead60e82b3b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 3874,
"upload_time": "2024-12-05T17:26:22",
"upload_time_iso_8601": "2024-12-05T17:26:22.487770Z",
"url": "https://files.pythonhosted.org/packages/c3/d8/28d26f810b0fc10bab9f676d342099ae22a9417985faed84b8298c33d514/fixinventory_plugin_dockerhub-4.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-05 17:26:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "someengineering",
"github_project": "fix",
"github_not_found": true,
"lcname": "fixinventory-plugin-dockerhub"
}