Update src/jellyfin_exporter/collector.py
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b8f6251221
commit
7d82945f61
@ -13,11 +13,11 @@ CollectorsOptions = collections.namedtuple('CollectorsOptions', [
|
|||||||
|
|
||||||
class SessionsCollector(Collector):
|
class SessionsCollector(Collector):
|
||||||
"""
|
"""
|
||||||
Collects Proxmox VE Node/VM/CT-Status
|
Collects Jellyfin /Sessions API endpoint
|
||||||
|
|
||||||
# HELP pve_up Node/VM/CT-Status is online/running
|
# HELP jellyfin_sessions Current sessions
|
||||||
# TYPE pve_up gauge
|
# TYPE jellyfin_sessions gauge
|
||||||
jellyfin_session{id="xxxx", "playing"="xxxx", "method"="xxxx", "username": "xxx"} 1.0
|
jellyfin_session{device="Android TV", "playing"="Attack on Titan", "playmethod"="DirectPlay", "username": "hipstercat"} 1.0
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, jf):
|
def __init__(self, jf):
|
||||||
|
Loading…
Reference in New Issue
Block a user