For the complete documentation index, see llms.txt. This page is also available as Markdown.

메트릭

수집 및 알러트 메트릭 측정을 위한 Panther API 사용자 데이터

개요

Panther API에서는 다음과 같은 사용자 메트릭 작업을 제공합니다:

  • Panther가 특정 기간 동안 수집 및/또는 처리한 바이트와 이벤트의 총 수

  • 특정 기간 동안 각 Severity 유형별로 생성된 경고 내역\

Console의 API Playground 또는 GraphQL-over-HTTP API를 사용하여 Panther의 API를 호출할 수 있습니다. 이러한 방법에 대해 자세히 알아보려면 Panther API.

핵심 메트릭 작업에 대한 GraphQL 쿼리, 뮤테이션 및 end-to-end 워크플로 예시를 아래 섹션에서 확인하세요.

totalBytesIngestedtotalBytesProcessed

다음 totalBytesIngestedtotalBytesProcessed 메트릭은 비슷해 보이지만, 다음과 같은 차이가 있습니다:

  • totalBytesIngested: Panther가 지난 1년(현재 날짜 기준 최근 365일) 동안 수집한 바이트의 총 수입니다.

  • totalBytesProcessed: Panther가 쿼리에서 정의한 특정 기간 동안 수집한 바이트의 총 수입니다.

일반적인 메트릭 작업

아래는 Panther에서 가장 일반적인 GraphQL 메트릭 작업 몇 가지입니다. 이 예시는 GraphQL 클라이언트(또는 curl)을 사용해 Panther의 GraphQL API를 호출할 때 전송해야 하는 문서를 보여줍니다.

메트릭 쿼리

# `GetMetrics`는 작업의 별칭입니다. 필요한 
# 필드/정보만 조회하고 관심 없는 항목은 생략할 수 있습니다.
query GetMetrics {
  metrics(input: { 
    fromDate: "2021-01-01T00:00:00Z"
    toDate: "2021-12-31T23:59:59Z"
  }) {
    alertsPerSeverity {
      label

      breakdown
    }
    alertsPerRule {
      label

      entityId
    }
    eventsProcessedPerLogType {
      label

      breakdown
    }
    bytesProcessedPerSource {
      label

      breakdown
    }
    latencyPerLogType {
      label

    }
    bytesIngestedPerSource {
      label

    }
    bytesQueriedPerSource {
      label

      breakdown
    }
    totalAlerts
    totalBytesIngested
    totalBytesProcessed
    totalBytesQueried
    totalEventsProcessed
  }
}

다음 breakdown field는 시간축을 X축으로 사용하는 차트에만 유용합니다. 이 필드는 타임스탬프 -> 값의 맵을 해당 field의 구성 요소로 나눈 "breakdown" 형태로 생성합니다.

end-to-end 예시

아래에서는 일반적인 작업 예시를 바탕으로 end-to-end 사용 사례 흐름을 보여드립니다.

Panther의 로그 메트릭 가져오기

마지막 업데이트

도움이 되었나요?