Commit Graph

14045 Commits

Author SHA1 Message Date
ionutboangiu
ea3ebcc6dd add config sanity checks for prometheus_agent 2025-03-25 14:27:52 +01:00
ionutboangiu
347ea9d988 Add CoreS metrics collection to PrometheusAgent 2025-03-25 14:27:52 +01:00
ionutboangiu
d8c75dd2c3 cores: add GOMAXPROCS, GC percent and memlimit metrics
- gathered when Debug=true
- removed Lookups (always 0)
2025-03-25 14:27:52 +01:00
ionutboangiu
d14d62b865 update prom client library 2025-03-25 14:27:52 +01:00
ionutboangiu
e117b2df30 prometheus_agent: add cores_conns config opt 2025-03-25 14:27:52 +01:00
ionutboangiu
13044ddd9d refactor matched accounts sorting 2025-03-25 14:25:00 +01:00
ionutboangiu
70b6cca25b refactor rating profile matching by weight 2025-03-25 14:25:00 +01:00
ionutboangiu
927a30b682 refactor profile sorting for actions 2025-03-25 14:25:00 +01:00
ionutboangiu
3f3605b349 refactor matched resources sorting 2025-03-25 14:25:00 +01:00
ionutboangiu
37de0c3bd1 refactor matched statqueues sorting 2025-03-25 14:25:00 +01:00
ionutboangiu
52177197f2 refactor matched thresholds sorting 2025-03-25 14:25:00 +01:00
ionutboangiu
4083eb35df refactor attribute matching by weight 2025-03-25 14:25:00 +01:00
ionutboangiu
4244ba2cdf refactor profile sorting for routes 2025-03-25 14:25:00 +01:00
ionutboangiu
b00b2f07ae refactor profile sorting for chargers 2025-03-25 14:25:00 +01:00
ionutboangiu
0b26559d1f move chargers to dedicated package 2025-03-16 16:28:30 +01:00
gezimbll
2f808badb7 added cache parameter in Get*Opts methods 2025-03-12 15:24:18 +01:00
gezimbll
1f686fca63 added RequestProcessors in fsAgent 2025-03-11 18:12:49 +01:00
ionutboangiu
0497016ad6 revise comments in rankings 2025-03-10 13:49:34 +01:00
ionutboangiu
a3d385dd2f revise comments in trends 2025-03-10 13:49:34 +01:00
ionutboangiu
c762de5c28 move rankings to dedicated package 2025-03-10 13:49:34 +01:00
ionutboangiu
47fb25b4ef move trends to dedicated package
reivse/add comments and order of funcs/definitions
2025-03-10 13:49:34 +01:00
ionutboangiu
24d886c8e0 Pass CGRConfig to DataManager
instead of just CacheCfg. Prevents the need of global config var in
engine/datamanager.go
2025-03-10 13:49:34 +01:00
ionutboangiu
e92b5fd026 remove redundant services tests
replaced by TestServiceToggle (general_tests/service_toggle_it_test.go)
2025-03-09 17:36:12 +01:00
ionutboangiu
487062a708 skip testing removed subsystem 2025-03-09 17:27:31 +01:00
ionutboangiu
e79fcdb064 use pre-defined instrumented prometheus handler
instead of creating the handler on each scrape
2025-03-09 17:27:31 +01:00
ionutboangiu
caebee4eab Fix failing elastic exporter test
does not expect OriginID field to be present anymore if exporting without
defining any templates. Not defining them means only the Event will be
exported as is, while OriginID is part of APIOpts.
2025-03-09 17:27:31 +01:00
ionutboangiu
2c8c9b326e remove previous prometheus integration 2025-03-09 17:27:31 +01:00
ionutboangiu
6f0ce88ae2 add test for new prometheus agent implementation 2025-03-09 17:27:31 +01:00
ionutboangiu
4e46f8dbd9 add PrometheusAgent implementation 2025-03-09 17:27:31 +01:00
ionutboangiu
875fdb3993 implement config object for prometheus_agent 2025-03-09 17:27:31 +01:00
ionutboangiu
00c192251d fix checksum mismatch in ansible go role 2025-03-01 07:26:37 +01:00
ionutboangiu
47fb574aef revise failing integration test
failing due to 56dfa4ee21
warning error is not returned anymore, only logged
2025-02-26 19:52:58 +01:00
ionutboangiu
56dfa4ee21 prevent data race in file watcher goroutine 2025-02-26 16:19:08 +01:00
gezimbll
5628a31852 updated rsyslog conf to include logs with tag CGRateS 2025-02-26 16:17:03 +01:00
gezimbll
8fd871b304 added log level field on stordb opts for controlling sql verbosity 2025-02-25 19:42:11 +01:00
ionutboangiu
4ad5bee6ab move failing tests to flaky 2025-02-24 13:36:32 +01:00
ionutboangiu
deaf5f4918 Move config/objdp.go to utils package
and rename the file to objectdp.go
2025-02-24 13:36:32 +01:00
ionutboangiu
3254e0d35f Export RSRParser Path field
configsanity and its tests need access to it
2025-02-24 13:36:32 +01:00
ionutboangiu
b1a5874215 Move config/rsrparser.go to utils package 2025-02-24 13:36:32 +01:00
ionutboangiu
36a7d174ab Remove RSRSep opt from general section
- allows RSRParser to be split gracefully from config (was depending on
  RSRSep, which was retrieved from the global config variable)
- default separator (;) was the only one used except for splitting
  inline attribute values (where ANDSep is used)
2025-02-24 13:36:32 +01:00
ionutboangiu
c60712f454 Bump go version to 1.24.0 2025-02-21 13:22:04 +01:00
armirveliaj
4b1e6e7def Add coverage tests on engine 2025-02-20 12:05:39 +01:00
armirveliaj
ad0b45b4d2 Add coverage tests on accounts && engine 2025-02-20 12:05:39 +01:00
gezimbll
18b0e4d417 added new dynopts function GetDurationPointerOpts 2025-02-20 09:54:13 +01:00
gezimbll
14515404bb added helper method for repetive logic on GetOpts funcs 2025-02-13 19:18:40 +01:00
armirveliaj
d2c175141f Add coverage tests on SessionS 2025-02-13 19:17:20 +01:00
armirveliaj
ae8564ad50 Add coverage tests on sessionS 2025-02-07 13:26:56 +01:00
armirveliaj
6928674716 Add coverage tests on SessionS 2025-02-07 13:26:56 +01:00
armirveliaj
c34ae82539 Convert CDR.Opts[*accountsCost] to *utils.EventCharges 2025-02-07 13:26:56 +01:00
ionutboangiu
f89cad421e Revise service toggle test 2025-02-07 13:23:59 +01:00