-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
rhos-18.0 Feature Release 2 (Mar 2025)
-
None
Ceilometer is calculating end values for metrics, while the prometheus client library expects to get a difference by which to increase the metric. This means that we get big, untrue value. It's quite hard to explain.
Here are the same 2 metrics. First is from sg-core, second from prometheus exporter. The values should be the same, but there is a big difference:
[stack@localhost ceilometer]$ curl 127.0.0.1:3000/metrics | grep cpu % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 13387 0 13387 0 0 6536k # HELP ceilometer_cpu # TYPE ceilometer_cpu counter 0 ceilometer_cpu{counter="cpu",cpu="fb5d8338-2825-4cb2-871c-7af5c7f4b6d2",project="2dd8edd6c8c24f49bf04670534f6b357",publisher="localhost.localdomain",resource="fb5d8338-2825-4cb2-871c-7af5c7f4b6d2",resource_name="fvt_testing_server:instance-00000001",type="cpu",unit="ns",user="c4240fef4e1b4d6ab92bce1820ef710c",vm_instance="d3c471547d6098b682764d165e9204b9d25d71397f3730dade707ce1"} 9.5222e+11 --:ceilometer_cpu{counter="cpu",cpu="dbd8a646-8777-43a4-8444-6e8a9aa55c28",project="2dd8edd6c8c24f49bf04670534f6b357",publisher="localhost.localdomain",resource="dbd8a646-8777-43a4-8444-6e8a9aa55c28",resource_name="fvt_testing_server2:instance-00000002",server_group="123",type="cpu",unit="ns",user="c4240fef4e1b4d6ab92bce1820ef710c",vm_instance="d3c471547d6098b682764d165e9204b9d25d71397f3730dade707ce1"} 9.1115e+11 --:-- --:--:-- --:--:-- 12.7M [stack@localhost ceilometer]$ curl 127.0.0.1:9101 | grep cpu % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 13122 100 13122 0 0 6407k 0 --:--:-- --:--:-- --:--:-- 6407k # HELP ceilometer_cpu_total # TYPE ceilometer_cpu_total counter ceilometer_cpu_total{counter="cpu",cpu="dbd8a646-8777-43a4-8444-6e8a9aa55c28",project="2dd8edd6c8c24f49bf04670534f6b357",publisher="ceilometer",resource="dbd8a646-8777-43a4-8444-6e8a9aa55c28",resource_name="fvt_testing_server2:instance-00000002",server_group="123",type="cpu",unit="ns",user="c4240fef4e1b4d6ab92bce1820ef710c",vm_instance="d3c471547d6098b682764d165e9204b9d25d71397f3730dade707ce1"} 1.911634e+013 ceilometer_cpu_total{counter="cpu",cpu="fb5d8338-2825-4cb2-871c-7af5c7f4b6d2",project="2dd8edd6c8c24f49bf04670534f6b357",publisher="ceilometer",resource="fb5d8338-2825-4cb2-871c-7af5c7f4b6d2",resource_name="fvt_testing_server:instance-00000001",server_group="none",type="cpu",unit="ns",user="c4240fef4e1b4d6ab92bce1820ef710c",vm_instance="d3c471547d6098b682764d165e9204b9d25d71397f3730dade707ce1"} 1.997729e+013
- mentioned in
-
Page Loading...