Ottomata has submitted this change and it was merged.

Change subject:  Add counter for absolute number of lines on log
......................................................................


Add counter for absolute number of lines on log

The LineCount parser was reporting the line_rate only 
(number-of-lines/duration),
we believe that also a good measure to have is the number of lines
per every logster run.

Bug: T94193
Change-Id: I15564e35257b932d6b3fc0ad8143ef843d6fe2e3
---
M logster/parsers/LineCountLogster.py
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Ottomata: Verified; Looks good to me, approved



diff --git a/logster/parsers/LineCountLogster.py 
b/logster/parsers/LineCountLogster.py
index 0b11c6b..2d3b26d 100644
--- a/logster/parsers/LineCountLogster.py
+++ b/logster/parsers/LineCountLogster.py
@@ -53,6 +53,7 @@
 
         # Return a list of metrics objects
         return [
-            MetricObject('line_rate',  (float(self.line_count) / 
float(self.duration)), 'lines per sec', type='float', slope='both'),
+            MetricObject('count',  self.line_count, 'lines on log since last 
run', type='int'),
+            MetricObject('rate',  (float(self.line_count) / 
float(self.duration)), 'lines per sec', type='float', slope='both'),
         ]
 

-- 
To view, visit https://gerrit.wikimedia.org/r/200182
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I15564e35257b932d6b3fc0ad8143ef843d6fe2e3
Gerrit-PatchSet: 2
Gerrit-Project: operations/debs/logster
Gerrit-Branch: master
Gerrit-Owner: Nuria <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to