OpenTelemetry 플러그인으로 메트릭, 로그, 트레이스 수집하기
OpenTelemetry 플러그인으로 메트릭, 로그, 트레이스 수집하기 (OpenTelemetry plugin)
이 튜토리얼에서는 OpenTelemetry 플러그인을 사용해 Kong Gateway의 메트릭, 로그, 트레이스를 OpenTelemetry Collector로 보내는 방법을 알아봐요. 트레이싱 활성화를 위한 환경 변수 설정부터 decK로 OTEL 플러그인을 활성화하고 수집된 데이터를 검증하는 과정까지 차근차근 따라가 봐요. Konnect 환경과 온프레미스 Kong Gateway 두 가지 배포 방식에 맞춰 진행하는 방법을 모두 다뤄요
출처: 문서
본문
TL;DR
Kong Gateway 데이터를 OpenTelemetry Collector로 어떻게 보내나요?
로컬에서 실행 중인 OpenTelemetry Collector로 트레이스, 메트릭, 로그를 보내는 기본 구성의 경우,
먼저 Kong Gateway를 배포할 때 KONG_TRACING_INSTRUMENTATIONS=all과 KONG_TRACING_SAMPLING_RATE=1.0을 설정해서
트레이싱을 활성화하세요. 그다음 기본 구성으로 OpenTelemetry Collector를 배포하고, OpenTelemetry Collector의 기본 OTLP 엔드포인트를 사용해 OTEL 플러그인을 활성화하세요.
사전 준비
Konnect 배포: Kong Konnect
이 튜토리얼은 Konnect용 튜토리얼이며 Konnect 개인 액세스 토큰이 필요해요.
-
Konnect PAT 페이지를 열고 Generate Token을 선택해서 새 개인 액세스 토큰을 만드세요.
-
토큰을 환경 변수로 내보내세요:
export KONNECT_TOKEN='YOUR_KONNECT_PAT' -
퀵스타트 스크립트를 실행해서 Control Plane과 Data Plane을 자동으로 프로비저닝하고 환경을 구성하세요:
curl -Ls https://get.konghq.com/quickstart | bash -s -- -k $KONNECT_TOKEN \ -e KONG_TRACING_INSTRUMENTATIONS=all -e KONG_TRACING_SAMPLING_RATE=1.0 --deck-output이 명령은
quickstart라는 이름의 Konnect Control Plane을 설정하고, 로컬 Data Plane을 프로비저닝하며, 다음 환경 변수 export를 출력해요:export DECK_KONNECT_TOKEN=$KONNECT_TOKEN export DECK_KONNECT_CONTROL_PLANE_NAME=quickstart export DECK_KONNECT_ADDR=https://us.api.konghq.com export KONNECT_CONTROL_PLANE_URL=https://us.api.konghq.com export KONNECT_PROXY_URL='http://localhost:8000'세션을 구성하려면 이 내용을 복사해서 터미널에 붙여넣으세요.
온프레미스 배포: 실행 중인 Kong Gateway
이 튜토리얼에는 Kong Gateway Enterprise가 필요해요. 아직 Kong Gateway를 설정하지 않았다면, 엔터프라이즈 라이선스와 함께 퀵스타트 스크립트를 사용해서 거의 즉시 Kong Gateway 인스턴스를 실행할 수 있어요.
-
라이선스를 환경 변수로 내보내세요:
export KONG_LICENSE_DATA='LICENSE-CONTENTS-GO-HERE' -
퀵스타트 스크립트를 실행하세요:
curl -Ls https://get.konghq.com/quickstart | bash -s -- -e KONG_LICENSE_DATA \ -e KONG_TRACING_INSTRUMENTATIONS=all \ -e KONG_TRACING_SAMPLING_RATE=1.0Kong Gateway가 준비되면 다음 메시지가 표시돼요:
Kong Gateway Ready{:.no-copy-code}
decK v1.68.0+
이 튜토리얼을 완료하려면 decK를 설치하세요. 최신 버전(1.68.0)으로 decK를 최신 상태로 유지하는 것을 추천해요.
decK는 상태 파일을 사용해 Kong Gateway를 선언적으로 관리하는 CLI 도구예요.
이 가이드는 deck gateway apply를 사용하는데, 이 명령은 엔티티 구성을 Gateway 인스턴스에 직접 적용해요.
deck version으로 현재 decK 버전을 확인할 수 있어요.
필요한 엔티티
이 튜토리얼에서는 Gateway Services, Routes 같은 Kong Gateway 엔티티가 미리 구성되어 있어야 해요. 이 엔티티들은 Kong Gateway가 동작하는 데 필수적이지만, 이를 설치하는 것이 이 가이드의 초점은 아니에요. 다음 단계에 따라 미리 구성하세요:
-
다음 명령을 실행하세요:
echo ' _format_version: "3.0" services: - name: example-service url: http://httpbin.konghq.com/anything routes: - name: example-route paths: - "/anything" service: name: example-service protocols: - http - https ' | deck gateway apply -{: data-test-prereq="block" }
엔티티에 대해 더 알아보려면 엔티티 문서를 읽어보세요.
OpenTelemetry Collector
이 튜토리얼에서는 OpenTelemetry Collector에서 데이터를 수집해요. 다음 명령을 사용하면 포트 4318에서 수신하고 출력을 텍스트 파일에 기록하는, 기본 구성의 Collector 인스턴스를 실행할 수 있어요:
docker run \
-p 127.0.0.1:4318:4318 \
otel/opentelemetry-collector:0.141.0 \
2>&1 | tee collector-output.txt
새 터미널에서 OTEL Collector 호스트를 내보내세요. 이 예제에서는 다음 호스트를 사용하세요:
export DECK_OTEL_HOST=host.docker.internal
OTEL 플러그인 활성화
이 튜토리얼에서는 OpenTelemetry 플러그인을 구성해서 Kong Gateway의 메트릭, 트레이스, 로그를 OpenTelemetry Collector로 보내 볼 거예요.
OTEL Collector 엔드포인트 설정을 구성한 상태로 OTEL 플러그인을 활성화하세요:
echo '
_format_version: "3.0"
plugins:
- name: opentelemetry
config:
traces_endpoint: http://${{ env "DECK_OTEL_HOST" }}:4318/v1/traces
access_logs_endpoint: http://${{ env "DECK_OTEL_HOST" }}:4318/v1/logs
logs_endpoint: http://${{ env "DECK_OTEL_HOST" }}:4318/v1/logs
metrics:
endpoint: http://${{ env "DECK_OTEL_HOST" }}:4318/v1/metrics
resource_attributes:
service.name: kong-dev
' | deck gateway apply -
{: data-test-step="block" }
검증
OpenTelemetry Collector가 텔레메트리 데이터를 수신하고 있는지 검증하는 데 사용할 수 있는 트래픽을 생성하려면 POST 요청을 보내세요:
Konnect 배포
curl -X POST "$KONNECT_PROXY_URL/anything" \
--no-progress-meter --fail-with-body \
-H "Accept: application/json"\
-H "Content-Type: application/json"
온프레미스 배포
curl -X POST "http://localhost:8000/anything" \
--no-progress-meter --fail-with-body \
-H "Accept: application/json"\
-H "Content-Type: application/json"
OpenTelemetry Collector 터미널에서 데이터를 확인할 수 있어요. collector-output.txt 출력 파일에서 kong-dev를 검색해 볼 수도 있어요. 다음 데이터가 표시될 거예요:
Resource attributes:
-> service.name: Str(kong-dev)
-> service.instance.id: Str(9343ac04-81d6-4ac8-bb5a-c7322c823368)
-> service.version: Str(3.14.0.0)
ScopeSpans #0
ScopeSpans SchemaURL:
InstrumentationScope kong-internal 0.1.0
Span #0
Trace ID : 111216d769f06a7486de78aaf6bb3056
Parent ID :
ID : 7ddb4028163987aa
Name : kong
Kind : Server
Start time : 2025-12-12 10:47:13.299000064 +0000 UTC
End time : 2025-12-12 10:47:13.417065216 +0000 UTC
Status code : Unset
Status message :
Attributes:
-> http.route: Str(/anything)
-> http.host: Str(localhost)
-> http.scheme: Str(http)
-> http.client_ip: Str(192.168.107.1)
-> kong.request.id: Str(319d1e4e7862095f704a7d6c60e63260)
-> net.peer.ip: Str(192.168.107.1)
-> http.status_code: Int(200)
-> http.method: Str(POST)
-> http.url: Str(http://localhost/anything)
-> http.flavor: Str(1.1)
Span #1
Trace ID : 111216d769f06a7486de78aaf6bb3056
Parent ID : 7ddb4028163987aa
ID : 0534077d2df6b03d
Name : kong.router
Kind : Internal
Start time : 2025-12-12 10:47:13.300975616 +0000 UTC
End time : 2025-12-12 10:47:13.303639808 +0000 UTC
Status code : Unset
Status message :
Span #2
Trace ID : 111216d769f06a7486de78aaf6bb3056
Parent ID : 7ddb4028163987aa
ID : 6032aadc108feff0
Name : kong.access.plugin.opentelemetry
Kind : Internal
Start time : 2025-12-12 10:47:13.304194816 +0000 UTC
End time : 2025-12-12 10:47:13.30826752 +0000 UTC
Status code : Unset
Status message :
Span #3
Trace ID : 111216d769f06a7486de78aaf6bb3056
Parent ID : 7ddb4028163987aa
ID : b944a061d680c460
Name : kong.dns
Kind : Client
Start time : 2025-12-12 10:47:13.308358656 +0000 UTC
End time : 2025-12-12 10:47:13.34368896 +0000 UTC
Status code : Unset
Status message :
Attributes:
-> dns.record.domain: Str(httpbin.konghq.com)
-> dns.record.port: Double(80)
-> dns.record.ip: Str(37.16.15.184)
Span #4
Trace ID : 111216d769f06a7486de78aaf6bb3056
Parent ID : 7ddb4028163987aa
ID : 70a90cfe6d86a90d
Name : kong.header_filter.plugin.opentelemetry
Kind : Internal
Start time : 2025-12-12 10:47:13.416722176 +0000 UTC
End time : 2025-12-12 10:47:13.416754944 +0000 UTC
Status code : Unset
Status message :
Span #5
Trace ID : 111216d769f06a7486de78aaf6bb3056
Parent ID : 7ddb4028163987aa
ID : a897ad034a5cd2ab
Name : kong.balancer
Kind : Client
Start time : 2025-12-12 10:47:13.344075008 +0000 UTC
End time : 2025-12-12 10:47:13.417065216 +0000 UTC
Status code : Unset
Status message :
Attributes:
-> net.peer.ip: Str(37.16.15.184)
-> net.peer.port: Double(80)
-> net.peer.name: Str(httpbin.konghq.com)
-> peer.service: Str(example-service)
-> try_count: Double(1)
{"resource": {"service.instance.id": "c8d7404a-6cca-4788-990f-b2cdf17cefc7", "service.name": "otelcol", "service.version": "0.141.0"}, "otelcol.component.id": "debug", "otelcol.component.kind": "exporter", "otelcol.signal": "traces"}
2025-12-12T10:47:14.496Z info ResourceLog #0
Resource SchemaURL:
Resource attributes:
-> service.name: Str(kong-dev)
-> service.instance.id: Str(9343ac04-81d6-4ac8-bb5a-c7322c823368)
-> service.version: Str(3.14.0.0)
ScopeLogs #0
ScopeLogs SchemaURL:
InstrumentationScope api-access 0.1.0
LogRecord #0
ObservedTimestamp: 2025-12-12 10:47:13.420526336 +0000 UTC
Timestamp: 2025-12-12 10:47:13.420526336 +0000 UTC
SeverityText:
SeverityNumber: Unspecified(0)
Body: Str(POST /anything 200 119ms)
Attributes:
-> url.path: Str(/anything)
-> http.response.status_code: Int(200)
-> url.query: Str()
-> url.full: Str(http://localhost:8000/anything)
-> http.request.header.host: Str(localhost:8000)
-> http.response.size: Int(1004)
-> http.request.size: Int(131)
-> http.request.method: Str(POST)
-> url.scheme: Str(http)
-> kong.upstream.try.1.balancer_latency: Double(1)
-> log.type: Str(access)
-> kong.upstream.status_code: Int(200)
-> kong.service.write_timeout: Int(60000)
-> kong.service.retries: Int(5)
-> client.address: Str(192.168.107.1)
-> kong.service.read_timeout: Int(60000)
-> kong.service.port: Int(80)
-> kong.service.connect_timeout: Int(60000)
-> kong.route.regex_priority: Int(0)
-> kong.response.source: Str(upstream)
-> kong.route.https_redirect_status_code: Int(426)
-> http.response.header.server: Str(gunicorn/19.9.0)
-> kong.upstream.uri: Str(/anything)
-> http.response.header.content-length: Int(623)
-> http.response.body.size: Int(623)
-> kong.upstream.try.1.ip: Str(37.16.15.184)
-> kong.upstream.try.1.balancer_latency_ns: Double(306688)
-> kong.upstream.try.1.port: Int(80)
-> kong.upstream.try.1.balancer_start: Double(1765536433343)
-> kong.upstream.try.1.balancer_start_ns: Double(1765536433344075000)
-> kong.upstream.try.1.target_id: Str(unknown)
-> kong.route.name: Str(example-route)
-> kong.upstream.try.1.keepalive: Bool(true)
-> url.port: Double(8000)
-> url.domain: Str(localhost)
-> kong.latency.receive: Double(1)
-> http.response.header.connection: Str(close)
-> http.response.header.content-type: Str(application/json)
-> http.response.header.x-kong-request-id: Str(319d1e4e7862095f704a7d6c60e63260)
-> http.response.header.via: Str(1.1 kong/3.14.0.0-enterprise-edition)
-> kong.latency.upstream: Double(72)
-> kong.subsystem: Str(http)
-> http.response.header.x-kong-proxy-latency: Double(45)
-> http.response.header.access-control-allow-origin: Str(*)
-> http.response.header.x-kong-upstream-latency: Double(72)
-> http.response.header.date: Str(Fri, 12 Dec 2025 10:47:13 GMT)
-> kong.service.ws_id: Str(5765984d-7e48-4a2d-a3ce-1357895f3a87)
-> kong.service.created_at: Int(1765535849)
-> kong.service.updated_at: Int(1765535849)
-> kong.service.host: Str(httpbin.konghq.com)
-> kong.service.protocol: Str(http)
-> kong.service.enabled: Bool(true)
-> kong.service.path: Str(/anything)
-> kong.service.id: Str(2c87bb4c-beed-4805-a3d2-e23ae2477bb2)
-> kong.latency.total: Double(119)
-> kong.workspace.name: Str(default)
-> kong.latency.client: Double(1.526784)
-> kong.latency.third_party.http_client: Double(0)
-> kong.latency.third_party.socket: Double(0)
-> kong.latency.third_party.redis: Double(0)
-> kong.latency.third_party.dns: Double(35.279616)
-> kong.latency.third_party.total: Double(35.279616)
-> kong.workspace.id: Str(5765984d-7e48-4a2d-a3ce-1357895f3a87)
-> kong.service.name: Str(example-service)
-> kong.route.request_buffering: Bool(true)
-> kong.route.response_buffering: Bool(true)
-> kong.route.strip_path: Bool(true)
-> kong.route.preserve_host: Bool(false)
-> kong.latency.internal: Double(45)
-> kong.route.created_at: Int(1765535849)
-> kong.route.updated_at: Int(1765535849)
-> http.response.header.access-control-allow-credentials: Str(true)
-> kong.route.ws_id: Str(5765984d-7e48-4a2d-a3ce-1357895f3a87)
-> kong.route.path_handling: Str(v0)
-> kong.route.id: Str(7e95f889-75ff-46ee-9ed1-64ba9a78af53)
-> kong.route.service.id: Str(2c87bb4c-beed-4805-a3d2-e23ae2477bb2)
-> kong.route.protocols.1: Str(http)
-> kong.route.protocols.2: Str(https)
-> kong.route.paths.1: Str(/anything)
-> kong.request.id: Str(319d1e4e7862095f704a7d6c60e63260)
-> http.request.header.accept: Str(application/json)
-> http.request.header.content-type: Str(application/json)
-> http.request.header.user-agent: Str(curl/8.7.1)
-> http.request.header.traceparent: Str(00-111216d769f06a7486de78aaf6bb3056-a897ad034a5cd2ab-01)
-> user_agent.original: Str(curl/8.7.1)
-> kong.request.started_at: Double(1765536433299)
...
Resource attributes:
-> service.name: Str(kong-dev)
-> service.instance.id: Str(9343ac04-81d6-4ac8-bb5a-c7322c823368)
-> service.version: Str(3.14.0.0)
ScopeMetrics #0
ScopeMetrics SchemaURL:
InstrumentationScope kong-internal 0.1.0
Metric #0
Descriptor:
-> Name: kong.db.entity.count
-> Description: Shows the number of entities stored in the Kong database.
-> Unit: {entity}
-> DataType: Gauge
NumberDataPoints #0
StartTimestamp: 2025-12-12 10:39:30.785713408 +0000 UTC
Timestamp: 2025-12-12 10:47:51.154927872 +0000 UTC
Value: 6
Metric #1
Descriptor:
-> Name: kong.nginx.connection.count
-> Description: Measures the number of client connections in Nginx.
-> Unit: {connection}
-> DataType: Gauge
NumberDataPoints #0
Data point attributes:
-> kong.connection.state: Str(accepted)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.776530176 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150012416 +0000 UTC
Value: 75
NumberDataPoints #1
Data point attributes:
-> kong.connection.state: Str(handled)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.776549632 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150177792 +0000 UTC
Value: 75
NumberDataPoints #2
Data point attributes:
-> kong.connection.state: Str(total)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.776566272 +0000 UTC
Timestamp: 2025-12-12 10:47:51.1501824 +0000 UTC
Value: 105
NumberDataPoints #3
Data point attributes:
-> kong.connection.state: Str(active)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.776581632 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150186752 +0000 UTC
Value: 12
NumberDataPoints #4
Data point attributes:
-> kong.connection.state: Str(reading)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.776597504 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150191872 +0000 UTC
Value: 0
NumberDataPoints #5
Data point attributes:
-> kong.connection.state: Str(writing)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.776627968 +0000 UTC
Timestamp: 2025-12-12 10:47:51.1501952 +0000 UTC
Value: 12
NumberDataPoints #6
Data point attributes:
-> kong.connection.state: Str(waiting)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.776761088 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150198784 +0000 UTC
Value: 0
Metric #2
Descriptor:
-> Name: kong.db.entity.error.count
-> Description: Shows the number of errors seen during database entity count collection.
-> Unit: {error}
-> DataType: Sum
-> IsMonotonic: true
-> AggregationTemporality: Cumulative
NumberDataPoints #0
StartTimestamp: 2025-12-12 10:37:15.770924032 +0000 UTC
Timestamp: 2025-12-12 10:37:15.782457344 +0000 UTC
Value: 0
Metric #3
Descriptor:
-> Name: kong.nginx.timer.count
-> Description: Measures the number of scheduled timers Nginx is running in the background.
-> Unit: {timer}
-> DataType: Gauge
NumberDataPoints #0
Data point attributes:
-> kong.timer.state: Str(pending)
StartTimestamp: 2025-12-12 10:39:30.776779008 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150206208 +0000 UTC
Value: 2
NumberDataPoints #1
Data point attributes:
-> kong.timer.state: Str(running)
StartTimestamp: 2025-12-12 10:39:30.776788992 +0000 UTC
Timestamp: 2025-12-12 10:47:51.15021312 +0000 UTC
Value: 257
Metric #4
Descriptor:
-> Name: kong.ee.license.expiration
-> Description: Shows the Unix epoch time in seconds when the license expires, subtracted by 24 hours to avoid timezone differences.
-> Unit: s
-> DataType: Gauge
NumberDataPoints #0
StartTimestamp: 2025-12-12 10:39:30.785829632 +0000 UTC
Timestamp: 2025-12-12 10:47:51.155048704 +0000 UTC
Value: 1766145600
Metric #5
Descriptor:
-> Name: kong.ee.license.features
-> Description: Indicates whether Kong can read or write entities in the database under the current license, where 1 means allowed and 0 means not allowed.
-> Unit: 1
-> DataType: Gauge
NumberDataPoints #0
Data point attributes:
-> kong.ee.license.feature: Str(ee_entity_write)
StartTimestamp: 2025-12-12 10:39:30.785869568 +0000 UTC
Timestamp: 2025-12-12 10:47:51.155072512 +0000 UTC
Value: 1
NumberDataPoints #1
Data point attributes:
-> kong.ee.license.feature: Str(ee_entity_read)
StartTimestamp: 2025-12-12 10:39:30.785861888 +0000 UTC
Timestamp: 2025-12-12 10:47:51.155066624 +0000 UTC
Value: 1
Metric #6
Descriptor:
-> Name: kong.shared_dict.usage
-> Description: Shows the current memory usage of a shared dict in bytes.
-> Unit: By
-> DataType: Gauge
NumberDataPoints #0
Data point attributes:
-> kong.shared_dict.name: Str(kong)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.777533184 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150955776 +0000 UTC
Value: 45056
NumberDataPoints #1
Data point attributes:
-> kong.shared_dict.name: Str(kong_locks)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.777545728 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150959616 +0000 UTC
Value: 61440
NumberDataPoints #2
Data point attributes:
-> kong.shared_dict.name: Str(kong_healthchecks)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.777558016 +0000 UTC
Timestamp: 2025-12-12 10:47:51.1509632 +0000 UTC
Value: 40960
NumberDataPoints #3
Data point attributes:
-> kong.shared_dict.name: Str(kong_cluster_events)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.777824 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150966016 +0000 UTC
Value: 40960
NumberDataPoints #4
Data point attributes:
-> kong.shared_dict.name: Str(kong_basic_auth_counters)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.77783808 +0000 UTC
Timestamp: 2025-12-12 10:47:51.1509696 +0000 UTC
Value: 86016
NumberDataPoints #5
Data point attributes:
-> kong.shared_dict.name: Str(kong_rate_limiting_counters)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.7778496 +0000 UTC
Timestamp: 2025-12-12 10:47:51.15097216 +0000 UTC
Value: 86016
NumberDataPoints #6
Data point attributes:
-> kong.shared_dict.name: Str(kong_ace_rate_limiting_counters)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.777860352 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150975232 +0000 UTC
Value: 86016
NumberDataPoints #7
Data point attributes:
-> kong.shared_dict.name: Str(kong_core_db_cache)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.777870336 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150978048 +0000 UTC
Value: 802816
NumberDataPoints #8
Data point attributes:
-> kong.shared_dict.name: Str(kong_core_db_cache_miss)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.777884672 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150981632 +0000 UTC
Value: 86016
NumberDataPoints #9
Data point attributes:
-> kong.shared_dict.name: Str(kong_db_cache)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.777955584 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150984704 +0000 UTC
Value: 815104
NumberDataPoints #10
Data point attributes:
-> kong.shared_dict.name: Str(kong_db_cache_miss)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.777966336 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150989568 +0000 UTC
Value: 86016
NumberDataPoints #11
Data point attributes:
-> kong.shared_dict.name: Str(kong_consumers_db_cache)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.77797504 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150992384 +0000 UTC
Value: 794624
NumberDataPoints #12
Data point attributes:
-> kong.shared_dict.name: Str(kong_consumers_db_cache_miss)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778080512 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150995456 +0000 UTC
Value: 86016
NumberDataPoints #13
Data point attributes:
-> kong.shared_dict.name: Str(kong_secrets)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778129408 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150998528 +0000 UTC
Value: 40960
NumberDataPoints #14
Data point attributes:
-> kong.shared_dict.name: Str(kong_vitals_counters)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778374656 +0000 UTC
Timestamp: 2025-12-12 10:47:51.1510016 +0000 UTC
Value: 315392
NumberDataPoints #15
Data point attributes:
-> kong.shared_dict.name: Str(kong_vitals_lists)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778383872 +0000 UTC
Timestamp: 2025-12-12 10:47:51.15100416 +0000 UTC
Value: 16384
NumberDataPoints #16
Data point attributes:
-> kong.shared_dict.name: Str(kong_vitals)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.7783936 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151007488 +0000 UTC
Value: 16384
NumberDataPoints #17
Data point attributes:
-> kong.shared_dict.name: Str(kong_counters)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778400512 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151010048 +0000 UTC
Value: 16384
NumberDataPoints #18
Data point attributes:
-> kong.shared_dict.name: Str(kong_reports_consumers)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778533632 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151012864 +0000 UTC
Value: 73728
NumberDataPoints #19
Data point attributes:
-> kong.shared_dict.name: Str(kong_reports_routes)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.77860096 +0000 UTC
Timestamp: 2025-12-12 10:47:51.15101568 +0000 UTC
Value: 16384
NumberDataPoints #20
Data point attributes:
-> kong.shared_dict.name: Str(kong_reports_services)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.77860864 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151019008 +0000 UTC
Value: 16384
NumberDataPoints #21
Data point attributes:
-> kong.shared_dict.name: Str(kong_reports_workspaces)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778614272 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151021824 +0000 UTC
Value: 16384
NumberDataPoints #22
Data point attributes:
-> kong.shared_dict.name: Str(kong_keyring)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778620416 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151024128 +0000 UTC
Value: 40960
NumberDataPoints #23
Data point attributes:
-> kong.shared_dict.name: Str(kong_profiling_state)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778626304 +0000 UTC
Timestamp: 2025-12-12 10:47:51.1510272 +0000 UTC
Value: 20480
NumberDataPoints #24
Data point attributes:
-> kong.shared_dict.name: Str(kong_vaults_hcv)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778631424 +0000 UTC
Timestamp: 2025-12-12 10:47:51.15102976 +0000 UTC
Value: 16384
NumberDataPoints #25
Data point attributes:
-> kong.shared_dict.name: Str(kong_debug_session)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778637824 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151032064 +0000 UTC
Value: 16384
NumberDataPoints #26
Data point attributes:
-> kong.shared_dict.name: Str(prometheus_metrics)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.7786432 +0000 UTC
Timestamp: 2025-12-12 10:47:51.15103488 +0000 UTC
Value: 40960
NumberDataPoints #27
Data point attributes:
-> kong.shared_dict.name: Str(otel_metrics)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778679808 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151037696 +0000 UTC
Value: 40960
Metric #7
Descriptor:
-> Name: kong.ee.license.error.count
-> Description: Shows the number of errors occurred while collecting license information.
-> Unit: {error}
-> DataType: Sum
-> IsMonotonic: true
-> AggregationTemporality: Cumulative
NumberDataPoints #0
StartTimestamp: 2025-12-12 10:37:15.770968832 +0000 UTC
Timestamp: 2025-12-12 10:37:15.782564608 +0000 UTC
Value: 0
Metric #8
Descriptor:
-> Name: kong.shared_dict.size
-> Description: Shows the total memory size of a shared dict in bytes.
-> Unit: By
-> DataType: Gauge
NumberDataPoints #0
Data point attributes:
-> kong.shared_dict.name: Str(kong)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779246336 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779247104 +0000 UTC
Value: 5242880
NumberDataPoints #1
Data point attributes:
-> kong.shared_dict.name: Str(kong_locks)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779255296 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779255808 +0000 UTC
Value: 8388608
NumberDataPoints #2
Data point attributes:
-> kong.shared_dict.name: Str(kong_healthchecks)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779259392 +0000 UTC
Timestamp: 2025-12-12 10:37:15.77926016 +0000 UTC
Value: 5242880
NumberDataPoints #3
Data point attributes:
-> kong.shared_dict.name: Str(kong_cluster_events)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.7792704 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779271168 +0000 UTC
Value: 5242880
NumberDataPoints #4
Data point attributes:
-> kong.shared_dict.name: Str(kong_basic_auth_counters)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779289856 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779290624 +0000 UTC
Value: 12582912
NumberDataPoints #5
Data point attributes:
-> kong.shared_dict.name: Str(kong_rate_limiting_counters)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779296256 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779296768 +0000 UTC
Value: 12582912
NumberDataPoints #6
Data point attributes:
-> kong.shared_dict.name: Str(kong_ace_rate_limiting_counters)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779309824 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779310592 +0000 UTC
Value: 12582912
NumberDataPoints #7
Data point attributes:
-> kong.shared_dict.name: Str(kong_core_db_cache)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.77931392 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779314432 +0000 UTC
Value: 134217728
NumberDataPoints #8
Data point attributes:
-> kong.shared_dict.name: Str(kong_core_db_cache_miss)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779318528 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779319296 +0000 UTC
Value: 12582912
NumberDataPoints #9
Data point attributes:
-> kong.shared_dict.name: Str(kong_db_cache)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779325952 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779332096 +0000 UTC
Value: 134217728
NumberDataPoints #10
Data point attributes:
-> kong.shared_dict.name: Str(kong_db_cache_miss)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779350016 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779350784 +0000 UTC
Value: 12582912
NumberDataPoints #11
Data point attributes:
-> kong.shared_dict.name: Str(kong_consumers_db_cache)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779353856 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779354624 +0000 UTC
Value: 134217728
NumberDataPoints #12
Data point attributes:
-> kong.shared_dict.name: Str(kong_consumers_db_cache_miss)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.77935872 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779359232 +0000 UTC
Value: 12582912
NumberDataPoints #13
Data point attributes:
-> kong.shared_dict.name: Str(kong_secrets)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779364352 +0000 UTC
Timestamp: 2025-12-12 10:37:15.77936512 +0000 UTC
Value: 5242880
NumberDataPoints #14
Data point attributes:
-> kong.shared_dict.name: Str(kong_vitals_counters)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.7793728 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779373568 +0000 UTC
Value: 52428800
NumberDataPoints #15
Data point attributes:
-> kong.shared_dict.name: Str(kong_vitals)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779398656 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779399424 +0000 UTC
Value: 1048576
NumberDataPoints #16
Data point attributes:
-> kong.shared_dict.name: Str(kong_counters)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779405056 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779405568 +0000 UTC
Value: 1048576
NumberDataPoints #17
Data point attributes:
-> kong.shared_dict.name: Str(kong_reports_consumers)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779410432 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779410944 +0000 UTC
Value: 10485760
NumberDataPoints #18
Data point attributes:
-> kong.shared_dict.name: Str(otel_metrics)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779468032 +0000 UTC
Timestamp: 2025-12-12 10:37:15.7794688 +0000 UTC
Value: 5242880
NumberDataPoints #19
Data point attributes:
-> kong.shared_dict.name: Str(prometheus_metrics)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.7794624 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779462912 +0000 UTC
Value: 5242880
NumberDataPoints #20
Data point attributes:
-> kong.shared_dict.name: Str(kong_debug_session)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779458048 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779458816 +0000 UTC
Value: 1048576
NumberDataPoints #21
Data point attributes:
-> kong.shared_dict.name: Str(kong_vaults_hcv)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779453696 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779454208 +0000 UTC
Value: 1048576
NumberDataPoints #22
Data point attributes:
-> kong.shared_dict.name: Str(kong_profiling_state)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.77944832 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779448832 +0000 UTC
Value: 1572864
NumberDataPoints #23
Data point attributes:
-> kong.shared_dict.name: Str(kong_keyring)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779444736 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779445248 +0000 UTC
Value: 5242880
NumberDataPoints #24
Data point attributes:
-> kong.shared_dict.name: Str(kong_reports_workspaces)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.77942912 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779429632 +0000 UTC
Value: 1048576
NumberDataPoints #25
Data point attributes:
-> kong.shared_dict.name: Str(kong_reports_services)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.779421184 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779421696 +0000 UTC
Value: 1048576
NumberDataPoints #26
Data point attributes:
-> kong.shared_dict.name: Str(kong_reports_routes)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.77941376 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779414272 +0000 UTC
Value: 1048576
NumberDataPoints #27
Data point attributes:
-> kong.shared_dict.name: Str(kong_vitals_lists)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:37:15.77938304 +0000 UTC
Timestamp: 2025-12-12 10:37:15.779383808 +0000 UTC
Value: 1048576
Metric #9
Descriptor:
-> Name: kong.memory.workers.lua_vm
-> Description: Measures how much memory the worker Lua VM is using in bytes.
-> Unit: By
-> DataType: Gauge
NumberDataPoints #0
Data point attributes:
-> kong.pid: Str(2732)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778701056 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151047168 +0000 UTC
Value: 67684407
NumberDataPoints #1
Data point attributes:
-> kong.pid: Str(2733)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778712064 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151052032 +0000 UTC
Value: 66817031
NumberDataPoints #2
Data point attributes:
-> kong.pid: Str(2734)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778722304 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151056384 +0000 UTC
Value: 66817707
NumberDataPoints #3
Data point attributes:
-> kong.pid: Str(2735)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778732288 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151060992 +0000 UTC
Value: 66817031
NumberDataPoints #4
Data point attributes:
-> kong.pid: Str(2736)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778741504 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151064064 +0000 UTC
Value: 66830855
NumberDataPoints #5
Data point attributes:
-> kong.pid: Str(2737)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.77874944 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151066624 +0000 UTC
Value: 66817031
NumberDataPoints #6
Data point attributes:
-> kong.pid: Str(2738)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778757632 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151069952 +0000 UTC
Value: 66817031
NumberDataPoints #7
Data point attributes:
-> kong.pid: Str(2739)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778920704 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151072512 +0000 UTC
Value: 71818907
NumberDataPoints #8
Data point attributes:
-> kong.pid: Str(2740)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.778948864 +0000 UTC
Timestamp: 2025-12-12 10:47:51.15107584 +0000 UTC
Value: 66817031
NumberDataPoints #9
Data point attributes:
-> kong.pid: Str(2741)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.77909504 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151079168 +0000 UTC
Value: 76209463
NumberDataPoints #10
Data point attributes:
-> kong.pid: Str(2742)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.77929472 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151081984 +0000 UTC
Value: 66817031
NumberDataPoints #11
Data point attributes:
-> kong.pid: Str(2743)
-> kong.subsystem: Str(http)
StartTimestamp: 2025-12-12 10:39:30.779652608 +0000 UTC
Timestamp: 2025-12-12 10:47:51.151085056 +0000 UTC
Value: 66817031
Metric #10
Descriptor:
-> Name: kong.db.connection.status
-> Description: Shows whether Kong could connect to the database. A value of 1 means able to connect. A value of 0 means not able to connect.
-> Unit: 1
-> DataType: Gauge
NumberDataPoints #0
StartTimestamp: 2025-12-12 10:39:30.777023488 +0000 UTC
Timestamp: 2025-12-12 10:47:51.150394112 +0000 UTC
Value: 1
Metric #11
Descriptor:
-> Name: kong.ee.license.signature
-> Description: Shows the last 8 bytes of the Enterprise license signature as a number.
-> Unit: 1
-> DataType: Gauge
NumberDataPoints #0
StartTimestamp: 2025-12-12 10:39:30.785728512 +0000 UTC
Timestamp: 2025-12-12 10:47:51.154936576 +0000 UTC
Value: 1000461175230928640
{:.no-copy-code .collapsible}
정리
Konnect 환경 정리
새 컨트롤 플레인을 만들었고 무료 체험 크레딧을 아끼거나 불필요한 요금이 청구되지 않게 하고 싶다면, 이 튜토리얼에서 사용한 새 컨트롤 플레인을 삭제하세요.
Kong Gateway 컨테이너 제거
curl -Ls https://get.konghq.com/quickstart | bash -s -- -d
관련 자료
더 알아보기 (Learn more)
- OTEL 플러그인의 파라미터와 프로토콜 설정 등 상세 사용법을 확인할 수 있는 플러그인 참고 문서예요 — OpenTelemetry plugin
- 이 튜토리얼에서 플러그인 활성화와 구성에 사용하는 decK CLI 도구의 설치 방법과 사용법을 안내해요 — decK
- 플러그인을 적용할 서비스, 라우트 등 Kong Gateway 엔티티의 개념을 정리한 문서예요 — entities documentation
- 수집한 OpenTelemetry 데이터를 Grafana Cloud로 보내는 방법을 다루는 심화 가이드예요 — Send OpenTelemetry data to Grafana Cloud
- Konnect나 Kong Gateway 환경을 거의 즉시 띄울 때 사용하는 quickstart 스크립트 소개예요 — quickstart script