Skip to content

Expose HTTP metrics in the Alternator dashboard #2506

@nyh

Description

@nyh

A user complained about excessive work being done in TLS handshakes in an Alternator server on HTTPS. We wanted to know if our suspicious that a lot of new Alternator connections are being created per second.
As far as I can tell, we have in the CQL dashboard a rate of new connections per second, but apparently are missing a similar thing in the Alternator dashboard.

We do have the right metric:

scylla_httpd_connections_total{service="API",shard="0"} 0
scylla_httpd_connections_total{service="http-alternator",shard="0"} 0
scylla_httpd_connections_total{service="https-alternator",shard="0"} 0
scylla_httpd_connections_total{service="prometheus",shard="0"} 2

So we can show the rate() of that - the number of new HTTP and HTTPS connections being created each second.

To clarify, this issue is about new connections, not individual requests. But we should also show a count of individual requests if we don't have it yet - this is:

scylla_httpd_requests_served{service="API",shard="0"} 0
scylla_httpd_requests_served{service="http-alternator",shard="0"} 0
scylla_httpd_requests_served{service="https-alternator",shard="0"} 0
scylla_httpd_requests_served{service="prometheus",shard="0"} 2

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions