teler-proxy
                                
                                
                                
                                    teler-proxy copied to clipboard
                            
                            
                            
                        feat: implement Prometheus metrics [WIP]
IMPORTANT: Please do not create a PR without creating an issue first!
(Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request).
Summary
Specs:
Metrics
threat_datasets: Number of avaiable threat datasets. (Gauge)teler_event: Number of incoming teler WAF events. (Counter, labels:rule&threat)request_duration_seconds: Request duration times in seconds. (Histogram)
Note Since there is no proposal for this, revisit inline
TODOs andNOTEs that need to be reconsidered.
Proposed of changes
This PR fixes/implements the following bugs/features:
- Bug 1
 - Bug 2
 - Feature 1
 - Feature 2
 - Breaking changes
 
How has this been tested?
Proof:
Closing issues
Fixes #
Checklist:
- [ ] My code follows the code style of this project.
 - [ ] My changes successfully ran and pass linters locally (run 
make lint). - [ ] I have written new tests for my changes.
- [ ] My changes successfully ran and pass tests locally.
 
 - [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
 
 
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
4d628c2) 100.00% compared to head (9f2857c) 100.00%.
Additional details and impacted files
@@            Coverage Diff            @@
##            master       #40   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           36        36           
=========================================
  Hits            36        36           
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.