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

Histogram metrics fail to parse out sum #13

Open
moogspike opened this issue Dec 4, 2020 · 0 comments
Open

Histogram metrics fail to parse out sum #13

moogspike opened this issue Dec 4, 2020 · 0 comments

Comments

@moogspike
Copy link

For a histogram metric

# TYPE envoy_listener_downstream_cx_length_ms histogram
envoy_listener_downstream_cx_length_ms_bucket{envoy_listener_address="0.0.0.0_8080",le="1800000"} 1057540
envoy_listener_downstream_cx_length_ms_bucket{envoy_listener_address="0.0.0.0_8080",le="3600000"} 1057540
envoy_listener_downstream_cx_length_ms_bucket{envoy_listener_address="0.0.0.0_8080",le="+Inf"} 1057761
envoy_listener_downstream_cx_length_ms_sum{envoy_listener_address="0.0.0.0_8080"} 49511759034.9499969482421875
envoy_listener_downstream_cx_length_ms_count{envoy_listener_address="0.0.0.0_8080"} 1057761

# TYPE envoy_listener_admin_downstream_cx_length_ms histogram
envoy_listener_admin_downstream_cx_length_ms_bucket{le="1800000"} 23228
envoy_listener_admin_downstream_cx_length_ms_bucket{le="3600000"} 23228
envoy_listener_admin_downstream_cx_length_ms_bucket{le="+Inf"} 23228
envoy_listener_admin_downstream_cx_length_ms_sum{} 10585574.25
envoy_listener_admin_downstream_cx_length_ms_count{} 23228

The use of a label in the _sum barfs the parsing

The two examples above result in the following parsed output

[
    {
        "name": "envoy_listener_downstream_cx_length_ms",
        "help": "",
        "type": "HISTOGRAM",
        "metrics": [
            {
                "buckets": {
                    "1800000": "1057540",
                    "3600000": "1057540",
                    "+Inf": "1057761"
                }
            }
        ]
    },
    {
        "name": "envoy_listener_admin_downstream_cx_length_ms",
        "help": "",
        "type": "HISTOGRAM",
        "metrics": [
            {
                "buckets": {
                    "1800000": "23228",
                    "3600000": "23228",
                    "+Inf": "23228"
                },
                "count": "23228",
                "sum": "10585574.25"
            }
        ]
    }
]
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

1 participant