diff options
| author | Christine Dodrill <me@christine.website> | 2019-06-05 09:45:21 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-05 09:45:21 -0400 |
| commit | 2826a7b1f950d0254d82b2e2728c1baefb31b146 (patch) | |
| tree | c6da381521200543b47580a8ed1cc6a2d26f04d4 | |
| parent | 322b6e5f6bbd7da161447267f4da021bbf78d630 (diff) | |
| download | xesite-2826a7b1f950d0254d82b2e2728c1baefb31b146.tar.xz xesite-2826a7b1f950d0254d82b2e2728c1baefb31b146.zip | |
cmd/site: show talk viewcounts broken down with blogposts (#51)
| -rw-r--r-- | cmd/site/html.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/site/html.go b/cmd/site/html.go index b3fa484..33bdd0f 100644 --- a/cmd/site/html.go +++ b/cmd/site/html.go @@ -111,6 +111,7 @@ func (s *Site) showTalk(w http.ResponseWriter, r *http.Request) { } h.ServeHTTP(w, r) + postView.With(prometheus.Labels{"base": filepath.Base(p.Link)}).Inc() } func (s *Site) showPost(w http.ResponseWriter, r *http.Request) { |
