Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
width50%
Panel
borderColor#CCCCCC
bgColor#FFFFFF
titleBGColor#F0F0F0
borderStylesolid
titleOn the page:

Table of Contents

 

Column

 

Viewing metrics

To view the system status data, you need todo the following:

  1. Go to the web interface of the self-diagnostics service: http://127.0.0.1:20040/.
    Image Modified
  2. Select the required metric in the list (1) or enter the query in the Expression field.

  3. Expandtitle Description of useful metrics

  4. Metric

    Description

    ALERTS_FOR_STATE

    Troubleshooting by the self-diagnostics service.

    Code Block
    titleExample
    ALERTS_FOR_STATE{alertname="ipint_is_not_activated",ep_name="hosts/Server1/DeviceIpint.99",instance="127.0.0.1:20108",job="ngp_
  5. export
  6. exporter",ngp_alert="true"}

    Possible values of the

  7. alert name parameter
  8. alertname parameter (see General information about the self-diagnostics service):

    • low_os_memory
  9. − out
    • —out of RAM;
    • ipint_is_not_activated
  10. − camera
    • —camera is connected, but does not send data;
    • no_samples_in_detector
  11. − no
    • —no events from a detection tool;
    • restart_services_when_archive_source_not_activated
  12. − the
    • —the archive is not working;
    • restart_services_when_no_samples_in_archive
  13. − recording
    • —recording to archive with 0 FPS;
    • restart_services_when_no_ping_from_detector_to_archive
  14. − no footage is recorded on detection
    • —no recording to the archive of an event from a detection tool;
    • logs_disk_space_is_low/db_disk_space_is_low
  15. − out
    • —out of system disk space.

    ngp_archive_channel_fps

    The frame rate of all video cameras recording to

  16. archive.
  17. archive

    ngp_archive_volume_size

    The current size of the archive in bytes

    ngp_cpu_total_usage

    The percentage of CPU load on a Server

  18. .
  19. ngp_fps

    The frame rate of all Server

  20. video
  21. cameras, all detection tools and their decoders

  22. .
  23. The request allows for:

    1. Using multiple metrics.

    2. Using expressions to find

  24. issues
    1. problems. For example, a query like ngp_fps <17 will return all metrics, where

  25. fps was
    1. FPS is less than 17.

  26. The full
    1. For a complete list of logical and arithmetic operators

  27. is listed in
    1. , see the official Prometheus documentation.  

    2. Filtering by any of the parameters. For example,

  28. a query like
    1. this query will return FPS values only for the specified source:

      Code Block
      ngp_fps{ep_name=~"hosts/
  29. V-BELYAKOV
    1. TEST/DeviceIpint.2/SourceEndpoint.video:0:0"}
  30. will return fps values only for the specified source.
  31. Click on the Execute

  32.  
  33. button (2).

  34. The

The Console tab

...

displays all possible values of all

...

elements at the time the

...

query is completed.
Image Modified

When you set a date and time in your calendar, the data

...

is updated.
Image Modified

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.
Image Added

Examples of useful queries for Windows OS

  1. The CPU loading graph similar to the Windows System monitor:
    Code Block
    sum by (process_id) (100 / scalar(wmi_cs_logical_processors) * (irate(wmi_process_cpu_time_total{process="AppHost"}[10m]))) or ngp_cpu_total_usage
  2. The graph of RAM usage by the AppHost processes and a total memory space:
    Code Block
    sum by (process_id) (avg_over_time(wmi_process_working_set{process="AppHost"}[5m])) / 1024 or avg_over_time(wmi_os_virtual_memory_bytes[5m]) / 1024
  3. The percentage of RAM usage:
    Code Block
    100.0 - 100 * avg_over_time(wmi_os_virtual_memory_free_bytes[5m]) / avg_over_time(wmi_os_virtual_memory_bytes[5m])

Examples of useful queries for Linux OS

  1. The graph of total RAM usage by the AppHost processes:
    Code Block
    sum by (groupname) (namedprocess_namegroup_memory_bytes{memtype="resident"})
  2. The percentage of RAM usage:
    Code Block
    100 - node_memory_MemAvailable_bytes * 100 / node_memory_MemTotal_bytes
  3. The graph of the CPU load by the AppHost processes as a percentage:
    Code Block
    sum by (object_id) (rate(namedprocess_namegroup_cpu_seconds_total{groupname="AppHost"}[1m])) * 100
  4. The graph of the CPU load as a percentage:
    Code Block
    100 * avg without (cpu) (1 - rate(node_cpu_seconds_total{mode="idle"}[1m]))
  5. The graph of RAM usage by the AppHost processes to determine the memory leak:
    Code Block
    namedprocess_namegroup_memory_bytes{object_id=~"APP_HOST.*",memtype="proportionalResident"}