Commit Graph
81 Commits
Author SHA1 Message Date
Neha P 0bb6ddb70f test: updated locators for alerts (#2652)
- Added locators and fixed failing testcase for alerts
2024-02-05 16:13:45 +05:30
Neha P 5d0f8dc3db test: logs to stream navigation testcases (#2651)
- Display added function on switching between tabs and again navigate to
logs
- Change stream settings and click on search stream
- Not display error if match all case added in log query search
2024-02-05 13:09:54 +05:30
Hengfei Yang d887b6eed2 feat: impl hash partition (#2647) 2024-02-04 19:07:03 +08:00
Hengfei Yang 79682120f0 feat: search queue management (#2621) 2024-02-01 11:54:01 +08:00
Neha P e7cfedd367 test: fix saved view deletion under logs (#2618)
- fixed saved views delete testcase
2024-01-31 17:53:01 +05:30
Neha P af46e3ea7d test: fix logs testcases (#2613) 2024-01-31 09:58:22 +05:30
Neha P b8e7b8d11a test: stream to logs navigation testcases (#2612)
- Add streams to logs navigation
- Reset filter testcase
- navigate to another page and again logs page should display logs data
- Should enable SQL toggle and click on any field from LHS
2024-01-30 17:55:59 +05:30
Hengfei Yang 325aa4b3f2 fix: unit tests (#2542)
- [x] change sqlite backend to a Mutex
- [x] fix unit tests
2024-01-24 22:42:20 +08:00
Neha P e752baf02e test: fixed logs breaking testcases (#2538)
- Fixed 3 testcases under logs that were breaking due to the element
getting hidden from div
2024-01-24 11:26:47 +05:30
Neha P 3e0d3b5d53 test: logs histogram graph testcase (#2468)
- Added logs testcase to test this bug - #2461
2024-01-12 18:45:48 +05:30
Ashish Kolhe da08a7f5e8 feat: rebac with openfga (#2452) 2024-01-11 20:40:17 +05:30
Neha P 8ae4e19b96 test:added alerts testcases and fixed logs tests (#2451)
- Add a new template
- Display error when template added without name
- Display error when template added with invalid body
- Add a new destination
- Display error when destination added without name
- Add alert
- Display error when alert added without name under alerts
- Display error when alert added without stream under alerts
- Display error when user directly clicks save without any values under
alerts
- Delete destination
- Delete template
- Verify if add template displayed on alerts page if no template added
- Verify if add template displayed on destination page if no template
added
- Verify a success message displayed on destination creation
- Verify if Add destination button is displayed
- Verify if on cancel on delete confirmation the alert does not get
deleted
- Verify logs selected from dropdown and create alert

Logs - 
Fixed logs breaking testcases
2024-01-11 16:42:13 +05:30
Neha P 20e9fc5d2e test: create folders under dashboard page (#2440)
- Create a folder and then delete
- Display error when folder created with only spaces under name
- Should add a dashboard under folder and then delete dashboard and that
folder
- Create 2 folders and move dashboard from one folder to another. Then
delete dashboard and folders
- Click on cancel on folder creation UI
2024-01-10 17:41:29 +05:30
Neha P 4422b61a96 test:edit dashboard testcases (#2429)
- Added edit dashboard tests
- updated locator under add dashboard
- fixed breaking testcase under create dashboard
- fixed file delete testcase under functions
- updated query under fixtures
2024-01-10 14:29:59 +05:30
Neha P b53e56a6c6 test: cypress test changes (#2417)
- Changes to config for test run
2024-01-08 18:09:23 +05:30
Neha P f5c21f5d8e test: added logs-vrlfunction testcase (#2415)
- Display added function on switching between tabs and again navigate to
logs
2024-01-08 16:17:53 +05:30
Neha P 4fbaefc002 test: logs vrl testcase assertion added (#2412)
- Verify if the vrl function added is displayed in the expanded search
result view
2024-01-08 13:41:22 +05:30
Neha P 3eca163b74 test: added tests for functions page (#2398)
- Display error when creating function without mandatory fields
- Display error on entering invalid name under function and save
- Display error on entering invalid function and save
- Display error on entering adding function with same name
- Add a function and associate a stream with the same
- Display error add a function and associate a stream with the same
- Upload a enrichment table under functions and save
2024-01-05 15:08:24 +05:30
Neha P d19163f89a fix: e2e - added logs testcase to navigate on logs page (#2392) 2024-01-04 20:01:09 +05:30
Neha P fb2eec0195 feat: e2e add dashboard panel testcases (#2388)
- Add a panel 
- drag and drop an element 
- Verify query generation on the when fields are added and removed from
axis
- Update the chart when field configurations are updated including
filters
- Update the value automatically when trying to save the chart after
switching from the auto to custom mode
- Clear the field after switch from custom to auto mode
- Generate chart with the custom query mode
- Display error when add new chartype with existing chart type value
- Delete all dashboards
2024-01-04 16:39:41 +05:30
Neha P 4c349086fb feat: e2e create dashboard testcases (#2386)
- Add a new dashboard
- Add and delete the created dashboard
- Delete all dashboards
- Verify if save button enabled if dashboard name has only spaces added
2024-01-04 13:51:09 +05:30
Neha P 9b6d387440 fix: fixed log breaking testcase (#2384)
- Fixed timezone testcase under logs
2024-01-04 11:57:14 +05:30
Ankur Srivastava 5d926719fc feat: initial ui-testing integration (#2376) 2024-01-03 14:20:06 +01:00
Juan Calderon-Perez 66968e8265 refactor: API Integration Tests workflow (#2324)
- Simplify the API integration tests by removing steps not needed (Node,
k8s, building docker, etc).
- Testing the UI, linting, formatting, etc should be done in a separate
workflow file
- Simplify Rust cache workflow.
  - By default it caches /target
- Removed Dockerfile and k8s deployment from CI.
  - You can just run `OpenObserve` in the background
- Replace `ubicloud-standard-16` with `ubuntu-latest` which is *FREE*.
  - Using 16 cores, 64GB of ram is an overkill for running tests.
- Don't run the CI if changes to `.md` files are detected.

Notes:
- Before caching building `OpenObserve` takes around 5-7 mins, after
cache it goes down to 1-2 mins.
2023-12-29 07:39:09 +01:00
Hengfei Yang a4bae1a584 feat: Implement memtable + wal (#2261) 2023-12-28 07:40:22 +08:00
Ankur Srivastavaandneha00290 2c319d9c6f feat: integrate API integration testing using pytest (#2250)
Co-authored-by: neha00290 <neha@openobserve.ai>
2023-12-27 16:59:41 +01:00
Hengfei Yang 1b0b8c2bf5 chore: update format (#2144)
fixed #2102
2023-12-07 10:10:45 +05:30
Prabhat Sharma 5db4ca191a change license to AGPL 2023-11-26 18:34:59 -08:00
Ankur Srivastava c9008588f3 feat: implement ability to save search views (#1756)
Created the standard GET,PUT,DELETE verbs for retrieving and
saving views which can be reused later.

Further details in:
Fixes https://github.com/openobserve/openobserve/issues/970
2023-11-23 12:31:33 +01:00
Hengfei Yang 681f6e3af9 feat: support mysql for metadata (#1968) 2023-11-20 07:42:12 +08:00
Hengfei Yang 76fb283191 ci: upgrade rust to nightly-2023-10-24 (#1804) 2023-10-30 02:04:43 -05:00
Ankur Srivastava 5b01947491 feat: rum/maxmind integration (#1520)
This PR implements the first draft for the Real User Monitoring.

The endpoints at the moment are:

- `/rum/v1/{org_id}/rum`
- `/rum/v1/{org_id}/replay`
- `/rum/v1/{org_id}/logs`

For now the authentication is done using `oo-api-key` which is
being passed in the query-param using `browser-sdk`.

As of now, the data is being collected in the following three streams:

- `_rumdata` for rum data
- `_rumlog` for log data
- `_sessionreplay` for session-replay data

The data is being ingested using the multi-json implementation, with a
small change where some extra data is also ingested in the json from
the headers, query-params etc. using a middleware extractor and stores
the data in `HashMap<String, String>` and gets ingested in this
multi-json.

A file containing regexes for common user-agents is also committed which
is read during the initialization time which is used to parse incoming
user-agents and browser, os etc are inserted into the incoming row of
data.

Added the endpoints for `get`, `put`, `post` for rum-tokens.

- `/api/{org_id}/organizations/rumtoken`

#### maxmind integration 
Integrated the maxmind-db data in the source. Currently the data
is injected via the middleware and the file gets uploaded every
24 hours.
The file pointer gets mutated and updated when there is a change
in the mmdb file. To efficiently do this, we also query the sha256
of our file and compare it using the .sha256 file available on the
public bucket.
2023-10-18 15:09:24 +02:00
Nrishinghananda Roy 414b4e0d63 fix: Clippy errors in tests (#1566)
`tests` module had a few clippy errors/warnings. Applied the fixes.
2023-09-26 03:29:51 -05:00
Hengfei Yang 019c4ccc53 fix: swagger under sub directory (#1476) 2023-09-09 12:36:23 +08:00
Ashish Kolhe c0114e36f6 feat: dashboard versioning (#1464) 2023-09-06 15:45:44 +05:30
Hengfei Yang 5a3173c689 feat: implement sqlite for metadata (#1449) 2023-09-04 11:00:28 +08:00
Hengfei Yang af521fde54 fix: update license (#1404) 2023-08-21 15:37:50 +08:00
Ankur Srivastava e2dd047bf5 refactor: move infra and meta inside common (#1105)
This is the first step towards splitting the repo into smaller sub
projects.
2023-07-06 12:32:07 +05:30
Ashish Kolhe f58ad652d1 fix: functions disabled due to feature flag (#1047) 2023-06-27 18:43:40 +08:00
Hengfei Yang 8c74eaac84 feat: impl metrics http json API (#999)
## Design Spec:

- POST `/api/:org/ingest/metrics/_json`

```json
[
    {
        "__name__": "stream name",
        "__type__": "counter / gauge / histogram / summary",
        "label_name1": "label_value1",
        "label_name2": "label_value2",
        "_timestamp": 0, // unix timestamp in millisecond
        "value": 0.0 // float64 value
    }
]
```

## How to use this API:
- must use `__name__` set stream name.
- must use `__type__` set metrics type. and the type can't be updated
after first record
- `_timestamp` needs UNIX timestamp or empty will fill by current
timestamp
- `value` should be float64 or int64

## Example:

POST `/api/default/ingest/metrics/_json`
```json
[
    {
        "__name__": "cpu",
        "__type__": "gauge",
        "namespace": "ziox",
        "container": "zo1",
        "_timestamp": 1687326643584062,
        "value": 10.1
    },
    {
        "__name__": "cpu",
        "__type__": "gauge",
        "namespace": "ziox",
        "container": "zo2",
        "value": 0.1
    }
]
```
2023-06-21 23:02:41 +08:00
BhargavandPrabhat Sharma 10dd9bab13 fix: multitenancy changes (#864)
Co-authored-by: Prabhat Sharma <hi.prabhat@gmail.com>
2023-06-02 16:29:11 +05:30
Hengfei Yang 7518811da0 feat: return global data retention in config api (#859) 2023-05-31 20:58:34 +08:00
Hengfei Yang 53e1a23921 feat: rename zincobserve to openobserve (#848) 2023-05-31 11:29:10 +08:00
Hengfei Yang ca2f55a57e feat: support skip tls verify when create alert destination (#819) 2023-05-26 17:58:38 +08:00
Ashish Kolhe b94e7e94d8 feat: enrichment functions (#772) 2023-05-20 14:24:46 +05:30
Prabhat Sharma 3843631ade fix: fix for grafana querying prometheus endpoint (#713)
Make change to prometheus endpoints so grafana queries can succeed.
2023-05-11 06:52:00 +05:30
Ashish Kolhe f20c9805bb feat: syslog ingestion (#711) 2023-05-11 06:18:24 +05:30
Hengfei Yang e5a7803d98 feat: metrics API (#686)
* feat: add prometheus API

* fix: unit test
2023-05-04 18:10:10 +08:00
Valeriy V. Vorotyntsev 89380dd8f5 feat: delete local search (#570) 2023-04-15 09:08:31 +08:00
Ashish Kolhe a54bf2f242 fix: refactor functions (#545)
* functions refactoring - removed lua

* update cargo

* fixed error when feature disabled
2023-04-12 12:00:20 +05:30