[openstack-dev] [Monasca] How to get “aggregated value of one metric statistics” ?
Hi Team, How to get “aggregated value of one metric statistics” from starting of month to till now . If I try to group metrics using * --period* based on timestamp it including data from previous month metrics as well [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” [2] does *--merge_metrics * not Merge multiple metrics into a single result ? Please suggest how to customise my API call to get “AVG (aggregated) value of one metric statistics” from starting of month to till now . *Regards.,* Mohankumar N "*Confidentiality Warning*: This message and any attachments are intended only for the use of the intended recipient(s), are confidential and may be privileged. If you are not the intended recipient, you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this message and any attachments from your system. *Virus Warning:* Although the company has taken reasonable precautions to ensure no viruses are present in this email. The company cannot accept responsibility for any loss or damage arising from the use of this email or attachment."
[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
[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
participants (2)
-
Mohan Kumar
-
Witek Bedyk