# fix-plugin-posthog
Posthog Collector Plugin for Fix
This collector plugin is used to collect data from Posthog. It is used internally at Some Engineering to create metrics about fix installations and usage.
To export the number of running installations add the following config to `fix.metrics`
```
fixmetrics:
[...]
metrics:
running_installations:
# Metric help text
help: 'Number of running installations'
# Aggregation search to run
search: 'aggregate(/ancestors.cloud.reported.name as cloud: sum(count) as running_installations): is(posthog_event) and name=model.info'
# Type of metric (gauge or counter)
type: 'gauge'
```
## License
See [LICENSE](../../LICENSE) for details.
Raw data
{
"_id": null,
"home_page": null,
"name": "fixinventory-plugin-posthog",
"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/27/e5/6f3935fbf1c9b282e89ba1d2f0b4e3964db8d86f4e4fb03c45057fe3c083/fixinventory_plugin_posthog-4.2.0.tar.gz",
"platform": null,
"description": "# fix-plugin-posthog\nPosthog Collector Plugin for Fix\n\nThis collector plugin is used to collect data from Posthog. It is used internally at Some Engineering to create metrics about fix installations and usage.\n\nTo export the number of running installations add the following config to `fix.metrics`\n```\nfixmetrics:\n [...]\n metrics:\n running_installations:\n # Metric help text\n help: 'Number of running installations'\n # Aggregation search to run\n search: 'aggregate(/ancestors.cloud.reported.name as cloud: sum(count) as running_installations): is(posthog_event) and name=model.info'\n # Type of metric (gauge or counter)\n type: 'gauge'\n```\n## License\nSee [LICENSE](../../LICENSE) for details.\n",
"bugtrack_url": null,
"license": "AGPLv3",
"summary": "Fix Posthog Collector Plugin",
"version": "4.2.0",
"project_urls": {
"Documentation": "https://inventory.fix.security",
"Source": "https://github.com/someengineering/fix/tree/main/plugins/posthog"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c6f35241ffb64c0cb59648e68169c6296a60cece6c600f3fa0c272eab0c8f4e1",
"md5": "bfb9c70ad0efcb4fed7052352d455be9",
"sha256": "f49e20b1a589da544028adc627bcb754b56c9e54368b454cc6d582c38ed5682d"
},
"downloads": -1,
"filename": "fixinventory_plugin_posthog-4.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bfb9c70ad0efcb4fed7052352d455be9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 5445,
"upload_time": "2024-12-05T17:26:17",
"upload_time_iso_8601": "2024-12-05T17:26:17.683622Z",
"url": "https://files.pythonhosted.org/packages/c6/f3/5241ffb64c0cb59648e68169c6296a60cece6c600f3fa0c272eab0c8f4e1/fixinventory_plugin_posthog-4.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "27e56f3935fbf1c9b282e89ba1d2f0b4e3964db8d86f4e4fb03c45057fe3c083",
"md5": "d39ab1840416418b2d9104a33a90ebde",
"sha256": "504ea840a2292e1d02a55a0efb180136b57a1d5d9a6a15278d4d448f65aabc72"
},
"downloads": -1,
"filename": "fixinventory_plugin_posthog-4.2.0.tar.gz",
"has_sig": false,
"md5_digest": "d39ab1840416418b2d9104a33a90ebde",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 4782,
"upload_time": "2024-12-05T17:26:19",
"upload_time_iso_8601": "2024-12-05T17:26:19.033098Z",
"url": "https://files.pythonhosted.org/packages/27/e5/6f3935fbf1c9b282e89ba1d2f0b4e3964db8d86f4e4fb03c45057fe3c083/fixinventory_plugin_posthog-4.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-05 17:26:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "someengineering",
"github_project": "fix",
"github_not_found": true,
"lcname": "fixinventory-plugin-posthog"
}