0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
Commit Graph

17 Commits

Author SHA1 Message Date
Karl-Aksel Puulmann
030529cfb3
Show internal metrics on /instance/status page (#4366)
* Extract function for capture

* Add capability to capture internal metrics

- This is behind an environment variable, we'll turn this on by default
on clickhouse-based installation.
- A special Org/Team gets created for this lazily, which is not accessible for
anyone. This makes avoiding issues with stats/billing/properties and easier.

* Capture some useful metrics into posthog

* Set up an unique constraint for for_internal_metrics organization

This avoids some nasty race conditions

* internal_metrics fixes

* Extract component OverviewTab

* New tabbing system for system status page

* Embed ClickhouseTab

* Generate a dashboard for internal metrics on demand

* More metrics

* Add more internal metrics, add tests

* Fix migration files

* Adjust copy

* Update task definitions

* Fix a typing issue

* Rename a component

* Migration fixup

* Try reset patch after test ends

* Clear lru_cache between tests
2021-05-20 13:42:39 +03:00
Karl-Aksel Puulmann
f4009c1e16
Allow migrating on a clickhouse cluster (#4197)
* Allow migrating clickhouse on cluster

Context under https://github.com/PostHog/posthog/issues/4090

* Add option to print sql
2021-05-05 14:38:39 +03:00
James Greenhill
b7bc93cfac
Enable cleanup of SSM Task that enables us to exec into containers on ecs (#4096) 2021-05-04 14:22:20 +00:00
Paolo D'Amico
2020c32c66
Add NewRelic to cloud deployment (#4005) 2021-04-15 11:53:19 -07:00
Michael Matloka
286287e8e1
Remove IS_DOCKER env var (#3843) 2021-04-01 17:10:00 +02:00
Paolo D'Amico
433d560b23
Fix proxy config (#3654) 2021-03-23 13:12:06 -07:00
Tim Glaser
e7c0f5f8cf
Enable event property usage env vars (#3664) 2021-03-16 11:27:58 +01:00
Paolo D'Amico
7c4b7eb811
Cloud billing trial period & free plan (#3259) 2021-02-11 18:42:39 +01:00
Tim Glaser
f1f8a0b7f5
Add denormalized prop config (#3009) 2021-01-20 13:53:45 +01:00
Marius Andra
606525644e
Add deployment environment variables (#2874)
* add deployment env to track instances

* Rename Production ECS

Co-authored-by: Karl-Aksel Puulmann <oxymaccy@gmail.com>
2021-01-11 13:25:40 +01:00
Paolo D'Amico
1ef890fbf2
add missing env vars to plugins & worker tasks (#2869) 2021-01-06 18:17:45 +01:00
Marius Andra
098343cbee
Deploy Plugins to AWS (#2755)
* create plugins task

* add plugins to container

* remove env vars that are probably not needed

* bump size of node for plugins

* don't run plugin server on worker

Co-authored-by: James Greenhill <fuziontech@gmail.com>
2020-12-15 18:10:00 -08:00
Michael Matloka
7ba9f7de09
Plugin server ingestion base (#2732)
* Add relevant settings to KEYS in bin/plugins-server

* Log all EE events to events_handoff Kafka topic for plugin server

* Clean up settings

* Fix FOSS

* Don't introduce KAFKA_EVENTS_HANDOFF

* Add cosmetic newline

* Add DEBUG WAL print()
2020-12-14 16:05:18 +01:00
James Greenhill
1ed68dcfb8
Actually set env var for DISABLE_SERVER_SIDE_CURSORS to True (#2692) 2020-12-07 13:35:15 -08:00
James Greenhill
7c90eb64fe
DISABLE_SERVER_SIDE_CURSORS to false for pgbouncer friendship (#2677)
* DISABLE_SERVER_SIDE_CURSORS to false for pgbouncer friendship

* USING_PGBOUNCER
2020-12-04 17:44:02 -08:00
James Greenhill
97280d56fc
update url env var for ECS containers (#2660) 2020-12-03 16:16:32 -08:00
James Greenhill
ed6eb5e796
Setup ecs configs for web, worker, migration tasks and services (#2458)
* add worker to the ecs config and deploy

* for testing

* pull from this branch for testing

* chain config renders

* split out events pipe

* Set is_heroku true because of heroku kafka

* update /e/ service to run on port 8001

* add 8001 to the container definition as well

* simplify

* test migrating w/ ecs task using aws cli

* split services

* typo in task def

* remove networkConfiguration from task definition

* duplicate

* task-def-web specific

* update events service name

* Handle base64 encoded kafka certs

* if it's empty then try to set it for env vars

* fix b64 decode call

* cleanups

* enable base64 encoding of keys for kafka

* depend on kafka-helper for deps

* reformat

* sort imports

* type fixes

* it's late, I can't type. typos.

* use get_bool_from_env

* remove debug bits. Trigger on master/main

* prettier my yaml

* add notes about ref in GA

* up cpu and memory
2020-12-03 15:51:37 -08:00