Commit graph

1547 commits

Author SHA1 Message Date
Shorpo
0824ae76d2
Chart alerts: Add support for chart alerts in alerts API (#104)
Add support for chart alerts in alerts API
2023-11-16 03:59:32 +00:00
Shorpo
2fcd167540
Chart alerts: Add UI to Chart Builder (#98)
Chart alerts: Add UI to Chart Builder

Should only show up in dev env.

![Screenshot 2023-11-13 at 10 16 09 AM](https://github.com/hyperdxio/hyperdx/assets/149748269/e5ca0278-3ca0-4b31-8734-40d8fbb79a8c)
2023-11-14 08:26:45 +00:00
dependabot[bot]
f62fca8ef1
chore(deps): bump @adobe/css-tools from 4.2.0 to 4.3.1 (#102)
Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.2.0 to 4.3.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/adobe/css-tools/blob/main/History.md"><code>@​adobe/css-tools</code>'s changelog</a>.</em></p>
<blockquote>
<h1>4.3.1 / 2023-03-14</h1>
<ul>
<li>Fix redos vulnerability with specific crafted css string - CVE-2023-26364</li>
</ul>
<h1>4.3.0 / 2023-03-07</h1>
<ul>
<li>Update build tools</li>
<li>Update exports path and files</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/adobe/css-tools/commits">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@adobe/css-tools&package-manager=npm_and_yarn&previous-version=4.2.0&new-version=4.3.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/hyperdxio/hyperdx/network/alerts).

</details>
2023-11-13 23:40:46 +00:00
dependabot[bot]
8682dbaabc
chore(deps): bump zod from 3.22.2 to 3.22.3 (#99)
Bumps [zod](https://github.com/colinhacks/zod) from 3.22.2 to 3.22.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/colinhacks/zod/releases">zod's releases</a>.</em></p>
<blockquote>
<h2>v3.22.3</h2>
<h2>Commits:</h2>
<ul>
<li>1e23990bcdd33d1e81b31e40e77a031fcfd87ce1 Commit</li>
<li>9bd3879b482f139fd03d5025813ee66a04195cdd docs: remove obsolete text about readonly types (<a href="https://redirect.github.com/colinhacks/zod/issues/2676">#2676</a>)</li>
<li>f59be093ec21430d9f32bbcb628d7e39116adf34 clarify datetime ISO 8601 (<a href="https://redirect.github.com/colinhacks/zod/issues/2673">#2673</a>)</li>
<li>64dcc8e2b16febe48fa8e3c82c47c92643e6c9e3 Update sponsors</li>
<li>18115a8f128680b4526df58ce96deab7dce93b93 Formatting</li>
<li>28c19273658b164c53c149785fa7a8187c428ad4 Update sponsors</li>
<li>ad2ee9ccf723c4388158ff6b8669c2a6cdc85643 2718 Updated Custom Schemas documentation example to use type narrowing (<a href="https://redirect.github.com/colinhacks/zod/issues/2778">#2778</a>)</li>
<li>ae0f7a2c15e7741ee1b23c03a3bfb9acebd86551 docs: update ref to discriminated-unions docs (<a href="https://redirect.github.com/colinhacks/zod/issues/2485">#2485</a>)</li>
<li>2ba00fe2377f4d53947a84b8cdb314a63bbd6dd4 [2609] fix ReDoS vulnerability in email regex (<a href="https://redirect.github.com/colinhacks/zod/issues/2824">#2824</a>)</li>
<li>1e61d76cdec05de9271fc0df58798ddf9ce94923 3.22.3</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="1e61d76cde"><code>1e61d76</code></a> 3.22.3</li>
<li><a href="2ba00fe237"><code>2ba00fe</code></a> [2609] fix ReDoS vulnerability in email regex (<a href="https://redirect.github.com/colinhacks/zod/issues/2824">#2824</a>)</li>
<li><a href="ae0f7a2c15"><code>ae0f7a2</code></a> docs: update ref to discriminated-unions docs (<a href="https://redirect.github.com/colinhacks/zod/issues/2485">#2485</a>)</li>
<li><a href="ad2ee9ccf7"><code>ad2ee9c</code></a> 2718 Updated Custom Schemas documentation example to use type narrowing (<a href="https://redirect.github.com/colinhacks/zod/issues/2778">#2778</a>)</li>
<li><a href="28c1927365"><code>28c1927</code></a> Update sponsors</li>
<li><a href="18115a8f12"><code>18115a8</code></a> Formatting</li>
<li><a href="64dcc8e2b1"><code>64dcc8e</code></a> Update sponsors</li>
<li><a href="f59be093ec"><code>f59be09</code></a> clarify datetime ISO 8601 (<a href="https://redirect.github.com/colinhacks/zod/issues/2673">#2673</a>)</li>
<li><a href="9bd3879b48"><code>9bd3879</code></a> docs: remove obsolete text about readonly types (<a href="https://redirect.github.com/colinhacks/zod/issues/2676">#2676</a>)</li>
<li><a href="1e23990bcd"><code>1e23990</code></a> Commit</li>
<li>See full diff in <a href="https://github.com/colinhacks/zod/compare/v3.22.2...v3.22.3">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=zod&package-manager=npm_and_yarn&previous-version=3.22.2&new-version=3.22.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/hyperdxio/hyperdx/network/alerts).

</details>
2023-11-13 23:35:45 +00:00
Shorpo
e904ec3bd6
Refactor: Extract shared alert logic into a separate component (#97)
A small refactor in preparation for adding alert settings to charts.

Before – after:
![Screenshot 2023-11-11 at 7 22 21 PM](https://github.com/hyperdxio/hyperdx/assets/149748269/99c6518f-340f-49f6-a0c1-83dfc403df60)
2023-11-12 06:20:08 +00:00
Shorpo
bbda6696bb
Chart alerts: add schemas and read path (#95)
* Add schemas and read path for Dashboard chart alerts
* Reuse existing `Alert` model
* Show a bell icon on dashboard chart tile if it has an alert associated

![Screenshot 2023-11-11 at 11 31 44 AM](https://github.com/hyperdxio/hyperdx/assets/149748269/e803679b-dff2-419d-979f-7e7588b89572)
2023-11-11 22:16:17 +00:00
Shorpo
04f82d71db
LogTable and LogSidePanel UI tweaks (#88)
* Tweak colors and contrast for log table row hover and selected state
* Styling tweaks for LogSidePanel – header, shadow, borders, etc
* Add [X] button to LogSidePanel
* Use CSS modules for styling
* LogTable – use chevron icon instead of `>` symbol
* Use `col-resize` cursor when resizing LogTable columns
* Use correct env var for HDX_API_KEY in `app` to fix client sessions 

![Screenshot 2023-11-08 at 9 18 01 PM](https://github.com/hyperdxio/hyperdx/assets/149748269/8ebe6065-002f-4c02-ae9f-e436d92a5983)

![Screenshot 2023-11-08 at 9 18 09 PM](https://github.com/hyperdxio/hyperdx/assets/149748269/1f96406a-d88e-4344-aee2-533b77102e5c)

![Screenshot 2023-11-08 at 9 18 12 PM](https://github.com/hyperdxio/hyperdx/assets/149748269/43c57e20-1941-4eb3-9e82-30539c009b1f)
2023-11-10 00:54:32 +00:00
Mark Omarov
b1a537d88c
feat(register): password confirmation (#85)
Origin: https://github.com/hyperdxio/hyperdx/pull/81#discussion_r1384379205

Add a password confirmation field to the registration form.

- API will require `confirmPassword` field on the registration endpoint
- The `confirmPassword` and `password` fields will be validated by zod on API validation
- UI on the registration form will have a "Confirm Password" field
- Validation errors will be displayed on the UI the same way other validation errors
- API test covers mismatch between `confirmPassword` and `password` (simple check, can be improved)
2023-11-09 21:37:15 +00:00
Mike Shi
f66200717e
Fix Sum metric types from over reporting on sum and average aggFns (#87) 2023-11-08 23:04:59 -08:00
Mark Omarov
7d636f24b3
feat: enhanced registration form validation (#81)
Close #44 

- `/register/password` API validation with [zod](https://github.com/colinhacks/zod) and [zod-express-middleware](https://github.com/Aquila169/zod-express-middleware).
- API will respond instead of redirect. Mainly for displaying validation and business logic errors without query params.
- FE `AuthPage` will keep using original `/login/password` API with redirect, for `register` action a request will be made instead
- Updated test to match implementation
- Updated validation rules as discussed here - https://github.com/hyperdxio/hyperdx/issues/44#issuecomment-1741327421

Things I considered but decided to omit:
- **Keep redirects and use query params for erros**: validation errors should not be in query params
- **Update `/login/password` to drop redirect**: might be a good idea, but not in the context of this issue
- **Break form into login and registration**: perhaps later
- **Refactor and restructuring**: same above - more of a tech debt than feature related
2023-11-07 13:33:18 +00:00
Ernest Iliiasov
bf8af29d68
feat: Toggle columns from LogSidePanel (#82)
Allow to toggle columns from LogSidePanel

<img width="821" alt="Screenshot 2023-11-03 at 10 39 13 PM" src="https://github.com/hyperdxio/hyperdx/assets/20255948/b997cd3d-edf1-4df5-a201-affdbea27cb6">


Co-authored-by: Shorpo <149748269+svc-shorpo@users.noreply.github.com>
2023-11-07 04:06:20 +00:00
Warren
ef0fb17e09
fix: vector installation script (#80) 2023-11-02 08:31:15 +00:00
Warren
516c8588df chore: release v1.1.4 2023-11-01 07:02:22 +08:00
Warren
8591aee1c4
fix: control logs telemetry using HYPERDX_LOG_LEVEL (#78) 2023-11-01 06:37:14 +08:00
Mike Shi
8cb0eac332
Add rate aggFn support for sum metrics (#77) 2023-10-31 00:06:17 -07:00
Joel Sequeira
4d24bfac0a
Add new useTimeQuery hook (#75)
## Context

This PR relates to https://github.com/hyperdxio/hyperdx/issues/53. From a chat with @MikeShi42 a while back we were discussing the UX of the time query presets (e.g. "Past 1h") and how it's kind of confusing atm. Once you click a preset, the label will remain as "Past 1h" and add a `from` and `to` param to the url. If after some time you refresh the page, the label will still say "Past 1h" but the `from` and `to` are the old values. At the same time, the existing useTimeQuery hook has a ton of complex logic which makes it very tricky to modify without causing regressions.

## This PR

Create a new version of the useTimeQuery hook (temporarily calling it useNewTimeQuery) and add detailed unit testing to it for all the different cases. This can eventually be used to replace all the existing callsites of the useTimeQuery hook. For the search page, we can move all the live tail functionality into a separate hook and integrate with this new time query hook to have better separation of concerns and make them both easier to maintain. I'll be making a separate PR for the live tail functionality.
2023-10-29 04:44:07 +00: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
01ee449145 chore: bump hdx to v1.1.3 2023-10-18 15:29:50 -07:00
Warren
e7036dea42 chore: release v1.1.3 2023-10-18 14:47:51 -07:00
Warren
389bb3a027
feat: support HYPERDX_LOG_LEVEL env var (#66) 2023-10-18 19:01:44 +00:00
Warren
76ca910725
fix: level and severity text consistency issue (#67) 2023-10-18 18:08:34 +00:00
Warren
5edddc13f2
refactor: reorg ingestor config files (#64) 2023-10-15 06:21:15 +00:00
Jeyachandran Rathnam
40ba7bb00f
Persist table column sizes (#45) 2023-10-12 00:53:55 +00:00
Warren
9040c04464
chore: bump vector base image to v0.33.0 (#60) 2023-10-05 23:42:25 +00:00
Mark Omarov
e106b7577a
style(ui): improve duration column representation (#43) 2023-09-29 06:43:33 +00:00
Warren
1ec122c1be
fix: aggregator errors handler (#47) 2023-09-28 15:22:27 -07:00
Ronit Panda
8a53b3ed15
chore: lodash tree shaking imports (#38) 2023-09-28 03:50:22 +00:00
Warren
349175716e
Release v1.1.2 (#46) 2023-09-25 21:45:10 -07:00
Warren
593c4ca758
refactor: set output datetime format on the client side (#42) 2023-09-24 21:19:45 -07:00
Mark Omarov
8b103f3f57
fix(app): negative duration in search (#28)
Co-authored-by: Warren <5959690+wrn14897@users.noreply.github.com>
Co-authored-by: Mike Shi <mike@deploysentinel.com>
2023-09-24 12:12:22 -07:00
Mark Omarov
911c02a443
feat(app): enable cursor in session player (#33) 2023-09-24 10:44:40 -07:00
Warren
5d005f7930
chore: bump @hyperdx/node-opentelemetry + @hyperdx/browser (#34) 2023-09-22 15:13:38 -07:00
Warren
4405d785b0
fix: app env vars override issue (#26) 2023-09-22 14:41:19 -07:00
Ikko Eltociear Ashimine
36cbc3ded0
fix typo in CreateLogAlertModal.tsx (#18)
Co-authored-by: Warren <5959690+wrn14897@users.noreply.github.com>
2023-09-21 10:46:06 -07:00
Jeyachandran Rathnam
b019bd56ae
Contributing docs for Windows (#20) 2023-09-21 10:33:53 -07:00
Mike Shi
bd37a5e9b5
Session replay improvements (#9)
Co-authored-by: Warren <5959690+wrn14897@users.noreply.github.com>
2023-09-19 13:22:55 -07:00
Mike Shi
2352404c68
Properly Link Logo (#11) 2023-09-19 08:20:06 -07:00
Mike Shi
868d50f2ca
Update contributing instructions (#8) 2023-09-19 02:34:49 -07:00
Mike Shi
70d5aa9789
Update README.md spelling (#6) 2023-09-18 08:54:10 -07:00
Warren
a4012f1a96
chore: bump @hyperdx/node-logger + @hyperdx/node-opentelemetry pkgs (#5) 2023-09-16 00:30:14 -07:00
Warren
836924377e
feat: add docker prod build stages and publish prod builds (#4) 2023-09-15 21:34:14 -07:00
Warren
914d49a2bc docs: add changeset 2023-09-15 17:23:15 -07:00
Warren
780f57adf2 feat: init changeset 2023-09-15 17:23:15 -07:00
Warren
f2396340b4 feat: introduce usage-stats service 2023-09-15 17:22:53 -07:00
Mike Shi
773ce91264
Update README.md 2023-09-13 03:00:16 -07:00
Mike Shi
3e50983e3e
Update README.md 2023-09-12 21:06:22 -07:00
Warren
0826d4dd89 first commit 2023-09-12 20:08:05 -07:00