The web dashboard feature

feature id: no.dbwatch.dashboard:dashboard

The web dashboard features includes a dashboard for the dbWatch web server

Configurations

The web dashboard can be configured by adding one or more mount statements to the
http_configuration.xml.

Please note that this configuration file must be placed together with the other configuration files.
The location could typicaly be C:\ProgramData\dbWatch\12.3.15\server\config\ on Windows and /usr/local/dbWatch/12.3.15/server/config/ on Linux, but location could be different depending on version and installation choices.

This statement mounts the dashboard on the url dashboard/index.html

<mount template="no.dbwatch.dashboard:dashboard" route="dashboard/">
</mount>

The property instance_query can be used to specify the set of instances shown in the dashboard. This
mount statement shows only instances in the production group.

<mount template="no.dbwatch.dashboard:dashboard" route="production/dashboard/">
<property key="query_instances" value="instance[group='production']"/>
</mount>

The properties query_lost, query_alarm, query_warning, query_ok and query_issues specifies what is shown in each corresponding part of the dashboard page. eg. The query_alarm query specifies what is
shown in the alarm part.

This examples shows a mount specifying each of these.

<mount template="no.dbwatch.dashboard:dashboard" route="production/dashboard/">
<property key="query_instances" value="instance[group='production']"/>
    <property key="query_lost" value="{$query_instances}[status='LOST CONNECTION']->i/$i/group\{'Group'\}/$i/name\{'Instance'\}/$i/statustime\{'Statustime' #sort(desc) #renderdate\}"/>
    <property key="query_alarm" value="{$query_instances}[status='ALARM']->i/$i/group\{'Group'\}/$i/name\{'Instance'\}/$i/statustime\{'Statustime' #sort(desc) #renderdate\}"/>
    <property key="query_warning" value="{$query_instances}[status='WARNING']->i/$i/group\{'Group'\}/$i/name\{'Instance'\}/$i/statustime\{'Statustime' #sort(desc) #renderdate\}"/>
    <property key="query_ok" value={$query_instances}[status='OK']->i/$i/group\{'Group'\}/$i/name\{'Instance'\}/$i/statustime\{'Statustime' #sort(desc) #renderdate\}"/>
    <property key="query_issues" value="{$query_instances}->i/$i/group\{'Group'\}/$i/name\{'Instance'\}/$i/task[status='WARNING' | status='ALARM']->t/$t[enabled='YES']/name\{'Task' \}/$t/status/id\{'Status'\}/$t/statustime\{'Statustime' #sort(desc) #renderdate\}/$t/details\{'Details'\}"/>
</mount>
 Supported browsers

Supported browsers

Chrome and Firefox.

Unsupported

Internet explorer.

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment