Commit Graph

308 Commits

Author SHA1 Message Date
silenceqi d21326d5ce
chore: remove unused code with `MetricBase` (#132) 2025-02-14 12:36:06 +08:00
silenceqi 1ee6c59d2c
fix: missing data when processing multiple time series in a g… (#127)
* fix: address missing data when processing multiple time series in a group with insight data API

* chore: update release notes
2025-02-13 17:31:04 +08:00
silenceqi b8138de666
feat: include bucket conditions information in rule detail API response (#125) 2025-02-13 16:20:44 +08:00
silenceqi f910203599
feat: support alerts based on bucket diff state (#119)
* feat: support alerts based on bucket diff status

* fix: correct document count calculation

* fix: empty param `event_id `

* fix: removing first and last time bucket

* fix: removing first and last time bucket

* chore: update bucket diff algorithm for improved accuracy

* refactor: optimize bucket diff algorithm

* feat: trigger bucket diff content change alert using expression

* feat: include bucket diff type in alert message API response

* chore: update release notes

* feat: add alert rule template to detect cluster metrics collection anomaly

* chore: update release notes
2025-02-12 17:32:27 +08:00
silenceqi ca243b1ce5
feat: support function-format parameters in Insight Data API (#93)
* feat: support function-format parameters in Insight Data API

* chore: update license header

* chore: format code

* feat: return `complex_fields` in the view API

* feat: include system cluster rollup setting in App Settings API response

* chore: update release notes

* fix: remove func `sum_func_value_in_group` from using aggregation `date_histogram`

* fix: generate unique group id for aggregation name

* fix: sort not work when using function `sum_func_value_in_group`

* feat: update view template
2025-01-23 20:08:19 +08:00
silenceqi 7db9344bad
fix: lint eror (#82) 2025-01-16 11:11:53 +08:00
Hardy 8da176bea8
chore: code format (#72)
* chore: code format

* chore: remove fetch-depth

* chore: add format and lint

* chore: add pr_check

* fix: lint with config

* chore: this pr only unit test

* fix: code format error
2025-01-14 14:29:31 +08:00
silenceqi 692b87eb7a
feat: support querying top N metrics in the Insight Data Query API (#74)
* feat: refactor the Insight data API to support metric aggregation for multiple data inputs

* fix:  bucket sorting issue when a sub-aggregation contains a `date_histogram`

* feat: add insight metric CRUD api

* fix: empty value of metric

* fix: incorrect grouping results

* feat: add builtin metric template

* fix: bucket sort when aggregation with P99

* chore: update group size

* chore: update release notes

* chore: update release notes

* chore: update release notes

* chore: update group size
2025-01-10 16:24:24 +08:00
Hardy 814ac648ec
test: unit test ci task (#70)
* test: unit test ci task
2025-01-06 22:59:41 +08:00
silenceqi 3dd3ba9db0
feat: adding smtp server permission (#20) 2024-12-10 15:55:48 +08:00
Medcl f43e453c7f
chore: update license header (#14)
Co-authored-by: Hardy <luohoufu@163.com>
2024-12-02 23:24:44 +08:00
luohoufu ed3a04a2bc
chore: remove dict & reindex model 2024-12-02 23:13:26 +08:00
hardy ec253f9e3d
chore: add web and common ui 2024-12-02 14:21:21 +08:00
hardy a936a8fa7c
chore: change to framework main branch and reflactor the dependcy 2024-12-01 21:36:06 +08:00
hardy ae3b792f7f
fix: build error with basicAuth.Password 2024-11-29 23:08:48 +08:00
medcl 8cbd35ed0a chore: safety update queue lables 2024-11-10 16:04:22 +08:00
hardy 659a30c1a1 fix: alert rule import patch for v1.6.0 (#346)
修复[344](https://git.infini.ltd/infini/console/issues/344)

Reviewed-on: https://git.infini.ltd/infini/console/pulls/346
Co-authored-by: hardy <luohf@infinilabs.com>
Co-committed-by: hardy <luohf@infinilabs.com>
2024-05-08 08:58:56 +08:00
root 10c317f07c feat: add audit logs 2024-04-12 06:31:13 +00:00
liugq f36e088f4e fix: filter activities in collection search api 2024-03-26 15:41:03 +08:00
liugq 2cf7d71971 fix: filter cluster permission in collection search api 2024-03-26 14:07:05 +08:00
liugq 63cd503c38 feat: make certain system indices accessible in visualization data api 2024-03-26 12:20:44 +08:00
liugq 32ef0a140e feat: collection search support alerting rule search(collection name: alering_rule) 2024-03-13 10:34:17 +08:00
medcl 9cfd9b15e3 misc changes 2024-01-22 22:39:49 +08:00
liugq 57bf0976f1 add collection search api (#212)
add search api for front component ListView

Reviewed-on: https://git.infini.ltd/infini/console/pulls/212
Co-authored-by: liugq <silenceqi@hotmail.com>
Co-committed-by: liugq <silenceqi@hotmail.com>
2023-11-01 10:57:53 +08:00
medcl 4c8ee4a3e2 Merge branch 'master' into v2 2023-10-24 11:27:34 +08:00
hardy 7b59e0dc3e
change domain 2023-10-20 13:55:02 +08:00
liugq 3dc47e3b9a remove api /_platform/nodes, reuse search instance api 2023-10-19 20:49:11 +08:00
liugq 5679f3d426 refactor search instance api to support sort and wildcard sarch 2023-10-19 20:49:11 +08:00
medcl a315c4330d fix build 2023-10-16 17:51:45 +08:00
liugq d0ab79f47d insight metric support formula template (#158)
only support template variable 'bucket_size_in_second' currently, eg frmula: `a/{{.bucket_size_in_second}}`

Reviewed-on: https://git.infini.ltd:64443/infini/console/pulls/158
Co-authored-by: liugq <silenceqi@hotmail.com>
Co-committed-by: liugq <silenceqi@hotmail.com>
2023-09-21 16:08:57 +08:00
medcl 3673791467 temp commit 2023-09-16 17:45:33 +08:00
liugq d738d1985e remove default time filter with alert message search api 2023-08-31 15:25:45 +08:00
liugq 16b18e3ca5 return notification error info 2023-08-30 20:05:16 +08:00
liugq 589303cee4 add rule name to activity info 2023-08-30 10:38:42 +08:00
liugq 74415b97e7 get event message list with default order by updated 2023-08-29 16:00:44 +08:00
liugq 6bbce21258 add batch enable channel api 2023-08-28 16:20:42 +08:00
liugq f767ffa39a return notification info in rule detail api 2023-08-25 16:27:26 +08:00
liugq ebfca4b468 Merge branch 'master' into alerting_optmize 2023-08-22 16:33:14 +08:00
liugq e111ad5567 optimize query dsl of overview api 2023-08-22 16:32:02 +08:00
liugq 174126fa10 fix wrong channel name 2023-08-21 18:03:23 +08:00
liugq 2a1df9743e add rule batch delete api 2023-08-18 17:51:18 +08:00
liugq 9e6a1019fe add batch operation api 2023-08-18 16:01:28 +08:00
liugq 14f391b58b update widget struct 2023-08-17 11:35:35 +08:00
liugq b349c66b14 add get widget api 2023-08-17 11:10:55 +08:00
liugq 47733e63c8 calc hit condition 2023-08-17 10:17:30 +08:00
liugq d7578a2743 add tags, category field 2023-08-16 10:02:48 +08:00
liugq 8e60de8793 refresh email server pipeline after the reference credential updated 2023-08-09 15:17:40 +08:00
liugq 515fd8ad0c fix import alerting rule data bug 2023-08-08 22:45:42 +08:00
liugq 4cc69c8e53 add alert template function md_to_html 2023-08-08 11:32:01 +08:00
liugq e2752d6354 add channel test message variable 2023-08-07 16:11:37 +08:00