use English qw{ -no_match_vars };
use Sys::Syslog qw{:standard :macros};
use ClamAV::Client;
use JSON;
use Mail::AuthenticationResults::Header::Entry;
use Mail::AuthenticationResults::Header::SubEntr
> 1,
};
}
sub grafana_rows {
my ( $self ) = @_;
my @rows;
push @rows, $self->get_json( 'ClamAV_metrics' );
return \@rows;
}
sub register_metrics {
return {
'clamav_to
ter
use English qw{ -no_match_vars };
use Sys::Syslog qw{:standard :macros};
use HTTP::Tiny;
use JSON;
use Mail::AuthenticationResults::Header::Entry;
use Mail::AuthenticationResults::Header::SubEntr
yes',
}
}
sub grafana_rows {
my ( $self ) = @_;
my @rows;
push @rows, $self->get_json( 'RSpamD_metrics' );
return \@rows;
}
sub register_metrics {
return {
'rspamd_to
lf->metric_count( 'rspamd_total', $self->{ 'metrics_data' } );
return;
}
my $j = JSON->new();
my $rspamd_data = eval{ $j->decode( $response->{'content'} ); };
$self->handle_ex
yes',
}
}
sub grafana_rows {
my ( $self ) = @_;
my @rows;
push @rows, $self->get_json( 'SpamAssassin_metrics' );
return \@rows;
}
sub register_metrics {
return {
'spa
' ],
};
}
sub grafana_rows {
my ( $self ) = @_;
my @rows;
push @rows, $self->get_json( 'UserDB_metrics' );
return \@rows;
}
sub register_metrics {
return {
'userdb_to