1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

syslog_ng_stats: mark total counter stats as DERIVE / min 0 (#1459)

* syslog_ng_stats: mark total counter stats as DERIVE / min 0

the data produced by the underlying `syslog-ng-ctl stats` gives the stats values in absolute numbers since the start of the syslog-ng daemon. In order to visualize in a more user friendly way those values are now marked in the config as type DERIVE.

* syslog_ng_stats: graph_vlabel set as messages/graph_period
This commit is contained in:
Sebastian Jennen 2024-10-14 08:28:47 +02:00 committed by GitHub
parent 2d7fdc8152
commit f777b73725
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,7 +103,7 @@ for my $graph (@str) {
# Show config
if( exists $ARGV[0] and $ARGV[0] eq "config" ) {
print "graph_title Syslog-ng statistics\n";
print "graph_vlabel count\n";
print "graph_vlabel messages/\${graph_period}\n";
print "graph_args --base 1000 --lower-limit 0 --rigid\n";
print "graph_info This graph show syslog-ng-ctl stats\n";
print "graph_category system\n";
@ -117,6 +117,7 @@ if( exists $ARGV[0] and $ARGV[0] eq "config" ) {
printf "%s.label %s: %s, %s\n", $id,
$graph->{source_name},$graph->{source_id}, $graph->{type};
printf "%s.min 0\n", $id;
printf "%s.type DERIVE\n", $id;
}
}