From e2aa1f57969c500d4364450034c205c8fa8dab49 Mon Sep 17 00:00:00 2001 From: Mya Date: Sat, 2 Jul 2022 16:06:35 +0000 Subject: [PATCH] Update 'Metrics' --- Metrics.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Metrics.md diff --git a/Metrics.md b/Metrics.md new file mode 100644 index 0000000..1b98cdb --- /dev/null +++ b/Metrics.md @@ -0,0 +1,45 @@ +All metrics are prefixed with the `pages` namespace. This makes it easy to narrow down to the specific metrics for the +system. + +## pages_page_view_count + +The number of page views for a given path and their associated referrer. + +```text +# HELP pages_page_view_count the number of times a given page has been viewed and by what referrer +# TYPE pages_page_view_count counter +pages_page_view_count{country="",path="/charts/",referrer="http://localhost:8080/blog/"} 1 +``` + +## pages_page_session_seconds + +Histogram of how long users spend on a page. + +```text +# HELP pages_page_session_seconds how long someone spent on a given page +# TYPE pages_page_session_seconds histogram +pages_page_session_seconds_bucket{country="",path="/",le="0.005"} 0 +pages_page_session_seconds_bucket{country="",path="/",le="0.01"} 0 +pages_page_session_seconds_bucket{country="",path="/",le="0.025"} 0 +pages_page_session_seconds_bucket{country="",path="/",le="0.05"} 0 +pages_page_session_seconds_bucket{country="",path="/",le="0.1"} 0 +pages_page_session_seconds_bucket{country="",path="/",le="0.25"} 0 +pages_page_session_seconds_bucket{country="",path="/",le="0.5"} 0 +pages_page_session_seconds_bucket{country="",path="/",le="1"} 0 +pages_page_session_seconds_bucket{country="",path="/",le="2.5"} 1 +pages_page_session_seconds_bucket{country="",path="/",le="5"} 1 +pages_page_session_seconds_bucket{country="",path="/",le="10"} 1 +pages_page_session_seconds_bucket{country="",path="/",le="+Inf"} 1 +pages_page_session_seconds_sum{country="",path="/"} 1.855976549 +pages_page_session_seconds_count{country="",path="/"} 1 +``` + +## pages_page_sessions_active + +A gauge that approximates the current number of sessions per page. + +```text +# HELP pages_page_sessions_active the number of current sessions for a given page +# TYPE pages_page_sessions_active gauge +pages_page_sessions_active{country="",path="/"} 1 +```