Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate metrics #53

Closed
eloo opened this issue Jul 24, 2017 · 3 comments
Closed

Duplicate metrics #53

eloo opened this issue Jul 24, 2017 · 3 comments
Milestone

Comments

@eloo
Copy link
Contributor

eloo commented Jul 24, 2017

It seems that if many request came for the very first time that duplicate counters will be registered which leads to duplicate metrics in exporting and therefore overwriting metrics.

This will look like this.

http_server_requests{exception="None",instance="192.168.110.111",instanceType="local",job="MVG",method="DELETE",profile="dev",status="500",uri="v1/vehicles/{vin}",quantile="0.5"} 1.436569357
http_server_requests{exception="None",instance="192.168.110.111",instanceType="local",job="MVG",method="DELETE",profile="dev",status="500",uri="v1/vehicles/{vin}",quantile="0.95"} 2.810563785
http_server_requests{exception="None",instance="192.168.110.111",instanceType="local",job="MVG",method="DELETE",profile="dev",status="500",uri="v1/vehicles/{vin}",quantile="0.5"} NaN
http_server_requests{exception="None",instance="192.168.110.111",instanceType="local",job="MVG",method="DELETE",profile="dev",status="500",uri="v1/vehicles/{vin}",quantile="0.95"} NaN
http_server_requests{exception="None",instance="192.168.110.111",instanceType="local",job="MVG",method="DELETE",profile="dev",status="500",uri="v1/vehicles/{vin}",quantile="0.5"} NaN
http_server_requests{exception="None",instance="192.168.110.111",instanceType="local",job="MVG",method="DELETE",profile="dev",status="500",uri="v1/vehicles/{vin}",quantile="0.95"} NaN
http_server_requests{exception="None",instance="192.168.110.111",instanceType="local",job="MVG",method="DELETE",profile="dev",status="500",uri="v1/vehicles/{vin}",quantile="0.5"} NaN
http_server_requests{exception="None",instance="192.168.110.111",instanceType="local",job="MVG",method="DELETE",profile="dev",status="500",uri="v1/vehicles/{vin}",quantile="0.95"} NaN
http_server_requests_sum{exception="None",instance="192.168.110.111",instanceType="local",job="MVG",method="DELETE",profile="dev",status="500",uri="v1/vehicles/{vin}"} 0
http_server_requests_count{exception="None",instance="192.168.110.111",instanceType="local",job="MVG",method="DELETE",profile="dev",status="500",uri="v1/vehicles/{vin}"} 0

It seems that the dynamic creation of the endpoint metric should be synchronized over all threads?

Best regards,
Eloo

@jkschneider
Copy link
Contributor

Interesting! Thanks for the diagnosis.

@eloo
Copy link
Contributor Author

eloo commented Jul 24, 2017

the issue occured while running with gatling (atOnceUsers(500)) against my restapi

@jkschneider jkschneider added this to the 0.7.0.RELEASE milestone Jul 24, 2017
@eloo
Copy link
Contributor Author

eloo commented Jul 26, 2017

can confirm that this is fixed in 0.7.0.RELEASE

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants