Commit Graph

106 Commits

Author SHA1 Message Date
silenceqi d21326d5ce
chore: remove unused code with `MetricBase` (#132) 2025-02-14 12:36:06 +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
silenceqi 8a27cd4389
fix: unit tests (#69)
* fix: unit tests

* chore: update release notes
2025-01-04 18:30: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 ae3b792f7f
fix: build error with basicAuth.Password 2024-11-29 23:08:48 +08:00
root 10c317f07c feat: add audit logs 2024-04-12 06:31:13 +00:00
liugq 9a2898eb2a fix nil pointer (#220)
Reviewed-on: https://git.infini.ltd/infini/console/pulls/220
Co-authored-by: liugq <silenceqi@hotmail.com>
Co-committed-by: liugq <silenceqi@hotmail.com>
2023-11-03 09:59:25 +08:00
medcl a315c4330d fix build 2023-10-16 17:51:45 +08:00
medcl 3673791467 temp commit 2023-09-16 17:45:33 +08:00
liugq 522a5361a2 add reference channel id to alerting history 2023-08-22 09:04:17 +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 d7578a2743 add tags, category field 2023-08-16 10:02:48 +08:00
liugq 60210619ca add alerting template variable min, max 2023-08-09 18:23:31 +08:00
liugq ceb5d39b0d support email content-type 2023-08-04 22:06:02 +08:00
liugq 0965256ecc use credential to store email server auth info 2023-07-31 15:12:58 +08:00
liugq a53344871c Merge branch 'master' into alert_optimize 2023-07-27 18:06:59 +08:00
liugq 1ce2639903 add event_enabled field to recovery_notification_config 2023-07-27 16:22:09 +08:00
liugq 3f5beb7c9f add enabled field to channel 2023-07-27 15:15:15 +08:00
liugq e6d08bc128 rename recovery_notification_config.channels to recovery_notification_config.normal 2023-07-27 10:29:02 +08:00
liugq 7f36831998 support reference channel 2023-07-25 10:55:17 +08:00
liugq fae481f790 fix sort metric item null reference 2023-07-21 10:45:21 +08:00
liugq a5e036d62a add email server api 2023-07-12 16:28:31 +08:00
liugq 63cacee1a7 add email channel 2023-07-12 14:55:42 +08:00
liugq 0f4bb211d5 add alert recovery notification 2023-07-06 14:20:08 +08:00
liugq 518028fbdb validate metric sort 2023-07-05 10:51:49 +08:00
liugq cc25b07439 insight support terms top by sorted sub metric 2023-07-03 16:09:22 +08:00
liugq 1fe5ace58d optimize map label api 2023-06-19 07:21:22 +08:00
liugq 32ed24cee0 add render label template api 2023-06-16 17:30:11 +08:00
liugq edab287f40 adjust the grouping structure 2023-06-12 17:09:20 +08:00
liugq df4de53d29 auto detect time agg location 2023-06-08 12:53:14 +08:00
Kassian Sun 09ba88c411 [migration] get instance from scheduler, initialize instance automatically 2023-05-30 11:41:53 +08:00
Kassian Sun 7e79c509b2 [comparison] initial implementation
- handle new task types: cluster_comparison, index_comparison
- handle new pipeline tasks: dump_hash, index_diff
- split common task APIs
- add cluster_comparison task creation API
- optimize & clean migration codes
2023-05-17 15:43:34 +08:00
liugq c8b9adfdf1 fixed dashboard mapping 2023-05-08 16:33:28 +08:00
liugq c37380c009 move insight model from framework to console 2023-05-08 16:23:36 +08:00
Kassian Sun b1d3e67954 [migration] index migration skip retrying scroll if possible 2023-04-24 14:22:40 +08:00
liugq 9e8422c7f5 add is_fixed field of layout model 2023-04-19 16:01:33 +08:00
liugq 3fafe39b0d add alerting notification 2023-04-06 16:16:44 +08:00
Kassian Sun 8c623870e3 [notification] support search by keyword 2023-04-06 11:02:34 +08:00
Kassian Sun c3a1d418d5 [notification] update enum & list API 2023-04-04 10:18:45 +08:00
sunjiacheng 8fddcdaf09 [notification] add /notification/read, add message_type (#47)
[notification] add /notification/read, add message_type

Co-authored-by: Kassian Sun <kassiansun@outlook.com>
2023-04-02 15:02:30 +08:00
sunjiacheng 55ac534b02 [api] add list notification api (#35)
[api] add list notification api

Co-authored-by: Kassian Sun <kassiansun@outlook.com>
Co-authored-by: liugq <silenceqi@hotmail.com>
Co-authored-by: medcl <m@medcl.net>
Co-authored-by: silenceqi <silenceqi@infini.ltd>
2023-04-01 18:52:02 +08:00
liugq f187bbe499 add field type and reserved 2023-03-29 11:37:16 +08:00
sunjiacheng 69cf1d67a9 migration_v2 (#38)
bulk write after docs was scrolled complete

update default config with migration dispatcher

add bulk parameter idle_timeout_in_seconds, slice_size

clear queue before creating pipeline

check instance available when task state is running

add check_instance_available config for migration dispatcher

get migration task progress info by index_name_unique(index_name+doctype)

get instance list only by gateway

get migration task progress info from es and instance pipeline context

rewrite logic of handling running migration major task

calc complete time in api getDataMigrationTaskOfIndex

init

Co-authored-by: liugq <silenceqi@hotmail.com>
2023-03-28 17:54:35 +08:00