Go to documentation repository
Page History
Aby wyświetlić dane odnośnie systemu, wykonaj następujące akcje:
- Przejdź do interfejsu Web usługi autodiagnostyki
To view the system status data, do the following:
- Go to the web interface of the self-diagnostics service: http://127.0.0.1:20040/.
Select the required metric in the list Wybierz wymagane metryki z listy (1) or enter the query in the Expression fieldlub wprowadź zapytanie w polu Expression.
Expand title Description of useful metrics MetricMetryka
DescriptionOpis
ALERTS_FOR_STATE
Troubleshooting by the self-diagnostics serviceDiagnostyka przeprowadzana przez usługę autodiagnostyki.
Code Block title Example ALERTS_FOR_STATE{alertname="ipint_is_not_activated",ep_name="hosts/Server1/DeviceIpint.99",instance="127.0.0.1:20108",job="ngp_exporter",ngp_alert="true"}
Possible values of the alertname parameter (see What is the self-diagnostics serviceMożliwe wartości parametru alertname (zobacz: Opis usługi autodiagnostyki):
- low_os_memory — out of brak pamięci RAM;
- ipint_is_not_activated — camera is connected but does not send data kamera jest podłączona, lecz nie przesyła danych;
- no_samples_in_detector — no events from a detection tool brak zdarzeń z narzędzia detekcji;
- restart_services_when_archive_source_not_activated — the archive is not working— archiwum nie działa;
- restart_services_when_no_samples_in_archive — recording to archive with 0 FPS zapisywanie do archiwum wynosi 0 klatek na sekundę;
- restart_services_when_no_ping_from_detector_to_archive — no recording to the archive on detection tool triggering brak zapisu do archiwum przy wyzwolonym narzędzia detekcji;
- logs_disk_space_is_low/db_disk_space_is_low — out of system disk space brak miejsca na dysku systemowym.
ngp_archive_channel_fpsThe frame rate of all video cameras recording to archive
Ilość klatek na sekundę wszystkich kamer nagrywających do archiwum.
ngp_cpu_total_usage
The percentage of CPU load on a ServerProcent obciążenia CPU na Serwerze.
ngp_fps
The frame rate of all Server video cameras, all detection tools and their decoders.
The request allows for:
Ilość klatek na sekundę wszystkich kamer, narzędzi detekcji oraz dekoderów.
Zapytania pozwalają na:
Korzystanie z wielu metryk jednocześnie.
Korzystanie z wyrażen do znajdowania problemów. Przykład: zapytanie ngp_fps <17 zwróci wszystkie metryki, przy których klatki na sekundę wynosiły mniej niż 17. Aby pozyskać kompletną listę logicznych i arytmetycznych operacji, zapoznaj się z oficjalną dokumentacją techniczną Prometheus.
Filtrowanie po jakimkolwiek z parametrów. Przykład: zapytanie
Using multiple metrics.
Using expressions to find problems. For example, a query like ngp_fps <17 will return all metrics, where FPS was less than 17. For a complete list of logical and arithmetic operators, see the official Prometheus documentation.
Filtering by any of the parameters. For example, a query like ngp_fps{ep_name=~"hosts/TEST/DeviceIpint.2/SourceEndpoint.video:0:0"} will return FPS values only for the specified source.
Examples of useful queries for Windows:
The CPU loading graph similar to the Windows System monitorzwróci wartości klatek na sekundę tylko dla określonego źródła.
Przykłady przydatnych zapytań dla Windows:
Wykres zużycia CPU podobny do tworzonego przez system Windows:Code Block sum by (process_id) (100 / scalar(wmi_cs_logical_processors) * (irate(wmi_process_cpu_time_total{job="os_export", process="AppHost"}[10m]))) or ngp_cpu_total_usage
The graph of RAM usage by the AppHost processes and a total memory spaceWykres zużycia pamięci RAM przez procesy AppHost oraz całkowita pojemność pamięci:
Code Block sum by (process_id) (avg_over_time(wmi_process_working_set{job=~"os_export", process="AppHost"}[5m])) / 1024 or avg_over_time(wmi_os_virtual_memory_bytes{job=~"os_export"}[5m]) / 1024
The percentage of RAM usageProcent zużycia pamięci RAM:
Code Block 100.0 - 100 * avg_over_time(wmi_os_virtual_memory_free_bytes{job=~"os_export"}[5m]) / avg_over_time(wmi_os_virtual_memory_bytes{job=~"os_export"}[5m])
Examples of useful queries for Przykłady przydatnych zapytań dla Linux:
The graph of RAM usage by the AppHost processes and a total memory space in bytesWykres zużycia pamięci RAM przez procesy AppHost i całkowity rozmiar pamięci w bajtach:Code Block sum by (groupname) (namedprocess_namegroup_memory_bytes{memtype="resident"})
The percentage of RAM usageProcent zużycia pamięci RAM:
Code Block 100 - node_memory_MemAvailable_bytes * 100 / node_memory_MemTotal_bytes
The graph of the CPU load by the AppHost processes as a percentageWykres obciążenia CPU przez procesy AppHost jako procent:
Code Block sum by (groupname) (rate(namedprocess_namegroup_cpu_seconds_total[1m])) * 100
The graph of the CPU load as a percentageWykres obciążenia CPU jako procent:
Code Block 100 * avg without (cpu) (1 - rate(node_cpu_seconds_total{mode="idle"}[1m]))
Click the Naciśnij przycisk Execute button (2).
The Console tab will display all possible values of all elements at the time the query is completed.When you set a date and time in your calendar, the data will be updated.
Karta Console wyświetla wszystkie możliwe wartości wszystkich elementów w czasie, gdy zapytanie jest kończone.
Jeśli zmienisz datę oraz czas w kalendarzu, zostaną one zaktualizowane.
Aby wyznaczyć nowy wykres, przejdź do zakładki Graph.
W polu 1 wybierz zakres czasu, z którego będą pochodzić dane na wykresie. W polu 2 wyznacz punkt końcowy zakresu. W polu 3 określ odstęp czasowy między kolejnymi punktami danych na wykresie. Aby wypełnić wykres, wybierz pole wyboru stacked (4)To build a graph, go to the Graph tab.
In the field 1, set the time interval of the graph. In the field 2, set its end point. In the filed 3, set the interval between the data points. To fill the chart, set the stacked (4) checkbox.