0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
Go to file
Harry Waye 3604c72e3a
feat(k8s): add kafka connection status to health check endpoint (#8258)
* feat(k8s): add kafka connection status to health check endpoint

This change adds a kafka check to the existing health check that uses
the underlying kafka python libs `bootstrap_connected` to check that we
are connected to kafka.

To accommodate the extra check in the response, I have updated to return
a JSON response with a lookup of `"check_name"` to it's status. We
return if any of the checks return `False`.

Something I didn't do was allow for checking each check in isolation,
e.g. we could expose for instance just the kafka_connected check at
`/_health/kafka`

* sort imports

* Remove unused requests arg, maybe useful later but not now.

* Add readyz and livez endpoint

* Add some docs

* link to k8s

* be specific about postgres

* some tests don't need postgres

* kubernetes -> process orchestration system

* update how we check kafka connection

* remove return
2022-02-03 15:15:48 +00:00
.devcontainer fix(codespaces): only pin versions to major versions (#8318) 2022-01-28 11:23:17 +00:00
.github Add annotation to grafana on deploy (#8393) 2022-02-01 19:20:14 +00:00
.run fix the date formatting typo (#8253) 2022-01-25 13:14:09 +01:00
.storybook feat(correlation): add multiselect for property names (#6407) 2021-10-20 14:12:32 +00:00
bin Increase request line limit for Gunicorn. (#8184) 2022-01-31 12:14:04 +02:00
cypress Give actions descriptions (#8272) 2022-02-02 15:50:28 +01:00
docker Speed improvements for the arm64 ClickHouse build (#6191) 2021-09-30 19:52:59 +00:00
ee feat(k8s): add kafka connection status to health check endpoint (#8258) 2022-02-03 15:15:48 +00:00
frontend More specific operator value select options by property type (#8350) 2022-02-03 15:29:23 +01:00
plugin-server Give actions descriptions (#8272) 2022-02-02 15:50:28 +01:00
posthog feat(k8s): add kafka connection status to health check endpoint (#8258) 2022-02-03 15:15:48 +00:00
staticfiles
.all-contributorsrc 🤖: Add iprithvitharun as a contributor 🎉 (#7727) 2021-12-15 14:08:26 +00:00
.coveragerc ci(tests): show untested code in PR with codecov (#6082) 2021-10-04 10:37:15 +01:00
.deepsource.toml
.dockerignore Use monorepo plugin server (#6784) 2021-11-13 11:52:00 -08:00
.environment
.eslintrc.js Add linter rule to guide people to the right dayjs import (#8156) 2022-01-20 13:13:29 +01:00
.flake8 add test for async migrations not being required on fresh installs (#8323) 2022-02-02 07:47:49 -05:00
.gitattributes
.gitignore Bundle our frontend via esbuild (#6758) 2021-11-03 09:50:24 +01:00
.kearc Add paths to logics (#6945) 2021-11-09 07:59:21 +00:00
.prettierignore Fix pre-commit hook (#6902) 2021-11-04 17:09:40 +00:00
.prettierrc
.test_durations Remove legacy sessions (#7401) 2021-11-29 21:11:10 -08:00
babel.config.js Storybook (#5714) 2021-08-25 10:38:33 +02:00
CHANGELOG.md Release v1.32.0 & announce (#8360) 2022-01-31 16:50:49 +00:00
CODE_OF_CONDUCT.md
codecov.yml ci(tests): show untested code in PR with codecov (#6082) 2021-10-04 10:37:15 +01:00
conftest.py add test for async migrations not being required on fresh installs (#8323) 2022-02-02 07:47:49 -05:00
CONTRIBUTING.md Fix API/HTTP instructions json syntax (#3832) 2021-03-31 18:31:32 -07:00
cypress.e2e.json ci(e2e): improve debug logging for github action workflow (#7629) 2021-12-10 12:38:25 +00:00
cypress.json Solve ospath issue (#5014) 2021-07-07 14:04:39 +02:00
dev.Dockerfile Revert "Install scipy (#7897)" (#7902) 2022-01-05 15:52:31 +00:00
docker-compose-config.py
docker-compose-config.sh
docker-compose.arm64.yml Yeetcode (#7830) 2022-01-18 14:32:28 -05:00
docker-compose.dev.yml Yeetcode (#7830) 2022-01-18 14:32:28 -05:00
docker-compose.hobby.yml Fix hobby deploy (#8288) 2022-01-26 11:04:31 +00:00
docker-compose.test.yml Yeetcode (#7830) 2022-01-18 14:32:28 -05:00
docker-compose.yml Yeetcode (#7830) 2022-01-18 14:32:28 -05:00
Dockerfile
gunicorn.config.py Increase default timeouts from gunicorn (#4731) 2021-06-14 10:39:04 +00:00
jest.config.ts Taxonomic filter first tab (#7447) 2021-12-13 12:58:41 -07:00
jest.setup.ts Activate turbo mode (#7254) 2021-11-23 17:22:05 +01:00
latest_migrations.manifest Dashboard permissions base (#8394) 2022-02-02 17:16:35 +01:00
LICENSE Update copyright years and use MIT license in posthog-foss (#3145) 2021-02-01 14:55:39 +01:00
manage.py
mypy.ini
package.json Update posthog-js to 1.17.8 (#8398) 2022-02-02 09:52:31 +00:00
postcss.config.js Finish the purge on curly-less if statements (#3414) 2021-02-22 08:36:08 +01:00
Procfile
production.Dockerfile Revert "Install scipy (#7897)" (#7902) 2022-01-05 15:52:31 +00:00
pyproject.toml
pytest.ini Set debug, test, and primary_db env variables based on context (#7250) 2021-11-20 17:18:39 +00:00
README.md 🤖: Add iprithvitharun as a contributor 🎉 (#7727) 2021-12-15 14:08:26 +00:00
requirements-dev.in Update mypy and typed_ast (#8160) 2022-01-20 14:19:43 +00:00
requirements-dev.txt Update mypy and typed_ast (#8160) 2022-01-20 14:19:43 +00:00
requirements.in Warn when dashboard is available (#8262) 2022-01-27 18:49:29 +00:00
requirements.txt Warn when dashboard is available (#8262) 2022-01-27 18:49:29 +00:00
runtime.txt
SECURITY.md Create SECURITY.md (#6009) 2021-09-17 15:31:10 +02:00
task-definition.migration.json Set ASYNC_MIGRATIONS_DISABLE_AUTO_ROLLBACK (#7881) 2022-01-04 16:15:19 +02:00
task-definition.plugins.json turn events last seen at back on (#8260) 2022-01-25 15:31:31 +01:00
task-definition.web.json chore(static-assets): set JS_URL for ECS (#8315) 2022-01-27 15:29:24 +00:00
task-definition.worker.json Update defaults based on self-hosted env values (#7709) 2022-01-13 00:45:30 +01:00
tsconfig.json WIP: Groups FE filtering (#6764) 2021-11-05 10:21:28 -04:00
versions.json Release v1.32.0 & announce (#8360) 2022-01-31 16:50:49 +00:00
webpack.config.js Bundle our frontend via esbuild (#6758) 2021-11-03 09:50:24 +01:00
yarn.lock Bump node-fetch from 2.6.1 to 2.6.7 (#8224) 2022-02-02 14:03:49 +01:00

posthoglogo

PRs Welcome Join Slack Community Docker Pulls GitHub commit activity GitHub closed issues

PostHog is an open-source product analytics suite, built for engineers

  • Automatically track every event on your website or app
  • Understand your users and how to improve your product
  • Deploy on your own infrastructure to keep control of your data.

Get started for free

Option 1: Hobby instance one-line-deploy

For <100K events ingested monthly on Linux with Docker (recommended 4GB memory):

 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/HEAD/bin/deploy-hobby)" 

Option 2: Production instance on your infrastructure

Follow our Scaleable Self-Hosting Guide for all major cloud service providers and on-premise deploys

Option 3: If you don't need to self-host

Sign up for a free PostHog Cloud project

Features

ui-demo

We bring all the tools into one place to give you everything you need to build better products:

  • Event-based Analytics on users or groups - capture your product's usage data to see which users are doing what in your application
  • Product data visualizations graphs, funnels, cohorts, paths, retention, and dashboards
  • Complete control over your data - host it yourself on any infrastructure
  • Session recording to watch videos of your users' behavior, with fine-grained privacy controls
  • Automatically capture clicks and pageviews to analyze what your users are doing without pushing events manually
  • Feature flags to understand the impact of new features before rolling them out more widely
  • Heatmaps to understand how users interact with your product with the PostHog Toolbar
  • Automated Analysis to find correlations between successful users and their behaviors or attributes
  • Plays nicely with data warehouses import events or user data from your warehouse by writing a simple transformation plugin, and export data with pre-built plugins - such as BigQuery, Redshift, Snowflake and S3
  • Infinitely extensible use custom plugins to extend PostHog and integrate with any service or tool
  • Ready-made libraries for JS, Python, Ruby, Node, Go, Android, iOS, PHP, Flutter, React Native, Elixir, Nim + an API for anything else
  • And much much more... for a full list of PostHog features.

Event autocapture

You don't have to spend weeks instrumenting every event on your front-end, point and click at elements from your browser and turn them into events which you and your team can analyze

Getting the most of PostHog

See PostHog Docs for in-depth walk-throughs on functionality.

Join our Slack community if you need help, want to chat, or are thinking of a new feature. We're here to help - and to make PostHog even better.

Philosophy

We help you understand user behavior and build better products without losing control of your data.

In our view, third-party analytics tools do not work in a world of cookie deprecation, GDPR, HIPAA, CCPA, and many other four-letter acronyms. PostHog is the alternative to sending all of your customers' personal information and usage data to third-parties.

PostHog is designed to give you every tool you need to understand user behavior, create hypothesis and release changes to make your product more successful.

What's cool about this?

PostHog is the only product-focused open-source analytics suite, with an event, user and group architecture that you can host in any infrastructure.

We are an open-source alternative to products such as Mixpanel, Amplitude, Heap, HotJar, Pendo or Full Story. We're designed to be more developer-friendly, with the broadest range of features like session recording, heatmaps, feature flags, and plugins.

We play nicely with data warehouses and other services - you can import event or user data by writing a plugin to create transformations, or you can export data by using our existing data exports to BigQuery, Redshift, Snowflake, etc. All without losing control of your data.

Developing locally & Contributing

See our Docs for instructions on developing PostHog locally.

We <3 contributions big or small, check out our guide on how to get started.

Not sure where to start? Book a free, no-pressure pairing session with one of the team.

We're hiring!

Come help us make PostHog even better. We're growing fast, and would love for you to join us.

Open-source vs. paid

This repo is entirely MIT licensed, with the exception of the ee directory (if applicable). Need absolutely 💯% FOSS? Check out our posthog-foss repository, which is purged of all proprietary code and features.

Premium features (contained in the ee directory) require a PostHog license. Contact us at sales@posthog.com for more information, or see our pricing page.

Contributors 🦸