Mapping metrics as negative

By default all metrics are considered positive; i.e any positive change in the metric value (increase) is considered to be ‘good’ and is represented in green (default color). There are obviously some metric (like expenses, for instance) whose increase should be treated as a negative. These types of metrics should be identified as such in the configuration. Currently this configuration is done in the global.txt file.


The relevant section in the file looks as follows

#Support for negative metrics. Add metric names separated by comma
#negativeMetrics=AC

In order to add new metric names that should be treated as negative,

  • remove the leading # mark from the line (the # mark makes the line a comment and hence will not be read for the system configuration). The line now looks like
    #Support for negative metrics. Add metric names separated by comma
    negativeMetrics=AC
    
  • add any name of the metric or a pattern (regular expression)
  • each name and pattern should be separated by a comma
  • while using regular expressions, the entire expression should be enclosed with [].

For example, if you would like to indicate that all metrics with the phrase expense in them should be treated as ‘negative’, you will change the line to

#Support for negative metrics. Add metric names separated by comma
negativeMetrics=[.*expense.*]

If you would like to add a specific metric name like ‘miscellaneous costs’, the line would now be

#Support for negative metrics. Add metric names separated by comma
negativeMetrics=[.*expense.*], miscellaneous costs