Setting the thresholds for a gauge
A gauge has three display levels: low, medium, and high. This task shows how to set the thresholds for each display level.
Before you begin
First note the following for each gauge you want to modify:
- The name of the gauge
The name appears beneath each gauge on the Gauges page.
- The value of the thresholds for transitions from low to medium and from medium to high.
You express each threshold as a percentage of the gauge's range (maximum value minus minimum value). Use the following method to determine the percentage value of each threshold:
- Decide on the actual values on the gauge that are to be the threshold points.
- Calculate the percentage equivalent of each point as follows:
threshold(%) = (threshold - Gmin) / (Gmax - Gmin) * 100
where:- threshold(%)
- is the threshold expressed as a percentage.
- threshold
- is the threshold point on the gauge.
- Gmin
- is the minimum value of the gauge.
- Gmax
- is the maximum value of the gauge.
About this task
Procedure
Example
The characteristics and requirements for a gauge are:
- The gauge has a minimum value of 5 and a maximum of 55.
- The threshold points are 10 and 50.
The thresholds, expressed as percentages, are:
- Lower threshold:
(10 - 5)/(55 - 5) * 100 = 10%
- Upper threshold:
(50 - 5)/(55 - 5) * 100 = 90%
The <metric> element for this gauge is:
<metric name="adminconnections"
displayName="Administrator"
displayNameKey="ncw.metric.adminconnections.displayname"
description="Number of Administration client connections"
descriptionKey="ncw.metric.adminconnections.description"
units="clients"
unitsKey="ncw.metric.adminconnections.units"
maxValue="55"
minValue="5"
threshold1="10"
threshold2="90">