# 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.11",
"maintainer_email": null,
"keywords": null,
"author": "Some Engineering Inc.",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/53/79/be2ea5af5a03d8113bd49369698f5620df4403c3105a82ded2fee92d3373/fixinventory_plugin_posthog-4.1.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.1.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": "67c4ac75c05676bc715fb63e2943300889ffd65f4aff6855d1df75d40d00da81",
"md5": "7b33fa9b366e5084e09c38beadf11ce9",
"sha256": "463996e7b68e03d134132b328a439e38150196aff060fed54ea802c3ef2a5245"
},
"downloads": -1,
"filename": "fixinventory_plugin_posthog-4.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7b33fa9b366e5084e09c38beadf11ce9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 5398,
"upload_time": "2024-07-18T16:37:50",
"upload_time_iso_8601": "2024-07-18T16:37:50.943480Z",
"url": "https://files.pythonhosted.org/packages/67/c4/ac75c05676bc715fb63e2943300889ffd65f4aff6855d1df75d40d00da81/fixinventory_plugin_posthog-4.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5379be2ea5af5a03d8113bd49369698f5620df4403c3105a82ded2fee92d3373",
"md5": "6681f93495c2d60ea8b19a25555223df",
"sha256": "9578a32938fa426c775476afdaed0de84b646a9d76721ed7aa062b163b408027"
},
"downloads": -1,
"filename": "fixinventory_plugin_posthog-4.1.0.tar.gz",
"has_sig": false,
"md5_digest": "6681f93495c2d60ea8b19a25555223df",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 4751,
"upload_time": "2024-07-18T16:37:52",
"upload_time_iso_8601": "2024-07-18T16:37:52.810917Z",
"url": "https://files.pythonhosted.org/packages/53/79/be2ea5af5a03d8113bd49369698f5620df4403c3105a82ded2fee92d3373/fixinventory_plugin_posthog-4.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-18 16:37:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "someengineering",
"github_project": "fix",
"github_not_found": true,
"lcname": "fixinventory-plugin-posthog"
}