To download the Metrics from a Container you can use WGET
The Avlytics device exposes metrics on ports 9111 for Channel 1 and 9112 for channel 2 etc...
To read the metrics without Grafana and Prometheus, you can read them directly by downloading the metrics as an html webpage with WGET.
pi@raspberry$ wget http://127.0.0.1:9111/metrics
This will download a file called metrics to your Home/pi/ directory.
to inspect the metrics, use the following Command.
pi@raspberry$ more metrics
you should get an output similar to this ..
# HELP python_gc_objects_collected_total Objects collected during gc
# TYPE python_gc_objects_collected_total counter
python_gc_objects_collected_total{generation="0"} 1836.0
python_gc_objects_collected_total{generation="1"} 58.0
python_gc_objects_collected_total{generation="2"} 43.0
# HELP python_gc_objects_uncollectable_total Uncollectable object found during GC
# TYPE python_gc_objects_uncollectable_total counter
python_gc_objects_uncollectable_total{generation="0"} 0.0
python_gc_objects_uncollectable_total{generation="1"} 0.0
python_gc_objects_uncollectable_total{generation="2"} 0.0
# HELP python_gc_collections_total Number of times this generation was collected
# TYPE python_gc_collections_total counter
python_gc_collections_total{generation="0"} 428.0
python_gc_collections_total{generation="1"} 38.0
python_gc_collections_total{generation="2"} 3.0
# HELP python_info Python platform information
# TYPE python_info gauge
python_info{implementation="CPython",major="3",minor="7",patchlevel="3",version="3.7.3"} 1.0
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 3.69201152e+08
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 8.6642688e+07
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1.63118366641e+09
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 0.04
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 31.0
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
Go through the metrics and look for monitor_fps{}
that will show the FPS for the channel in question.
monitor_fps{device="intertrade_INTERSEC_intertrade601",name="channel1",service="video",site="SF05",url="10.0.105.1:554/streaming/channels/102",version="7.22.10"} 0.0 <- This is the Value for Channel1 Fps
If you are getting 0 Fps , try to download a snapshot from the Device with WGET.
If the DVR is Hikvision you can use Wget to download
pi@raspberry$ wget --user admin --password huis1234 http://10.0.0.105/ISAPI/Streaming/channels/101/picture
You should get Success 200 OK and it should download a file called 'picture'
If it is Unsuccessful you will get something similar to this
pi@i601:~ $ wget --user admin --password MDS3cur3 http://10.0.105.1/ISAPI/Streaming/channels/101/picture
--2021-09-09 13:08:38-- http://10.0.105.1/ISAPI/Streaming/channels/101/picture
Connecting to 10.0.105.1:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authentication selected: Digest realm="b63fe603e5d8a7e853bbdd7e", domain="::", qop="auth", nonce="c7318f43a80827e041595f6d3e255bef:1631192916619", opaque="", algorithm="MD5", stale="FALSE"
Reusing existing connection to 10.0.105.1:80.
HTTP request sent, awaiting response... 401 Unauthorized
Username/Password Authentication Failed.
At this point you can confirm that the Username and Password are incorrect and that is why you are getting Zero FPS .
Please reboot the dvr and ensure that the Username and Password are correct in the Hub for each channel.