centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

[cloud::azure::management::monitor::plugin] Randomly error message : UNKNOWN: No metric found (Are the filters properly set?)

Open amourtialon opened this issue 3 years ago • 4 comments

Hello !

I'm having trouble with the cloud::azure::management::monitor::plugin plugin, on a service which works and which goes back the data well, I regularly have the following message:

UNKNOWN: no metrics found (are the filters correctly defined?)

Have you ever encountered this error ?

Command : (without parameters like Subcription Id, Client Id, ...)

centreon_plugins.pl --plugin=cloud::azure::management::monitor::plugin --mode=get-metrics --custommode=api --metric='$_SERVICEMETRIC$' --aggregation='$_SERVICEAGGREGATION$' --interval='$_SERVICEINTERVAL$' --timeframe='$_SERVICETIMEFRAME$' --warning-metric='$_SERVICEWARNING$' --critical-metric='$_SERVICECRITIQUE$' --zeroed --timeout=30

Parameters :

Name Value
METRIC Percentage CPU
AGGREGATION average
INTERVAL PT5M or PT10M
TIMEFRAME 600
WARNING 90
CRITIQUE 95

Thx !

Sorry for my English :-)

amourtialon avatar Dec 02 '21 14:12 amourtialon

Hello,

I have the same issue !!!

pmatsconsulting avatar Dec 03 '21 15:12 pmatsconsulting

Hello,

It usually means that Azure Monitor doesn't have data over the period of time the Plugin is querying it.

If you look at the Azure monitor dashboard, can you see value for the same period? Thanks Simon

Sims24 avatar Dec 05 '21 15:12 Sims24

Hello Simon,

Thanks for your feedback. On my last error indeed no data in Azure Monitor, but on older errors I have data, is it possible that Azure will update afterwards ?

Thanks Allan

amourtialon avatar Dec 07 '21 10:12 amourtialon

Hi,

Could be, but seems strange. Maybe this is related to the timeframe (600) being larger than the interval (PT5M) in some cases?

Sims24 avatar Jul 26 '22 09:07 Sims24

Hi,

I don't think so, some of my probes are configured with interval 10PTM with same result. I will keep looking thank you for your help

amourtialon avatar Aug 25 '22 07:08 amourtialon