Ceilometer/Gnocchi metrics with 15 seconds interval

asked 2020-03-31 05:12:54 -0500

AB239 gravatar image

Hello guys,

I am using Stein release and have a use case to get the metrics(memory.usage, etc.) with granularity of 15 seconds. I have created 2 different archive-policy pasted below:

| custom_15sec_15gran    |           0 | - timespan: 0:00:15, granularity: 0:00:15, points: 1                  | mean, rate:mean                 |
| custom_15sec_new       |           0 | - timespan: 1:00:00, granularity: 0:00:15, points: 240                | mean, rate:mean                 |
| custom_15sec_timestamp |           0 | - timespan: 0:05:00, granularity: 0:00:15, points: 20                 | mean, rate:mean                 |

I am not able to get the metrics with timestamp gap of 15 seconds with any of the archive policies mentioned above.

I get results like these(first one with archive policy as custom_15sec_new)

+---------------------------+-------------+--------------+
| timestamp                 | granularity |        value |
+---------------------------+-------------+--------------+
| 2020-03-31T13:04:00+05:30 |        15.0 | 209.08203125 |
| 2020-03-31T13:05:00+05:30 |        15.0 | 209.07421875 |
| 2020-03-31T13:06:00+05:30 |        15.0 | 209.17578125 |
| 2020-03-31T13:07:00+05:30 |        15.0 | 209.23828125 |
| 2020-03-31T13:08:00+05:30 |        15.0 | 209.16015625 |
+---------------------------+-------------+--------------+

Second one with archive policy as custom_15sec_15gran

+---------------------------+-------------+-------------+
| timestamp                 | granularity |       value |
+---------------------------+-------------+-------------+
| 2020-03-31T15:19:00+05:30 |        15.0 | 278.2421875 |
+---------------------------+-------------+-------------+

But I want result like these:

+---------------------------+-------------+--------------+
| timestamp                 | granularity |        value |
+---------------------------+-------------+--------------+
| 2020-03-31T13:04:00+05:30 |        15.0 | 209.08203125 |
| 2020-03-31T13:04:15+05:30 |        15.0 | 209.07421875 |
| 2020-03-31T13:04:30+05:30 |        15.0 | 209.17578125 |
| 2020-03-31T13:04:45+05:30 |        15.0 | 209.23828125 |
| 2020-03-31T13:05:00+05:30 |        15.0 | 209.16015625 |
+---------------------------+-------------+--------------+

Any help is highly appreciated.

edit retag flag offensive close merge delete