Re: [openstack-dev] [Ceilometer] "Infinite" values for "sum" and "average" fields in statistics query

2015-10-20 Thread Srikanth Vavilapalli
Hi

I am using MongoDB backend.

Thanks
Srikanth

-Original Message-
From: gord chung [mailto:g...@live.ca] 
Sent: Tuesday, October 20, 2015 9:20 AM
To: openstack-dev@lists.openstack.org
Subject: Re: [openstack-dev] [Ceilometer] "Infinite" values for "sum" and 
"average" fields in statistics query

which backend are you using? this potentially may be a bug where we're hitting 
some size limit restricted by datatype.

On 19/10/2015 4:02 PM, Srikanth Vavilapalli wrote:
> Hi
>
> I have observed "inf" values for "sum" and "average" fields in a ceilometer 
> statistics query on one of my custom meter as shown below. I have also 
> verified the samples query for this meter and there are 1544 samples (output 
> shown below) with all of them having value as "150.0". So ideally the "Avg" 
> filed should be "150.0" in this scenario. Could anyone tell me in what 
> scenario we will see these two fields as "inf" in the meter statistics query? 
> Plz let me know if you need more details or logs here. Appreciate your help.
>
> Thanks
> Srikanth
>
>
> svavilap@ctl:/usr/lib/python2.7/dist-packages/ceilometer$ ceilometer 
> statistics --meter=vcpe.dns.cache.size
> ++++---+---+-+-+---++++
> | Period | Period Start   | Period End | Max   | 
> Min   | Avg | Sum | Count | Duration   | Duration Start | 
> Duration End   |
> ++++---+---+-+-+---++++
> | 0  | 2015-10-17T01:30:24.999000 | 2015-10-19T17:47:20.587000 | 150.0 | 
> 150.0 | inf | inf | 1544  | 231415.588 | 2015-10-17T01:30:24.999000 | 
> 2015-10-19T17:47:20.587000 |
> ++++---+---+-+-+---++++
>
>
> svavilap@ctl:/usr/lib/python2.7/dist-packages/ceilometer$ ceilometer 
> sample-list --meter=vcpe.dns.cache.size
> +-+-+---++-++
> | Resource ID | Name| Type  | Volume | Unit| Timestamp
>   |
> +-+-+---++-++
> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
> 2015-10-19T17:47:20.587000 |
> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
> 2015-10-19T17:47:00.048000 |
> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
> 2015-10-19T17:42:20.47 |
> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
> 2015-10-19T17:41:59.921000 |
> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
> 2015-10-19T17:37:20.362000 |
> .
> .
> .
> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
> 2015-10-17T01:50:25.499000 |
> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
> 2015-10-17T01:45:46.255000 |
> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
> 2015-10-17T01:45:25.374000 |
> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
> 2015-10-17T01:40:46.131000 |
>
> __
>  OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: 
> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

--
gord


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Ceilometer] "Infinite" values for "sum" and "average" fields in statistics query

2015-10-20 Thread gord chung
which backend are you using? this potentially may be a bug where we're 
hitting some size limit restricted by datatype.


On 19/10/2015 4:02 PM, Srikanth Vavilapalli wrote:

Hi

I have observed "inf" values for "sum" and "average" fields in a ceilometer statistics query on one of my custom meter 
as shown below. I have also verified the samples query for this meter and there are 1544 samples (output shown below) with all of them having value 
as "150.0". So ideally the "Avg" filed should be "150.0" in this scenario. Could anyone tell me in what scenario we 
will see these two fields as "inf" in the meter statistics query? Plz let me know if you need more details or logs here. Appreciate your 
help.

Thanks
Srikanth


svavilap@ctl:/usr/lib/python2.7/dist-packages/ceilometer$ ceilometer statistics 
--meter=vcpe.dns.cache.size
++++---+---+-+-+---++++
| Period | Period Start   | Period End | Max   | 
Min   | Avg | Sum | Count | Duration   | Duration Start | Duration 
End   |
++++---+---+-+-+---++++
| 0  | 2015-10-17T01:30:24.999000 | 2015-10-19T17:47:20.587000 | 150.0 | 
150.0 | inf | inf | 1544  | 231415.588 | 2015-10-17T01:30:24.999000 | 
2015-10-19T17:47:20.587000 |
++++---+---+-+-+---++++


svavilap@ctl:/usr/lib/python2.7/dist-packages/ceilometer$ ceilometer 
sample-list --meter=vcpe.dns.cache.size
+-+-+---++-++
| Resource ID | Name| Type  | Volume | Unit| Timestamp  
|
+-+-+---++-++
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-19T17:47:20.587000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-19T17:47:00.048000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-19T17:42:20.47 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-19T17:41:59.921000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-19T17:37:20.362000 |
.
.
.
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-17T01:50:25.499000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-17T01:45:46.255000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-17T01:45:25.374000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-17T01:40:46.131000 |

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


--
gord


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Ceilometer] "Infinite" values for "sum" and "average" fields in statistics query

2015-10-20 Thread gord chung
could you open a bug on 
https://bugs.launchpad.net/ceilometer/+bugs?orderby=-id=0 and 
reference this thread


i would also check to see if ceilometer-api logs have any noticeable 
warning/errors. it's possible a datatype is being restricted there as well.


thanks

On 20/10/2015 12:22 PM, Srikanth Vavilapalli wrote:

Hi

I am using MongoDB backend.

Thanks
Srikanth

-Original Message-
From: gord chung [mailto:g...@live.ca]
Sent: Tuesday, October 20, 2015 9:20 AM
To: openstack-dev@lists.openstack.org
Subject: Re: [openstack-dev] [Ceilometer] "Infinite" values for "sum" and 
"average" fields in statistics query

which backend are you using? this potentially may be a bug where we're hitting 
some size limit restricted by datatype.

On 19/10/2015 4:02 PM, Srikanth Vavilapalli wrote:

Hi

I have observed "inf" values for "sum" and "average" fields in a ceilometer statistics query on one of my custom meter 
as shown below. I have also verified the samples query for this meter and there are 1544 samples (output shown below) with all of them having value 
as "150.0". So ideally the "Avg" filed should be "150.0" in this scenario. Could anyone tell me in what scenario we 
will see these two fields as "inf" in the meter statistics query? Plz let me know if you need more details or logs here. Appreciate your 
help.

Thanks
Srikanth


svavilap@ctl:/usr/lib/python2.7/dist-packages/ceilometer$ ceilometer
statistics --meter=vcpe.dns.cache.size
++++---+---+-+-+---++++
| Period | Period Start   | Period End | Max   | 
Min   | Avg | Sum | Count | Duration   | Duration Start | Duration 
End   |
++++---+---+-+-+---++++
| 0  | 2015-10-17T01:30:24.999000 | 2015-10-19T17:47:20.587000 | 150.0 | 
150.0 | inf | inf | 1544  | 231415.588 | 2015-10-17T01:30:24.999000 | 
2015-10-19T17:47:20.587000 |
++++---+---+-+-+---++++


svavilap@ctl:/usr/lib/python2.7/dist-packages/ceilometer$ ceilometer
sample-list --meter=vcpe.dns.cache.size
+-+-+---++-++
| Resource ID | Name| Type  | Volume | Unit| Timestamp  
|
+-+-+---++-++
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-19T17:47:20.587000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-19T17:47:00.048000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-19T17:42:20.47 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-19T17:41:59.921000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-19T17:37:20.362000 |
.
.
.
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-17T01:50:25.499000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-17T01:45:46.255000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-17T01:45:25.374000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-17T01:40:46.131000 |

__
 OpenStack Development Mailing List (not for usage questions)
Unsubscribe:
openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

--
gord


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


--
gord


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Ceilometer] "Infinite" values for "sum" and "average" fields in statistics query

2015-10-20 Thread Srikanth Vavilapalli
I have raised the bug for this 
(https://bugs.launchpad.net/ceilometer/+bug/1508220)

I have checked the ceilometer-api logs when I ran the query and have not found 
any errors or warnings. I could see only the below two logs:

2015-10-20 17:47:06.771 84151 DEBUG ceilometer.api.controllers.v2.meters [-] 
computed value coming from u'(,)' statistics 
/usr/lib/python2.7/dist-packages/ceilometer/api/controllers/v2/meters.py:407
2015-10-20 17:47:06.773 84151 INFO werkzeug [-] 192.168.0.3 - - [20/Oct/2015 
17:47:06] "GET /v2/meters/vcpe.dns.cache.size/statistics HTTP/1.1" 200 -

Thanks
Srikanth



-Original Message-
From: gord chung [mailto:g...@live.ca] 
Sent: Tuesday, October 20, 2015 1:39 PM
To: openstack-dev@lists.openstack.org
Subject: Re: [openstack-dev] [Ceilometer] "Infinite" values for "sum" and 
"average" fields in statistics query

could you open a bug on
https://bugs.launchpad.net/ceilometer/+bugs?orderby=-id=0 and reference 
this thread

i would also check to see if ceilometer-api logs have any noticeable 
warning/errors. it's possible a datatype is being restricted there as well.

thanks

On 20/10/2015 12:22 PM, Srikanth Vavilapalli wrote:
> Hi
>
> I am using MongoDB backend.
>
> Thanks
> Srikanth
>
> -Original Message-
> From: gord chung [mailto:g...@live.ca]
> Sent: Tuesday, October 20, 2015 9:20 AM
> To: openstack-dev@lists.openstack.org
> Subject: Re: [openstack-dev] [Ceilometer] "Infinite" values for "sum" 
> and "average" fields in statistics query
>
> which backend are you using? this potentially may be a bug where we're 
> hitting some size limit restricted by datatype.
>
> On 19/10/2015 4:02 PM, Srikanth Vavilapalli wrote:
>> Hi
>>
>> I have observed "inf" values for "sum" and "average" fields in a ceilometer 
>> statistics query on one of my custom meter as shown below. I have also 
>> verified the samples query for this meter and there are 1544 samples (output 
>> shown below) with all of them having value as "150.0". So ideally the "Avg" 
>> filed should be "150.0" in this scenario. Could anyone tell me in what 
>> scenario we will see these two fields as "inf" in the meter statistics 
>> query? Plz let me know if you need more details or logs here. Appreciate 
>> your help.
>>
>> Thanks
>> Srikanth
>>
>>
>> svavilap@ctl:/usr/lib/python2.7/dist-packages/ceilometer$ ceilometer 
>> statistics --meter=vcpe.dns.cache.size
>> ++++---+---+-+-+---++++
>> | Period | Period Start   | Period End | Max   | 
>> Min   | Avg | Sum | Count | Duration   | Duration Start | 
>> Duration End   |
>> ++++---+---+-+-+---++++
>> | 0  | 2015-10-17T01:30:24.999000 | 2015-10-19T17:47:20.587000 | 150.0 | 
>> 150.0 | inf | inf | 1544  | 231415.588 | 2015-10-17T01:30:24.999000 | 
>> 2015-10-19T17:47:20.587000 |
>> ++++---+---+-+-+---++++
>>
>>
>> svavilap@ctl:/usr/lib/python2.7/dist-packages/ceilometer$ ceilometer 
>> sample-list --meter=vcpe.dns.cache.size
>> +-+-+---++-++
>> | Resource ID | Name| Type  | Volume | Unit| Timestamp   
>>|
>> +-+-+---++-++
>> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
>> 2015-10-19T17:47:20.587000 |
>> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
>> 2015-10-19T17:47:00.048000 |
>> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
>> 2015-10-19T17:42:20.47 |
>> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
>> 2015-10-19T17:41:59.921000 |
>> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
>> 2015-10-19T17:37:20.362000 |
>> .
>> .
>> .
>> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
>> 2015-10-17T01:50:25.499000 |
>> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
>> 2015-10-17T01:45:46.255000 |
>> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
>> 2015-10-17T01:45:25.374000 |
>> | vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
>> 2015-10-17T01:40:46.131000 |
>>
>> _
>> _  OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe:
>> openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> --
> gord
>
>
> 

[openstack-dev] [Ceilometer] "Infinite" values for "sum" and "average" fields in statistics query

2015-10-19 Thread Srikanth Vavilapalli
Hi

I have observed "inf" values for "sum" and "average" fields in a ceilometer 
statistics query on one of my custom meter as shown below. I have also verified 
the samples query for this meter and there are 1544 samples (output shown 
below) with all of them having value as "150.0". So ideally the "Avg" filed 
should be "150.0" in this scenario. Could anyone tell me in what scenario we 
will see these two fields as "inf" in the meter statistics query? Plz let me 
know if you need more details or logs here. Appreciate your help. 

Thanks
Srikanth


svavilap@ctl:/usr/lib/python2.7/dist-packages/ceilometer$ ceilometer statistics 
--meter=vcpe.dns.cache.size
++++---+---+-+-+---++++
| Period | Period Start   | Period End | Max   | 
Min   | Avg | Sum | Count | Duration   | Duration Start | Duration 
End   |
++++---+---+-+-+---++++
| 0  | 2015-10-17T01:30:24.999000 | 2015-10-19T17:47:20.587000 | 150.0 | 
150.0 | inf | inf | 1544  | 231415.588 | 2015-10-17T01:30:24.999000 | 
2015-10-19T17:47:20.587000 |
++++---+---+-+-+---++++


svavilap@ctl:/usr/lib/python2.7/dist-packages/ceilometer$ ceilometer 
sample-list --meter=vcpe.dns.cache.size
+-+-+---++-++
| Resource ID | Name| Type  | Volume | Unit| Timestamp  
|
+-+-+---++-++
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-19T17:47:20.587000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-19T17:47:00.048000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-19T17:42:20.47 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-19T17:41:59.921000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-19T17:37:20.362000 |
.
.
.
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-17T01:50:25.499000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-17T01:45:46.255000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-17T01:45:25.374000 |
| vcpe-170| vcpe.dns.cache.size | gauge | 150.0  | entries | 
2015-10-17T01:40:46.131000 |

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev