Skip to content

Commit

Permalink
Update src/apps/haproxy/web/mode/backendusage.pm
Browse files Browse the repository at this point in the history
  • Loading branch information
omercier authored Feb 3, 2025
1 parent b46a1b9 commit 17ae410
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions src/apps/haproxy/web/mode/backendusage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,28 @@ sub set_counters {
my ($self, %options) = @_;

$self->{maps_counters_type} = [
{ name => 'backends', type => 3, cb_prefix_output => 'prefix_backend_output', cb_long_output => 'backend_long_output', message_multiple => 'All Backends are ok', indent_long_output => ' ', skipped_code => { -10 => 1 },
{
name => 'backends',
type => 3,
cb_prefix_output => 'prefix_backend_output',
cb_long_output => 'backend_long_output',
message_multiple => 'All Backends are ok',
indent_long_output => ' ',
skipped_code => { -10 => 1 },
group => [
{ name => 'backend', type => 0, cb_prefix_output => 'prefix_global_backend_output' },
{ name => 'servers', type => 1, display_long => 1, cb_prefix_output => 'prefix_server_output', message_multiple => 'Servers are ok', skipped_code => { -10 => 1 } }
{
name => 'backend',
type => 0,
cb_prefix_output => 'prefix_global_backend_output'
},
{
name => 'servers',
type => 1,
display_long => 1,
cb_prefix_output => 'prefix_server_output',
message_multiple => 'Servers are ok',
skipped_code => { -10 => 1 }
}
]
}
];
Expand Down

0 comments on commit 17ae410

Please sign in to comment.