Re: [openstack-dev] [Monasca] How to get “aggregated value of one metric statistics” ?

Witek Bedyk wbedyk at suse.com
Tue Feb 26 13:21:51 UTC 2019


> [1] In below example , trying to get last ~24.5 days of metrics  from 
> particular tenant , But I can see 2019-01-26 data . With UTC_START_TIME 
> “2019-02-01T00:00:00Z”____

Hi Mohankumar,

the problem occurs when the period is (almost) >= then the evaluated 
dataset. Try moving the start point earlier in the past (e.g. one month 
before) or decrease the period and you'll get correct results.
It might be a bug in InfluxDB.


> [2] does *--merge_metrics ***not**Merge multiple metrics into a single 
> result ?____

`merge_metrics` can be understood as wildcarding on dimensions. Please 
note that in combination with `group_by` it has no effect.

Please compare these examples:

# monasca metric-statistics --merge_metrics disk.space_used_perc 
avg,max,min -2

Will result in just one value for all metrics with any combination of 
dimensions.

# monasca metric-statistics --group_by mount_point,device 
disk.space_used_perc avg,max,min -2

Will result in one value for every unique combination of metric name and 
`mount_point`, `device` dimension values.

I hope it helps,
Witek



More information about the openstack-discuss mailing list