Commit Graph
1416 Commits
Author SHA1 Message Date
ktx-vaidehi b2b04c9e70 fix: dashboard when switching to auto mode issue of query creation (#5976) 2025-02-25 17:22:28 +05:30
Omkar Kesarkhane 382a939f1e fix: websocket frontend issues (#6096)
1. Fixed cancel query flow
2. Reset request trace_id's and cancel query operation before initiating
new search operation
3. Run query disabling histogram, later enable histogram. This was
throwing error
2025-02-25 15:52:59 +05:30
ktx-vaidehi 0f73769d01 fix: dashboard move to logs throwing 404 (#6091) 2025-02-25 13:13:28 +05:30
ktx-vaidehiandktx-abhay ab797ae58a fix: dashboard promql queries metric, gauge chart not getting plot properly (#6029)
Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
2025-02-25 11:43:33 +05:30
Omkar Kesarkhaneandudev c4a29e3863 fix: changes action script schedule types to lowercase (#6081)
Co-authored-by: udev <uddhav@openobserve.ai>
2025-02-25 09:43:38 +08:00
ktx-vaidehi 68b486b60a fix: added support for config options in promql charts (#6076) 2025-02-24 15:21:05 +05:30
ktx-vaidehi 2556da9326 feat: dashboard y-axis range by giving min, max values (#5944) 2025-02-24 13:02:08 +05:30
ktx-vaidehi 1a150cf7ca fix: dashboard promql step undefined error (#6064)
- #6063
2025-02-22 13:55:37 +05:30
ktx-vaidehi b924569841 feat: dashboard step setting for promql query (#5899)
- #5448
2025-02-21 21:26:02 +08:00
Omkar Kesarkhane ca92b89cd7 fix: Alerts preview not getting rendered (#6023)
#6009 
Chart was not getting rendered due to empty Y-axis label
2025-02-21 17:34:00 +05:30
ktx-vaidehi 729f631407 fix: dashboard error in console (#6057) 2025-02-21 16:17:08 +05:30
Bhargav fc886763ac fix: vrl toggle fix while applying saved view (#6026) 2025-02-20 19:50:47 +05:30
Abhay Padamani ff0f955d7a fix: disable resize and drag panel, if saveDashboard is ongoing (#6040)
- #6041
2025-02-20 15:12:59 +05:30
ktx-vaidehi 7b5a425bee fix: dashboard table chart without aggregation field (#5900) 2025-02-20 12:39:43 +05:30
ktx-vaidehi 4c56965496 feat: Option on Dashboard panel to navigate to logs UI based on the dashboard panel query (#5892) 2025-02-20 11:16:56 +05:30
ktx-vaidehi 65994e5fb0 feat: metrics page added legend option (#5911) 2025-02-19 19:08:21 +05:30
Abhay Padamani 6faec07ee1 fix: Boolean breakdown field issue for dashboard stacked chart (#6021)
- #6002
2025-02-19 18:18:06 +05:30
ktx-vaidehi 0bc363b1bb feat: dashboard reorder feature for variables listing (#5885)
- #5589
2025-02-19 15:06:34 +05:30
ktx-vaidehi f2f1936066 feat: dashboard variables added new streamType metadata (#5882)
- #5628
2025-02-19 13:00:39 +05:30
ktx-vaidehi c990d9ffeb feat: dashboard call variables api call on dropdown open (#5757)
- #5455
2025-02-19 12:27:02 +05:30
Bhargav e6ccaea91d fix: 5891 rum issue v2 (#6006) 2025-02-18 16:42:13 +05:30
ktx-vaidehiandktx-abhay f901514304 fix: dashboard cancel query for web socket (#5995)
Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
2025-02-18 10:38:09 +05:30
Sai Nikhil efc9a431d1 fix: pipeline related changes (#5999)
1. this PR changes the node type of pipeline to curve
2. this PR changes the default zoom to 1 when there are less than or
equal to 4 nodes
2025-02-17 22:54:14 +05:30
ktx-vaidehi e2b380c83f fix: dashboard when api is loading set panel refresh disable (#5996) 2025-02-17 18:44:58 +05:30
Bhargav 19d9f6ffe0 feat: reduced rows per page to 50 (#5978) 2025-02-17 16:30:39 +05:30
053d246946 fix: web socket streaming aggregates search for dashboards and logs (#5970)
New Env: 
```sh
# default 0ms
# preferred to be set at 10ms to 100ms
# milliseconds
ZO_WEBSOCKET_CLOSE_FRAME_DELAY=10 
```

Changes:

- [x] add support to dashboard for streaming aggregate queries from in
memory cache
- [x] new sort logic for web socket search results
> - [x] introduced a new `optional` parameter `fallback_order_by_col`
for ws search req `SearchEventReq`
> - For queries where there is no `_timestamp` field and no `order_by`
specified:
```sql
SELECT level, COUNT(*) as count
FROM logs
GROUP BY level
```
> - The default sql behavior is to return the results in a non-ordered
manner.
> - However, with web sockets this behavior impacts the UX in both
`logs` and `dashboards` when `streaming aggregates` is `enabled` as the
results in page/dashboards will keep fluctuating.
> - To fix this there a new sort behavior introduced in web sockets

```rust
/// Represents different sorting strategies
enum SortStrategy {
    SqlOrderBy,
    FallbackColumn(String, OrderBy),
    AutoDetermine(String, bool), // (column, is_string)
    NoSort,
}
```
> 1. If `order_by` is already specified in the sql query and the search
service has populated the `order_by` field in its response for the
search, then there is no sort action required on the search results.
> 2. If `fallback_order_by_col` is specified that col is selected for
sort. This will mainly be used in `Dashboards`.
> 3. If none of the above is specified, there is `auto-determine`
strategy which would check for the `first non-numeric col` else the
`first numeric col`
> 4. `non-numeric` col i.e. `text/string` is always sorted in `asc`.
While, `numeric` col is sorted in `desc`. This applies to both
`FallbackColumn` & `AutoDetermine` strategies.

- [x] redesign web socket search event handling
> - Previously the `cleanup_and_close_session` used to happen inside the
search task thread. Which is suspected :suspect: to be one of the causes
for the `CloseFrame` description and the `DataFrame` data to get merged
and malform the message in the socket.
> - New behavior `cleanup_and_close_session` will happen outside of the
search task spawned once search is complete.
> - Since its suspected :suspect: that there is some race condition 🏃🏾
when the web socket frames are being sent the env variable
`ZO_WEBSOCKET_CLOSE_FRAME_DELAY` default `0` is created to introduce a
delay preferred `10 ms` to ` 100ms` before sending the `CloseFrame`
> - `SEARCH_REGISTRY` now will hold the different states of search which
are `Running`, `Cancelled` & `Completed`
> - The search task is modified to now listen for a `cancel` from the
`mpsc` channel and does `cleanup_search_resources`

Related Issues:
- #5967 
- #5974

---------

Co-authored-by: loaki07 <rustyloaki@gmail.com>
Co-authored-by: Loakesh Indiran <66478092+Loaki07@users.noreply.github.com>
Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
2025-02-17 08:52:14 +05:30
dependabot[bot] e46d72e509 chore(deps-dev): bump vitest, @vitest/coverage-v8 and @vitest/ui in /web (#5879) 2025-02-16 23:21:49 +08:00
Omkar Kesarkhane a63e4bddda fix: reset cancel query on search error or new search request (#5979) 2025-02-16 23:21:04 +08:00
Bhargav 221eb019be fix: 5891 rum issue v1 (#5931) 2025-02-14 18:08:11 +05:30
Abhay PadamaniandKirtan Thakkar 5e3297903b fix: show warning and allow data parsing if there is a function error (#5961)
Co-authored-by: Kirtan Thakkar <kirtan@kiara.tech>
2025-02-14 16:21:36 +05:30
Sai Nikhil 9a7bec8d58 fix: custom charts issues (#5963) 2025-02-14 04:08:31 +05:30
ab567df7e1 feat: custom chart support dashboard (#5866)
Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
Co-authored-by: Bhargav <BJP232004@GMAIL.COM>
2025-02-13 18:30:19 +05:30
Bhargav 5486fa97d8 fix: Optimised the stream fields calculation on logs page (#5940) 2025-02-13 15:23:23 +05:30
bc850b131d fix: dashboard promql dashboard to logs drilldown issue (#5951)
Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
Co-authored-by: Patrick Sullivan <patrick.sullivan@hey.com>
2025-02-12 16:50:35 -06:00
Bhargav c955822c41 fix: alert preview fix (#5950) 2025-02-12 21:04:09 +05:30
Bhargav 272c64c751 fix: added selected stream_type in preview api call (#5947) 2025-02-12 20:01:14 +05:30
ktx-vaidehi 3b3ce29bac fix: dashboard legend undefined issue (#5941)
- #5939
2025-02-12 15:53:02 +05:30
Hengfei Yang fbeae17f1f feat: sync from enterprise branch (#5924) 2025-02-11 23:14:18 +08:00
d888b168ca feat: dashboard side by side bar chart (#5853)
- #5384 
- #5292
- #4303
- #5795

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
	- Enhanced drilldown functionality in dashboard panels.
	- Improved series data handling in chart generation.

- **Refactor**
	- Updated series name processing in dashboard components.
	- Simplified series object creation logic.
	- Streamlined chart type handling for bar and scatter charts.

- **Bug Fixes**
- Improved accuracy of series name retrieval during drilldown
operations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: ktx-kirtan <124270523+ktx-kirtan@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-02-11 12:22:37 +05:30
Bhargavandktx-vaidehi ea891d2bb7 fix: 5891 rum improvement (#5910)
Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech>
2025-02-10 14:56:58 +05:30
Bhargav 63f88512ee fix: 5870 UI improvements (#5884) 2025-02-06 13:33:51 +05:30
Sai Nikhil fcd6647b63 fix: place holder text for select stream (#5869)
1. select stream as a place holder text added in logs page
2025-02-05 19:12:43 +05:30
Bhargav 0b682773c5 fix: upgraded playwright version (#5861)
Upgraded NPM Packages in OpenObserve repo
Upgraded playwright package from 1.42.x to 1.50.x
Upgraded Node version from 18 to 22
2025-02-05 13:02:05 +05:30
Bhargav acce336f3e fix: moved all options to end (#5865) 2025-02-05 12:06:44 +05:30
Omkar KesarkhaneandLoakesh Indiran 2fa40f9f5a fix: multi region search in web sockets (#5871)
#5862

Co-authored-by: Loakesh Indiran <66478092+Loaki07@users.noreply.github.com>
2025-02-05 01:02:52 +05:30
Taiming Liu 632da3c0b4 feat: migrate template & destination (#5701) 2025-02-04 18:25:21 +08:00
Abhay Padamani a53b61baf2 fix: dashboard promql chart fails to render (#5867)
- #5868
2025-02-04 12:51:00 +05:30
Hengfei Yang 70442846e5 fix: optimize job id for search (#5857)
This PR shorted the job_id, now it is 7 chars, earlier it is 32 chars.
Also fixed the issue UI shows zero if the size less than `0.01` MB.
2025-02-03 12:35:27 +08:00
Abhay Padamani d90f2d6f86 fix: dashboard with query support (#5851)
- #5569 

**Summary:** Removes validation constraints for complex queries and
ensures execution on apply, while extracting fields for panel
construction.

**Key Changes:**
- Removed validation to support complex queries.
- Guaranteed query execution on "Apply" click regardless of validation
status
- Fields will be extracted, which can be used for further panel
building.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

## Release Notes

- **New Features**
- Enhanced panel validation logic with more granular control over field
validation.
- Introduced new utility functions for validating panel data and SQL
panel fields.

- **Bug Fixes**
- Improved error handling for dashboard panel creation and query
execution.
- Refined validation checks for different chart types and data
configurations.

- **Refactor**
- Streamlined validation processes across multiple dashboard and query
components.
  - Updated validation methods to support more flexible error checking.

These changes improve the robustness of panel and query validation in
the dashboard creation workflow.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-01-31 18:53:15 +05:30
+1 9184a090f8 feat: dashboard annotations (#5680)
- #5844

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

Based on the comprehensive summary of changes, here are the updated
release notes:

- **New Features**
	- Added timed annotations functionality for dashboards.
	- Introduced ability to create, edit, and delete annotations on panels.
- Implemented annotation management across frontend and backend systems.

- **Improvements**
	- Enhanced chart rendering to support annotation visualization.
	- Added new API endpoints for annotation operations.
	- Improved dashboard interaction with annotation mode.

- **Backend Changes**
- Created new database migrations for timed annotations and timed
annotation panels.
	- Added database entities and relationships for annotations.
	- Implemented service-level logic for annotation management.

- **Frontend Changes**
- Added new components for annotation management, including
`AddAnnotation`.
	- Integrated annotation services and composables.
- Updated chart rendering to display annotations and improved panel
interactivity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech>
Co-authored-by: Kirtan Thakkar <kirtan@kiara.tech>
Co-authored-by: Shyam Panjiyar <shyam@openobserve.ai>
Co-authored-by: ktx-vaidehi <134508096+ktx-vaidehi@users.noreply.github.com>
Co-authored-by: Huaijin <haohuaijin@gmail.com>
Co-authored-by: Neha P <144308844+neha00290@users.noreply.github.com>
Co-authored-by: Subhra264 <chakrabortysubhradeep556@gmail.com>
Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
Co-authored-by: Bhargav <BJP232004@GMAIL.COM>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 18:02:06 +05:30