

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 파이프라인 지표 예제
<a name="monitor-response"></a>

Personalize 검색 순위 플러그인을 OpenSearch 쿼리에 적용할 때 검색 파이프라인에 대한 지표를 가져와서 플러그인을 모니터링할 수 있습니다. 파이프라인 지표에는 `personalized_search_ranking`응답 프로세서에 대한 실패한 요청 수와 같은 통계가 포함됩니다.

 다음 코드는 OpenSearch에서 반환되는 파이프라인 지표를 발췌한 것입니다. 여기에는 서로 다른 두 파이프라인에 대한 통계가 포함된 `pipelines`객체만 표시됩니다. `personalized_search_ranking` 응답 프로세서 목록에서 각 파이프라인에 대해 Personalize 검색 순위 플러그인 지표를 찾아볼 수 있습니다. 모든 지표의 전체 예는 [검색 파이프라인 지표](https://opensearch.org/docs/latest/search-plugins/search-pipelines/search-pipeline-metrics/) 단원을 참조하세요.

```
{
....
....
  "pipelines": {
    "pipelineA": {
      "request": {
        "count": 0,
        "time_in_millis": 0,
        "current": 0,
        "failed": 0
      },
      "response": {
        "count": 6,
        "time_in_millis": 2246,
        "current": 0,
        "failed": 0
      },
      "request_processors": [],
      "response_processors": [
        {
          personalized_search_ranking": {
            "type": "personalized_search_ranking",
            "stats": {
              "count": <number of requests>,
              "time_in_millis": <time>,
              "current": 0,
              "failed": <number of failed requests>
            }
          }
        }
      ]
    },
    "pipelineB": {
      "request": {
        "count": 0,
        "time_in_millis": 0,
        "current": 0,
        "failed": 0
      },
      "response": {
        "count": 8,
        "time_in_millis": 2248,
        "current": 0,
        "failed": 0
      },
      "request_processors": [],
      "response_processors": [
        {
          "personalized_search_ranking": {
            "type": "personalized_search_ranking",
            "stats": {
              "count": <number of requests>,
              "time_in_millis": <time>,
              "current": 0,
              "failed": <number of failed requests>
            }
          }
        }
      ]
    }
  }
....
....
}
```