metricNotReportedAction is not working as expected
search cancel

metricNotReportedAction is not working as expected

book

Article ID: 278925

calendar_today

Updated On:

Products

DX Application Performance Management

Issue/Introduction

We find that metricNotReportedAction property is not working as expected.

We set the property introscope.epagent.stateless.<plugin-name>.metricNotReportedAction=same

However, when the metric does not provide a value within an interval, the last reported value is not repeated. Instead, the metric value drops to 0. 

Cause

metric type is not valid for this property. 

[DEBUG] [IntroscopeAgent.InfrastructureAgent] Process plugin parsing line: <metric type="PerIntervalCounter" 

Resolution

The use of this property is valid based on the Metric data types.

This depends on the Metric data types that the reporting metric is using.

If the Metric data types are IntCounter and LongCounter the reported value stay at the same value until another value is reported by the plugin-script.

For the other data types for example PerIntervalCounter, IntAverage or LongAverage are reset every interval.

Based on the review of the log for this metric, the Metric data type in this case is: metric type="PerIntervalCounter".

Thus the value is being reset at every interval.

Presently, setting the property
introscope.epagent.stateless.<plugin-name>.metricNotReportedAction=same
will not have any effect as the data type of the metric is PerIntervalCounter. Same is true for data type IntAverage or LongAverage.