#953 new defect

per-database postgres plugins need to show database name in title

Reported by: petere Owned by: nobody
Priority: low Milestone: Munin 1.4.7
Component: plugins Version: 1.4.5
Severity: normal Keywords:
Cc:

Description

The per-database postgres plugins such as postgres_scans_ should show the name of the database in the graph title. Otherwise I might see half a dozen "PostgreSQL scan types" graphs and don't know what they belong to without drilling down into the details view.

Change History (6)

comment:1 Changed at 2011-01-14T18:20:31+01:00 by jo

  • Priority changed from normal to low

comment:2 Changed at 2011-06-07T09:35:03+02:00 by gullevek

This should be a higher priority. It really makes the plugin useless if you have five graphs called "Tuples" but you have no idea which graph belongs to which database.

comment:3 Changed at 2011-06-07T09:40:24+02:00 by gullevek

It can be fixed with a small change in the sub Config part:

    # set the DB name if there is a wildcard parameter
    my $dbname = 'All';
    $dbname = $self->wildcard_parameter(0) if ($self->{paramdatabase});
    print "graph_title $self->{title} for $dbname\n";

comment:4 Changed at 2012-09-12T00:12:58+02:00 by smitha.pamujula

Can anyone please tell me which file does this change go to? is it the Pgsql.pm file?

comment:5 Changed at 2012-09-12T02:14:49+02:00 by gullevek

This was a change in the Pgsql.pm file, but this was in the 1.x version of munin. The 2.x version seems to have fixed this. it says the database name in brackets. Eg PostgreSQL scan types (db name)

comment:6 Changed at 2012-09-13T00:36:20+02:00 by smitha.pamujula

For the non-wildcard ones, is there a way to display teh database name in the title?

Note: See TracTickets for help on using tickets.