Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 자가 진단 서비스의 웹 인터페이스로 이동합니다: http://127.0.0.1:20040/
  2. 목록 (1)에서 필요한 메트릭을 선택하거나 표현식 필드에 쿼리를 입력합니다.

    Expand
    title Description of useful metrics


    메트릭

    설명

    ALERTS_FOR_STATE

    자가진단 서비스를 통해 문제를 해결해보세요.

    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_exporter",ngp_alert="true"}

    Alertname 매개변수의 가능한 값(General information about the self-diagnostics service 자가진단 서비스에 대한 일반정보 참고):

    • low_os_memory RAM이 부족합니다.
    • ipint_is_not_activated 카메라가 연결되었지만 데이터를 보내지 않습니다.
    • no_samples_in_detector 검 도구의 이벤트가 없습니다.
    • restart_services_when_archive_source_not_activated — 아카이브가 작동하지 않습니다.
    • restart_services_when_no_samples_in_archive 0 FPS로 아카이브에 녹화합니다.
    • restart_services_when_no_ping_from_detector_to_archive 검 도구 트리거 시 아카이브에 기록되지 않습니다.
    • logs_disk_space_is_low/db_disk_space_is_low 시스템 디스크 공간이 부족합니다.

    ngp_archive_channel_fps

    보관할 모든 비디오 카메라 녹화의 프레임 속도입니다.

    ngp_cpu_total_usage

    서버의 CPU 로드 비율입니다.

    ngp_fps

    모든 서버 비디오 카메라, 모든 검출 도구 및 해당 디코더의 프레임 속도입니다.


    요청은 다음을 허용합니다.

    1. 여러 메트릭 사용

    2. 식을 사용하여 문제를 찾습니다.  예를 들어, ngp_fps <17 과 같은 쿼리는 fps가 17보다 작은 모든 메트릭을 반환합니다. 논리 및 산술 연산자의 전체 목록은 the official Prometheus documentation에 나열되어 있습니다. 

    3. 매개변수로 필터링합니다. 예를 들어, 다음 같은 쿼리는

      Code Block
      ngp_fps{ep_name=~"hosts/TEST/DeviceIpint.2/SourceEndpoint.video:0:0"}

      지정된 소스에 대해서만 FPS 값을 반환합니다.
      Examples of useful queries for Windows:
      The CPU loading graph similar to the Windows System monitor
      Windows에 대한 유용한 쿼리의 예:
      Windows 시스템 모니터와 유사한 CPU 로딩 그래프:

      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

      The graph of RAM usage by the AppHost processes and a total memory spaceAppHost 프로세스의 RAM 사용량 및 총 메모리 공간 그래프:

      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

      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:
      The graph of RAM usage by the AppHost processes and a total memory space in bytesLinux에 대한 유용한 쿼리의 예:
      AppHost 프로세스의 RAM 사용량 그래프와 총 메모리 공간(바이트):

      Code Block
      sum by (groupname) (namedprocess_namegroup_memory_bytes{memtype="resident"})

      The percentage of RAM usage사용률:

      Code Block
      100 - node_memory_MemAvailable_bytes * 100 / node_memory_MemTotal_bytes

      The graph of the CPU load by the AppHost processes as a percentage:AppHost 프로세스의 CPU 로드 그래프를 백분율로 나타낸 것입니다.

      Code Block
      sum by (object_id) (rate(namedprocess_namegroup_cpu_seconds_total{groupname="AppHost"}[1m])) * 100

      The graph of the CPU load as a percentageCPU 부하 그래프(%):

      Code Block
      100 * avg without (cpu) (1 - rate(node_cpu_seconds_total{mode="idle"}[1m]))


  3. 실행 버튼(2)을 클릭합니다.
    콘솔 탭은 요청이 완료될 때, 모든 항목의 가능한 모든 값을 발행합니다.

  4. 캘린더에서 날짜와 시간을 설정하면 데이터가 업데이트됩니다.

  5. 그래프를 작성하려면 그래프 탭으로 이동하십시오.

    필드 1에서 그래프의 시간 슬롯을 설정하고 필드 2에서 끝점을 설정하고 필드 3에서 데이터 포인트 사이의 간격을 설정합니다. 차트를 채우려면 누적 (4) 체크박스를 선택합니다.