initial prototype complete, starting to package for docker

This commit is contained in:
2023-09-25 19:45:36 -04:00
parent e1e64cdad9
commit 28df368156
6 changed files with 442 additions and 0 deletions

14
prom_metrics.go Normal file
View File

@@ -0,0 +1,14 @@
package main
import "github.com/prometheus/client_golang/prometheus"
var plexActiveSessions = prometheus.NewGauge(prometheus.GaugeOpts{
Name: "plex_active_sessions", Help: "Shows number of active sessions in plex"})
var plexNumMovies = prometheus.NewGauge(prometheus.GaugeOpts{
Name: "plex_num_movies", Help: "Number of movies in the plex database",
})
var plexNumTVShows = prometheus.NewGauge(prometheus.GaugeOpts{
Name: "plex_num_tv_shows", Help: "Number of TV Shows in the plex database",
})