You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default Prometheus metrics contain histograms for in and out byte counts. However, they use the default histogram buckets, which means that they measure up to 10 bytes, and down to 0.005 bytes:
Per the prometheus best practices, bytes is the canonical unit to use here, which means that we should be adjusting the bucketcount. The same applies to a lesser degree with proxy_duration_ms_timer_bucket -- but in general Prometheus timing metrics use seconds as their unit, rather than shifting the buckets upwards. cn_duration_bucket, by contrast, is in seconds (and doesn't use TimingWithTags, possibly for that reason?)
Based on that same link, the names for the Prometheus metrics are also pretty non-standard -- cn_atpt_total would more canonically be smokescreen_connection_attempt_count, for instance. We could hardcode a mapping of statsd name to prometheus name in sanitisePrometheusMetricName, but I don't love that -- nor polluting the interface with a function per metric name.
The text was updated successfully, but these errors were encountered:
The default Prometheus metrics contain histograms for in and out byte counts. However, they use the default histogram buckets, which means that they measure up to 10 bytes, and down to 0.005 bytes:
Per the prometheus best practices, bytes is the canonical unit to use here, which means that we should be adjusting the bucketcount. The same applies to a lesser degree with
proxy_duration_ms_timer_bucket
-- but in general Prometheus timing metrics use seconds as their unit, rather than shifting the buckets upwards.cn_duration_bucket
, by contrast, is in seconds (and doesn't useTimingWithTags
, possibly for that reason?)Based on that same link, the names for the Prometheus metrics are also pretty non-standard --
cn_atpt_total
would more canonically besmokescreen_connection_attempt_count
, for instance. We could hardcode a mapping of statsd name to prometheus name insanitisePrometheusMetricName
, but I don't love that -- nor polluting the interface with a function per metric name.The text was updated successfully, but these errors were encountered: