본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

NFS 메트릭 시맨틱 컨벤션 (Semantic conventions for NFS metrics)

원문 보기 위키 갱신

NFS와 NFSD 메트릭을 위한 계측기(instrument)와 속성(attribute)을 소개해요.

출처: 문서

본문

이 문서는 NFS와 NFSD 메트릭을 위한 계측기와 속성을 설명해요.

  • NFS 메트릭

  • 메트릭: nfs.client.net.count

  • 메트릭: nfs.client.net.tcp.connection.accepted

  • 메트릭: nfs.client.rpc.count

  • 메트릭: nfs.client.rpc.retransmit.count

  • 메트릭: nfs.client.rpc.authrefresh.count

  • 메트릭: nfs.client.operation.count

  • 메트릭: nfs.client.procedure.count

  • NFSD 메트릭

  • 메트릭: nfs.server.repcache.requests

  • 메트릭: nfs.server.fh.stale.count

  • 메트릭: nfs.server.io

  • 메트릭: nfs.server.thread.count

  • 메트릭: nfs.server.net.count

  • 메트릭: nfs.server.net.tcp.connection.accepted

  • 메트릭: nfs.server.rpc.count

  • 메트릭: nfs.server.operation.count

  • 메트릭: nfs.server.procedure.count

NFS 메트릭

메트릭: nfs.client.net.count

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.client.net.count Counter {record} Reports the count of kernel NFS client TCP segments and UDP datagrams handled. [1] host

[1]: Linux: 이 메트릭은 Linux 커널의 svc_stat.netudpcnt와 svc_stat.nettcpcnt에서 가져와요.

속성 (Attributes):

Key Stability Requirement Level Value Type Description Example Values
network.transport Recommended string OSI transport layer or inter-process communication method. [1] tcp; udp

[1] network.transport: 값은 소문자로 정규화해야 해요(SHOULD).

포트 번호를 설정할 때는 항상 전송(transport)도 함께 설정하는 것을 고려하세요. 포트 번호는 전송을 알지 못하면 모호하기 때문이에요. 예를 들어 TCP 포트 12345와 UDP 포트 12345에 서로 다른 프로세스가 리슨하고 있을 수 있어요.

network.transport에는 다음과 같은 잘 알려진 값 목록이 있어요. 그중 하나에 해당한다면 반드시 해당 값을 사용해야 하고(MUST), 그렇지 않으면 사용자 정의 값을 사용할 수 있어요(MAY).

Value Description Stability
pipe Named or anonymous pipe.
quic QUIC
tcp TCP
udp UDP
unix UNIX domain socket

메트릭: nfs.client.net.tcp.connection.accepted

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.client.net.tcp.connection.accepted Counter {connection} Reports the count of kernel NFS client TCP connections accepted. [1] host

[1]: Linux: 이 메트릭은 Linux 커널의 svc_stat.nettcpconn에서 가져와요.

메트릭: nfs.client.rpc.count

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.client.rpc.count Counter {request} Reports the count of kernel NFS client RPCs sent, regardless of whether they’re accepted/rejected by the server. [1] host

[1]: Linux: 이 메트릭은 Linux 커널의 svc_stat.rpccnt에서 가져와요.

메트릭: nfs.client.rpc.retransmit.count

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.client.rpc.retransmit.count Counter {retransmit} Reports the count of kernel NFS client RPC retransmits. [1] host

[1]: Linux: 이 메트릭은 Linux 커널의 svc_stat.rpcretrans에서 가져와요.

메트릭: nfs.client.rpc.authrefresh.count

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.client.rpc.authrefresh.count Counter {authrefresh} Reports the count of kernel NFS client RPC authentication refreshes. [1] host

[1]: Linux: 이 메트릭은 Linux 커널의 svc_stat.rpcauthrefresh에서 가져와요.

메트릭: nfs.client.operation.count

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.client.operation.count Counter {operation} Reports the count of kernel NFSv4+ client operations. host

속성 (Attributes):

Key Stability Requirement Level Value Type Description Example Values
nfs.operation.name Recommended string NFSv4+ operation name. OPEN; READ; GETATTR
onc_rpc.version Recommended int ONC/Sun RPC program version.

메트릭: nfs.client.procedure.count

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.client.procedure.count Counter {procedure} Reports the count of kernel NFS client procedures. host

속성 (Attributes):

Key Stability Requirement Level Value Type Description Example Values
onc_rpc.procedure.name Recommended string ONC/Sun RPC procedure name. OPEN; READ; GETATTR
onc_rpc.version Recommended int ONC/Sun RPC program version.

NFSD 메트릭

메트릭: nfs.server.repcache.requests

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.server.repcache.requests Counter {request} Reports the kernel NFS server reply cache request count by cache hit status. host

속성 (Attributes):

Key Stability Requirement Level Value Type Description Example Values
nfs.server.repcache.status Recommended string Linux: one of “hit” (NFSD_STATS_RC_HITS), “miss” (NFSD_STATS_RC_MISSES), or “nocache” (NFSD_STATS_RC_NOCACHE – uncacheable) hit

메트릭: nfs.server.fh.stale.count

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.server.fh.stale.count Counter {fh} Reports the count of kernel NFS server stale file handles. [1] host

[1]: Linux: 이 메트릭은 nfsd_net 구조체의 Linux 커널 NFSD_STATS_FH_STALE 카운터에서 가져와요.

메트릭: nfs.server.io

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.server.io Counter By Reports the count of kernel NFS server bytes returned to receive and transmit (read and write) requests. [1] host

[1]: Linux: 이 메트릭은 nfsd_net 구조체의 Linux 커널 NFSD_STATS_IO_READ와 NFSD_STATS_IO_WRITE 카운터에서 가져와요.

속성 (Attributes):

Key Stability Requirement Level Value Type Description Example Values
network.io.direction Recommended string The direction of traffic from the perspective of the observing host’s physical or virtual network interface. It should not be used to represent the logical direction of a stateful connection or network flow. transmit

network.io.direction에는 다음과 같은 잘 알려진 값 목록이 있어요. 그중 하나에 해당한다면 반드시 해당 값을 사용해야 하고(MUST), 그렇지 않으면 사용자 정의 값을 사용할 수 있어요(MAY).

Value Description Stability
receive receive
transmit transmit

메트릭: nfs.server.thread.count

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.server.thread.count UpDownCounter {thread} Reports the count of kernel NFS server available threads. [1] host

[1]: Linux: 이 메트릭은 Linux 커널의 nfsd_th_cnt 변수에서 가져와요.

메트릭: nfs.server.net.count

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.server.net.count Counter {record} Reports the count of kernel NFS server TCP segments and UDP datagrams handled. [1] host

[1]: Linux: 이 메트릭은 Linux 커널의 svc_stat.nettcpcnt와 svc_stat.netudpcnt에서 가져와요.

속성 (Attributes):

Key Stability Requirement Level Value Type Description Example Values
network.transport Recommended string OSI transport layer or inter-process communication method. [1] tcp; udp

[1] network.transport: 값은 소문자로 정규화해야 해요(SHOULD).

포트 번호를 설정할 때는 항상 전송도 함께 설정하는 것을 고려하세요. 포트 번호는 전송을 알지 못하면 모호하기 때문이에요. 예를 들어 TCP 포트 12345와 UDP 포트 12345에 서로 다른 프로세스가 리슨하고 있을 수 있어요.

network.transport에는 다음과 같은 잘 알려진 값 목록이 있어요. 그중 하나에 해당한다면 반드시 해당 값을 사용해야 하고(MUST), 그렇지 않으면 사용자 정의 값을 사용할 수 있어요(MAY).

Value Description Stability
pipe Named or anonymous pipe.
quic QUIC
tcp TCP
udp UDP
unix UNIX domain socket

메트릭: nfs.server.net.tcp.connection.accepted

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.server.net.tcp.connection.accepted Counter {connection} Reports the count of kernel NFS server TCP connections accepted. [1] host

[1]: Linux: 이 메트릭은 Linux 커널의 svc_stat.nettcpconn에서 가져와요.

메트릭: nfs.server.rpc.count

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.server.rpc.count Counter {request} Reports the count of kernel NFS server RPCs handled. [1] host

[1]: Linux: 이 메트릭은 Linux 커널의 svc_stat.rpccnt, 즉 좋은(good) RPC 수에서 가져와요. 이 메트릭은 svc_stat.badfmt, svc_stat.badauth, svc_stat.badclnt에 대해 각각 "format", "auth", "client"의 error.type을 가질 수 있어요.

속성 (Attributes):

Key Stability Requirement Level Value Type Description Example Values
error.type Recommended string Describes a class of error the operation ended with. [1] timeout; java.net.UnknownHostException; server_certificate_invalid; 500

[1] error.type: error.type은 예측 가능해야 하고(SHOULD), 낮은 카디널리티를 가져야 해요(SHOULD).

error.type이 타입(예: 예외 타입)으로 설정되면, 아티팩트 내에서 그 타입을 식별하는 표준 클래스 이름(canonical class name)을 사용해야 해요(SHOULD).

기록된 오류 타입이 실패 분류에 의미가 없는 래퍼라면, 계측은 내부 오류의 타입을 대신 사용할 수 있어요(MAY). 예를 들어 Go에서 fmt.Errorf와 %w로 생성된 오류는 래퍼 타입이 실패 분류에 도움이 되지 않을 때 언랩할 수 있어요(MAY).

계측은 보고하는 오류 목록을 문서화해야 해요(SHOULD).

하나의 계측 라이브러리 내에서 error.type의 카디널리티는 낮아야 해요(SHOULD). 여러 계측 라이브러리와 애플리케이션에서 데이터를 집계하는 텔레메트리 소비자는 추가 필터가 적용되지 않으면 쿼리 시점에 error.type이 높은 카디널리티를 가질 수 있다는 점을 준비해야 해요.

작업이 성공적으로 완료되었다면 계측은 error.type을 설정하지 않아야 해요(SHOULD NOT).

특정 도메인이 자체 오류 식별자 집합(HTTP나 RPC 상태 코드 같은)을 정의한다면, 다음과 같이 하는 것이 권장돼요(RECOMMENDED):

  • 도메인 특정 속성을 사용하기
  • 도메인 특정 집합에 정의되어 있는지와 상관없이 모든 오류를 캡처하도록 error.type 설정하기

error.type에는 다음과 같은 잘 알려진 값 목록이 있어요. 그중 하나에 해당한다면 반드시 해당 값을 사용해야 하고(MUST), 그렇지 않으면 사용자 정의 값을 사용할 수 있어요(MAY).

Value Description Stability
_OTHER A fallback error value to be used when the instrumentation doesn’t define a custom value.

메트릭: nfs.server.operation.count

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.server.operation.count Counter {operation} Reports the count of kernel NFSv4+ server operations. host

속성 (Attributes):

Key Stability Requirement Level Value Type Description Example Values
nfs.operation.name Recommended string NFSv4+ operation name. OPEN; READ; GETATTR
onc_rpc.version Recommended int ONC/Sun RPC program version.

메트릭: nfs.server.procedure.count

이 메트릭은 권장돼요(recommended).

Name Instrument Type Unit (UCUM) Description Stability Entity Associations
nfs.server.procedure.count Counter {procedure} Reports the count of kernel NFS server procedures. host

속성 (Attributes):

Key Stability Requirement Level Value Type Description Example Values
onc_rpc.procedure.name Recommended string ONC/Sun RPC procedure name. OPEN; READ; GETATTR
onc_rpc.version Recommended int ONC/Sun RPC program version.

더 알아보기 (Learn more)