numaproj / numalogic-prometheus

AIOps for metrics in Prometheus
Apache License 2.0
32 stars 10 forks source link

feat: config driven aiops #90

Closed nkoppisetty closed 1 year ago

nkoppisetty commented 1 year ago

Explain what this PR does.

  1. Moved config from contants.py to config.yaml
  2. OmegaConf implementation to load configs
  3. Default config for argo rollouts and argo cd metrics
codecov-commenter commented 1 year ago

Codecov Report

Merging #90 (e75b59a) into main (a226385) will decrease coverage by 0.04%. The diff coverage is 89.90%.

@@            Coverage Diff             @@
##             main      #90      +/-   ##
==========================================
- Coverage   89.78%   89.75%   -0.04%     
==========================================
  Files          17       18       +1     
  Lines         842      898      +56     
  Branches       76       92      +16     
==========================================
+ Hits          756      806      +50     
- Misses         65       73       +8     
+ Partials       21       19       -2     
Impacted Files Coverage Δ
numaprom/tools.py 85.27% <79.06%> (-3.10%) :arrow_down:
numaprom/udsink/train.py 93.10% <87.50%> (ø)
numaprom/udsink/train_rollout.py 85.43% <87.50%> (ø)
numaprom/_constants.py 100.00% <100.00%> (ø)
numaprom/config/_config.py 100.00% <100.00%> (ø)
numaprom/udf/inference.py 100.00% <100.00%> (ø)
numaprom/udf/postprocess.py 96.38% <100.00%> (+3.36%) :arrow_up:
numaprom/udf/threshold.py 100.00% <100.00%> (ø)
numaprom/udf/window.py 94.91% <100.00%> (-0.17%) :arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more