Commit graph

44 commits

Author SHA1 Message Date
Warren Lee
fd81c4cb4f
chore: bump MongoDB version to 5.0.32 (#1569)
For the patch of CVE-2025-14847
2026-01-07 18:38:49 +00:00
Aaron Knudtson
19c5085cde
chore: split json otel collector to enable both during dev (#1247)
Gets us closer to a staging instance of json

<img width="216" height="174" alt="image" src="https://github.com/user-attachments/assets/b5cc3cf8-aef0-4ba4-9e9a-8c1d4fad5451" />


Co-authored-by: Warren <5959690+wrn14897@users.noreply.github.com>
2025-11-04 21:16:41 +00:00
Nguyen Dat
b806116d73
feat: add subpath config (#1236)
Co-authored-by: Warren <5959690+wrn14897@users.noreply.github.com>
2025-10-17 14:43:58 -07:00
Brandon Pereira
e032af5509
attempt to ensure otel collector logs go to stdout (#1228) 2025-10-01 11:51:24 -06:00
Dan Hable
81942a697e
fix(dev): use async fluentd in the mongo container (#1134)
Allows the mongo container to continue bootstrapping even if the otel collector container hasn't finished binding to the fluentd port.
2025-09-03 18:13:17 +00:00
Mike Shi
0f242558b3
fix: Compatibilty with lowercase text skip index (#1089)
Expecting users to create schemas in the form of

```
INDEX inv_idx lower(Body) TYPE text(tokenizer = 'default') GRANULARITY 64
```

default tokenizer, and lower(Body) specifically
2025-08-21 19:47:20 +00:00
Warren
3636fc570d
style: update otelcol config file volume mount from dev stage (#1091) 2025-08-21 14:03:45 +00:00
Warren
ab50b12a6b
feat: support custom otel collector config (BETA) (#1074)
plus the fix to reduce bloat in opamp agent logs

Users should be able to mount the custom otel collector config file and add/overrider receivers, processors and exporters
For example:
```
receivers:
  hostmetrics:
    collection_interval: 5s
    scrapers:
      cpu:
      load:
      memory:
      disk:
      filesystem:
      network:
# override the default processors
processors:
  batch:
    send_batch_size: 10000
    timeout: 10s
  memory_limiter:
    limit_mib: 2000
service:
  pipelines:
    metrics/hostmetrics:
      receivers: [hostmetrics]
      # attach existing processors
      processors: [memory_limiter, batch]
      # attach existing exporters
      exporters: [clickhouse]
```
This will add a new `hostmetrics` receiver + `metrics/hostmetrics` pipeline and update existing `batch` + `memory_limiter` processors 

WARNING: This feature is still in beta, and future updates may change how it works, potentially affecting compatibility

Ref: HDX-1865
2025-08-18 21:22:43 +00:00
Mike Shi
52ca1823a4
feat: Add ClickHouse JSON Type Support (#969)
- Upgrades ClickHouse to 25.6, fixes breaking config change, needed for latest JSON type
- Upgrades OTel Collector to 0.129.1, fixes breaking config change, needed for latest JSON support in exporter
- Upgrades OTel OpAMP Supervisor to 0.128.0
- Fixes features to support JSON type columns in OTel in HyperDX (filtering, searching, graphing, opening rows, etc.)

Requires users to set `BETA_CH_OTEL_JSON_SCHEMA_ENABLED=true` in `ch-server` and `OTEL_AGENT_FEATURE_GATE_ARG='--feature-gates=clickhouse.json'` in `otel-collector` to enable JSON schema. Users must start a new ClickHouse DB or migrate their own table manually to enable as it is not schema compatible and migration is not automatic.

Closes HDX-1849, HDX-1969, HDX-1849, HDX-1966, HDX-1964

Co-authored-by: Tom Alexander <3245235+teeohhem@users.noreply.github.com>
2025-07-03 17:11:03 +00:00
Warren
31e22dcff4
feat: introduce clickhouse db init script (#843)
Ref: HDX-1777

This shouldn't have any impact on users
2025-06-09 16:45:23 +00:00
Warren
e27c24a13f
feat: introduce a few env vars to config otel collector (#864)
- Support `CLICKHOUSE_ENDPOINT` to switch aio clickhouse endpoint (Ref: HDX-1758)
- Support `HYPERDX_OTEL_EXPORTER_CLICKHOUSE_DATABASE ` (Ref: HDX-1786)

Support command like
```
docker run -e CLICKHOUSE_ENDPOINT=<CH-CLOUD-ENDPOINT> -e CLICKHOUSE_USER=default -e CLICKHOUSE_PASSWORD='BLABLA' -e HYPERDX_OTEL_EXPORTER_CLICKHOUSE_DATABASE =hyperdx -p 8080:8080 -p 4317:4317 -p 4318:4318 hyperdx/hyperdx-local:2-nightly
```
So users can export data to other services like clickhouse cloud
2025-05-28 18:54:13 +00:00
Warren
54622bb060
build: config opamp port (#866)
Ref: HDX-1799
2025-05-28 16:51:10 +00:00
Mike Shi
d72d1d2d26
Add ingestion key check to otel collector via OpAMP (#825)
HDX-1698
2025-05-23 01:41:35 +00:00
Warren
86465a2027
fix: map CLICKHOUSE_SERVER_ENDPOINT to exporter 'endpoint' (#838)
For users connecting to ClickHouse Cloud or a TLS endpoint, add the `secure=true` query parameter or use the HTTPS protocol. Providing the full URL via the `CLICKHOUSE_SERVER_ENDPOINT` in the exporter's endpoint field should resolve this issue

Ref: HDX-1743
2025-05-22 05:56:18 +00:00
Mike Shi
8ecf44b790
feat: Set up default sources/connections with env var in server mode (#817)
Resolves HDX-1705
2025-05-16 23:17:37 +00:00
Mike Shi
15bb9e6c7e
chore: remove unused dependencies (#791)
- removes redis from stack (using in memory rate limiter)
- deletes unused miner code (moved to browser-based pyodide module)
- fixes rate limit bug

fixes HDX-1248
2025-05-06 03:13:20 +00:00
Dan Hable
19431d3fe9
Moving HDX-1514 to open source repo (#761)
1. Moves the HDX-1514 log inference change into the OSS repo.
2. Bumps the OTEL collector version to match
2025-04-18 19:09:14 +00:00
Warren
d32661032b
feat: introduce RUN_SCHEDULED_TASKS_EXTERNALLY (#733)
1. new env var RUN_SCHEDULED_TASKS_EXTERNALLY to opt out in-app task process
2. introduce new `prod-extended` build that includes mongodb process
3. GA k8s dashboard (only picking the connection)
4. bake check-alert task into fullstack app build
2025-04-02 02:21:49 +00:00
Warren
5b2cba019e
feat: scrape local otelcol + clickhouse metrics (#633)
<img width="1329" alt="Screenshot 2025-02-25 at 5 26 06 PM" src="https://github.com/user-attachments/assets/ae54c3de-3e4c-4452-84ef-dda05d23c39e" />


<img width="1321" alt="Screenshot 2025-02-25 at 5 28 06 PM" src="https://github.com/user-attachments/assets/b3eab865-d6da-44da-a2fe-79a3797790f9" />
2025-02-26 03:13:05 +00:00
Warren
bb6abc28d9
chore: lock ch version to 24-alpine (#613) 2025-02-12 19:48:42 +00:00
Dan Hable
3e40a46ffb
fix(dev): otel collector should wait for clickhouse (#597)
The OTEL collector can start execution before the Clickhouse DB is ready. This can cause the OTEL collector to crash, which aborts the container and caused the compose command to fail. This commit adds a health check to the Clickhouse container and then orders the OTEL collector container to wait until the database is healthy.
2025-02-04 16:38:49 +00:00
Warren
7c3ac9b213
feat: introduce rrweb table to store session replay data (#586) 2025-01-31 20:22:58 +00:00
Warren
af4faa4611
DX: running api + app + task concurrently with npm script (dev) (#567)
1. Test with `common-utils` easily
2. Faster hot-reloads

TL;DR
run `npm run dev` or `make dev-up` to run HyperDX fullstack locally
2025-01-23 17:31:25 +00:00
Warren
74d6f4d1cd
style: deprecate INGESTOR_API_URL env var (#565) 2025-01-22 14:18:36 +00:00
Mike Shi
48a6145776
Split shuffling and fetch steps to speed up event deltas (#530) 2024-12-17 00:35:19 +00:00
Warren
9993fb2097
DX: standalone app docker image (#532)
For better self-hosting experience, users should be able to run
```
docker run -e MONGO_URI=xxx -p 8080:8080 hyperdx/hyperdx:2-beta
```
to spin up the project that includes the server components
2024-12-16 23:13:16 +00:00
Warren
7a766f7977
style: remove aggregator related codes (#521) 2024-12-09 09:59:36 -08:00
Warren
6a24dcf405
feat: single app image (#519) 2024-12-06 16:27:23 -08:00
Warren
aa165fcc46 feat: move more codes 2024-11-21 21:44:33 -08:00
Warren
b16456fc39 feat: move v2 codes 2024-11-12 05:53:15 -07:00
Warren
ac88c52173
style: introduce AGGREGATOR_PAYLOAD_SIZE_LIMIT env var (#450) 2024-07-04 00:41:49 +00:00
Mike Shi
c0ee0e19fb
Improve local mode (#361) 2024-04-01 22:42:24 -07:00
Shorpo
9083aeeb88
feat: Acknowledge and Silence Alerts (#339) 2024-03-17 16:19:40 -06:00
Warren
c532c9bb3c
feat: install hyperdx to go-parser in dev env (#272) 2024-01-23 00:42:42 +00:00
Warren
499c537ea5
style: inject ingestor url (otel config file) + aggregator/go-parser url (ingestor config file) through env vars (#241) 2024-01-17 01:54:25 +00:00
Warren
d5fcb570c6
feat: introduce go-parser service (#212)
Introduce a new separated go-parser service that obfuscates `db.statement` with sql lexer
2024-01-10 18:22:39 +00:00
Justin George
3a8cfb8bfb
SqlObfuscator fix aggregator issues, log aggregator and other services in dev mode (#194) 2024-01-08 01:05:22 +00:00
Warren
79c2761904
chore: bump ch base image to v23.8.8 (#165) 2023-12-28 07:21:48 +00:00
Warren
ce70319186
chore: bump clickhouse client to v0.2.7 (#159) 2023-12-20 20:53:14 +00:00
Mike Shi
3a93196748
fix: Sentry exception in the side panel should not assume all events in trace are exceptions, add Sentry SDK to API server (#143)
Sentry DSN config is mainly for us to test against our own ingestor. In case anyone runs across this you need to set SENTRY_DSN to `http://YOUR_KEY_WITHOUT_DASHES@ingestor:8002/0` (you need to use `ingestor`, not `localhost` as the api server won't resolve that to the ingestor)
2023-12-06 07:35:46 +00:00
Mike Shi
b189070be0
Propagate HyperDX API Key to app properly in dev docker compose (#113) 2023-11-19 14:04:11 -08:00
Warren
f231d1f65f
fix: boolean env var type issue (older compose version) (#72)
for docker-vompose v1x, it throws error like:
```
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.ingestor.environment.VECTOR_OPENSSL_LEGACY_PROVIDER contains false, which is an invalid type, it should be a string, number, or a null
```
2023-10-21 00:36:56 +00:00
Warren
389bb3a027
feat: support HYPERDX_LOG_LEVEL env var (#66) 2023-10-18 19:01:44 +00:00
Warren
f2396340b4 feat: introduce usage-stats service 2023-09-15 17:22:53 -07:00