# Fix 💜 Scarf
Scarf Collector Plugin for Fix
This collector plugin is used to collect data from Scarf. 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:
scarf_downloads_total:
# Metric help text
help: 'Scarf downloads'
# Aggregation search to run
search: 'aggregate(/ancestors.cloud.reported.name as cloud, /ancestors.account.reported.name as organization, name as repository: sum(pull_count) as scarf_downloads_total): is(scarf_package)'
# Type of metric (gauge or counter)
type: 'counter'
```
## License
See [LICENSE](../../LICENSE) for details.
Raw data
{
"_id": null,
"home_page": null,
"name": "fixinventory-plugin-scarf",
"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/e6/f8/45bcace21eb19392a22c0688b446869177e2c59be6d0ab040cabb06ebe18/fixinventory_plugin_scarf-4.2.0.tar.gz",
"platform": null,
"description": "# Fix \ud83d\udc9c Scarf\nScarf Collector Plugin for Fix\n\nThis collector plugin is used to collect data from Scarf. 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 scarf_downloads_total:\n # Metric help text\n help: 'Scarf downloads'\n # Aggregation search to run\n search: 'aggregate(/ancestors.cloud.reported.name as cloud, /ancestors.account.reported.name as organization, name as repository: sum(pull_count) as scarf_downloads_total): is(scarf_package)'\n # Type of metric (gauge or counter)\n type: 'counter'\n```\n\n## License\nSee [LICENSE](../../LICENSE) for details.\n",
"bugtrack_url": null,
"license": "AGPLv3",
"summary": "Fix Scarf Collector Plugin",
"version": "4.2.0",
"project_urls": {
"Documentation": "https://inventory.fix.security",
"Source": "https://github.com/someengineering/fix/tree/main/plugins/scarf"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "94bd54f087334b0481c132b5d9f1b409d2ca0682160ab6d882ccf592d1f8f55e",
"md5": "763ef10cb8e9103e5cc2ef6fa83babbd",
"sha256": "8b309541ab7348a6e1dc6de21c767cf2f8672dc6025a097c1be18310b2258e0b"
},
"downloads": -1,
"filename": "fixinventory_plugin_scarf-4.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "763ef10cb8e9103e5cc2ef6fa83babbd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 6053,
"upload_time": "2024-12-05T17:26:22",
"upload_time_iso_8601": "2024-12-05T17:26:22.181758Z",
"url": "https://files.pythonhosted.org/packages/94/bd/54f087334b0481c132b5d9f1b409d2ca0682160ab6d882ccf592d1f8f55e/fixinventory_plugin_scarf-4.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e6f845bcace21eb19392a22c0688b446869177e2c59be6d0ab040cabb06ebe18",
"md5": "fea7888358dd92a88645743c2377fb06",
"sha256": "78794561fb12f9844f6441cde30da766e2987515db749913bf331d39cd20d605"
},
"downloads": -1,
"filename": "fixinventory_plugin_scarf-4.2.0.tar.gz",
"has_sig": false,
"md5_digest": "fea7888358dd92a88645743c2377fb06",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 5308,
"upload_time": "2024-12-05T17:26:23",
"upload_time_iso_8601": "2024-12-05T17:26:23.207511Z",
"url": "https://files.pythonhosted.org/packages/e6/f8/45bcace21eb19392a22c0688b446869177e2c59be6d0ab040cabb06ebe18/fixinventory_plugin_scarf-4.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-05 17:26:23",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "someengineering",
"github_project": "fix",
"github_not_found": true,
"lcname": "fixinventory-plugin-scarf"
}