Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
116056a5
Commit
116056a5
authored
2 years ago
by
Carlos Natalino Da Silva
Browse files
Options
Downloads
Patches
Plain Diff
Aligning Prometheus metrics to the layout used by TFS.
parent
c2e49098
No related branches found
No related tags found
2 merge requests
!142
Release TeraFlowSDN 2.1
,
!97
Optical cybersecurity scenario
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/opticalattackdetector/service/OpticalAttackDetectorServiceServicerImpl.py
+4
-4
4 additions, 4 deletions
...ector/service/OpticalAttackDetectorServiceServicerImpl.py
src/opticalattackmanager/service/__main__.py
+4
-4
4 additions, 4 deletions
src/opticalattackmanager/service/__main__.py
with
8 additions
and
8 deletions
src/opticalattackdetector/service/OpticalAttackDetectorServiceServicerImpl.py
+
4
−
4
View file @
116056a5
...
...
@@ -43,19 +43,19 @@ LOGGER = logging.getLogger(__name__)
METRICS_POOL
=
MetricsPool
(
'
OpticalAttackDetector
'
,
'
RPC
'
)
DETECTION_RESPONSE_TIME
=
Histogram
(
"
OPTICAL_ATTACK_DETECTOR_INFERENCE_RESPONSE_TIME
"
,
"
tfs_opticalattackdetector_inference_response_time
"
,
"
Time taken by the inference component to reply
"
)
MONITORING_RESPONSE_TIME
=
Histogram
(
"
OPTICAL_ATTACK_DETECTOR_MONITORING_RESPONSE_TIME
"
,
"
tfs_opticalattackdetector_monitoring_response_time
"
,
"
Time taken by the monitoring component to reply
"
)
MITIGATION_RESPONSE_TIME
=
Histogram
(
"
OPTICAL_ATTACK_DETECTOR_MITIGATION_RESPONSE_TIME
"
,
"
tfs_opticalattackdetector_mitigation_response_time
"
,
"
Time taken by the attack mitigator to reply
"
)
CACHE_RESPONSE_TIME
=
Histogram
(
"
OPTICAL_ATTACK_DETECTOR_CACHE_RESPONSE_TIME
"
,
"
tfs_opticalattackdetector_cache_response_time
"
,
"
Time taken by the cache to reply
"
)
...
...
This diff is collapsed.
Click to expand it.
src/opticalattackmanager/service/__main__.py
+
4
−
4
View file @
116056a5
...
...
@@ -80,7 +80,7 @@ MAX_NUMBER_WORKERS = int(
# Create a metric to track time spent and requests made.
# TODO: adjust histogram buckets to more realistic values
LOOP_TIME
=
Histogram
(
"
OPTICAL_ATTACK_MANAGER
_loop_seconds
"
,
"
tfs_opticalattackmanager
_loop_seconds
"
,
"
Time taken by each security loop
"
,
buckets
=
(
1.0
,
...
...
@@ -113,17 +113,17 @@ LOOP_TIME = Histogram(
)
CURRENT_SERVICES
=
Gauge
(
"
OPTICAL_ATTACK_MANAGER
_active_services
"
,
"
tfs_opticalattackmanager
_active_services
"
,
"
Active optical services currently in the network
"
,
)
NUMBER_WORKERS
=
Gauge
(
"
OPTICAL_ATTACK_MANAGER
_number_workers
"
,
"
tfs_opticalattackmanager
_number_workers
"
,
"
Number of workers being used by the loop
"
,
)
DESIRED_MONITORING_INTERVAL
=
Gauge
(
"
OPTICAL_ATTACK_MANAGER
_desired_monitoring_interval
"
,
"
tfs_opticalattackmanager
_desired_monitoring_interval
"
,
"
Desired loop monitoring interval
"
,
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment