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

add metrics docs #251

Merged
merged 5 commits into from
Sep 16, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions console/metrics.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
include::../partials/attributes.adoc[]
[id="metrics"]
= Flow metrics

The following metrics are available to a Prometheus instance when you enable the flow collector using `skupper init --enable-flow-collector`

flows_total:: For tcp protocol this is the total number of connections.
For http or http2 protocol this is the total number of distinct requests made.

octets_total:: The total number of bytes processed by the router.
pwright marked this conversation as resolved.
Show resolved Hide resolved

active_flows:: The number of flows currently active including open tcp connections and _in flight_ http requests.

address_last_time_seconds:: The time since a flow was last observed in seconds.
pwright marked this conversation as resolved.
Show resolved Hide resolved

flow_latency_microseconds:: The latency in microseconds, as observed by the first and last router involved in the flow.
pwright marked this conversation as resolved.
Show resolved Hide resolved

http_requests_method_total:: Total number of http requests grouped by method.
+
Additional label: The http method, for example, `GET`, `HEAD`, `POST`.

http_requests_result_total:: Total number of http requests by response code.
+
Additional label: The http response code, for example `200`, `403`, `503`.

activeLinks:: The total number of links between sites.
pwright marked this conversation as resolved.
Show resolved Hide resolved

activeRouters:: The total number of routers.

activeSites:: The total number of sites.


The following labels are common to these metrics allowing you to filter and categorize the data:
pwright marked this conversation as resolved.
Show resolved Hide resolved

address:: The address relating to the metric.
Typically, this is the service name.

sourceSite:: The site where the flow originated for the metric.
This string is a combination of the site name and the site ID.

destSite:: The site where the flow terminated for the metric.
This string is a combination of the site name and the site ID.

direction:: The direction of flow.
For traffic sent from a client to server the value is `incoming`.
For traffic sent from a client to server the value is `outgoing`.

protocol:: The protocol used by the flow, `tcp`, `http`, or `http2`.

sourceProcess:: The name of the process originating the flow.

destProcess:: The name of the process receiving the flow.
Loading