본문으로 건너뛰기

config-map 설정

운영 상태 점검을 위한 metrics 값들

19090 포트를 통해 metrics 정보 조회 가능 (management.server.port / application-docker.yml)


Prometheus Sample

# HELP disk_free_bytes Usable space for path
# TYPE disk_free_bytes gauge
disk_free_bytes{application="shieldrive-directory",path="C:\\Users\\hsy\\git\\ApiDirectorySvr\\ApiDirectorySvr\\.",} 7.798790144E10

# HELP disk_total_bytes Total space for path
# TYPE disk_total_bytes gauge
disk_total_bytes{application="shieldrive-directory",path="C:\\Users\\hsy\\git\\ApiDirectorySvr\\ApiDirectorySvr\\.",} 3.69840676864E11

# HELP jvm_memory_committed_bytes The amount of memory in bytes that is committed for the Java virtual machine to use
# TYPE jvm_memory_committed_bytes gauge
jvm_memory_committed_bytes{application="shieldrive-directory",area="heap",id="G1 Survivor Space",} 1.6777216E7
jvm_memory_committed_bytes{application="shieldrive-directory",area="heap",id="G1 Old Gen",} 1.00663296E8
jvm_memory_committed_bytes{application="shieldrive-directory",area="heap",id="G1 Eden Space",} 8.388608E7
jvm_memory_committed_bytes{application="shieldrive-directory",area="nonheap",id="Metaspace",} 9.797632E7
jvm_memory_committed_bytes{application="shieldrive-directory",area="nonheap",id="CodeCache",} 1.933312E7
jvm_memory_committed_bytes{application="shieldrive-directory",area="nonheap",id="Compressed Class Space",} 1.3303808E7

# HELP jvm_memory_max_bytes The maximum amount of memory in bytes that can be used for memory management
# TYPE jvm_memory_max_bytes gauge
jvm_memory_max_bytes{application="shieldrive-directory",area="heap",id="G1 Survivor Space",} -1.0
jvm_memory_max_bytes{application="shieldrive-directory",area="heap",id="G1 Old Gen",} 1.7146314752E10
jvm_memory_max_bytes{application="shieldrive-directory",area="heap",id="G1 Eden Space",} -1.0
jvm_memory_max_bytes{application="shieldrive-directory",area="nonheap",id="Metaspace",} -1.0
jvm_memory_max_bytes{application="shieldrive-directory",area="nonheap",id="CodeCache",} 5.0331648E7
jvm_memory_max_bytes{application="shieldrive-directory",area="nonheap",id="Compressed Class Space",} 1.073741824E9

# HELP jvm_memory_used_bytes The amount of used memory
# TYPE jvm_memory_used_bytes gauge
jvm_memory_used_bytes{application="shieldrive-directory",area="heap",id="G1 Survivor Space",} 1.5934552E7
jvm_memory_used_bytes{application="shieldrive-directory",area="heap",id="G1 Old Gen",} 6.210048E7
jvm_memory_used_bytes{application="shieldrive-directory",area="heap",id="G1 Eden Space",} 0.0
jvm_memory_used_bytes{application="shieldrive-directory",area="nonheap",id="Metaspace",} 9.7272E7
jvm_memory_used_bytes{application="shieldrive-directory",area="nonheap",id="CodeCache",} 1.9358848E7
jvm_memory_used_bytes{application="shieldrive-directory",area="nonheap",id="Compressed Class Space",} 1.300184E7

# HELP custom_elasticsearch_status Elasticsearch 상태 (1=UP, 0=DOWN)
# TYPE custom_elasticsearch_status gauge
custom_elasticsearch_status{application="shieldrive-directory",} 1.0

# HELP tomcat_threads_busy_threads
# TYPE tomcat_threads_busy_threads gauge
tomcat_threads_busy_threads{application="shieldrive-directory",name="http-nio-33002",} 0.0

# HELP tomcat_threads_current_threads
# TYPE tomcat_threads_current_threads gauge
tomcat_threads_current_threads{application="shieldrive-directory",name="http-nio-33002",} 1224.0

# HELP tomcat_threads_config_max_threads
# TYPE tomcat_threads_config_max_threads gauge
tomcat_threads_config_max_threads{application="shieldrive-directory",name="http-nio-33002",} 1224.0

# HELP process_cpu_usage The "recent cpu usage" for the Java Virtual Machine process
# TYPE process_cpu_usage gauge
process_cpu_usage{application="shieldrive-directory",} 0.06616490029320049

# HELP custom_rabbitmq_status RabbitMQ 연결 상태 (1=UP, 0=DOWN)
# TYPE custom_rabbitmq_status gauge
custom_rabbitmq_status{application="shieldrive-directory",} 1.0

# HELP custom_threadpool_active pool 진행 작업 개수
# TYPE custom_threadpool_active gauge
custom_threadpool_active{application="shieldrive-directory",pool="sendLogs",} 0.0
custom_threadpool_active{application="shieldrive-directory",pool="teamsEvent",} 0.0
custom_threadpool_active{application="shieldrive-directory",pool="folderAclSync",} 0.0
custom_threadpool_active{application="shieldrive-directory",pool="default",} 0.0
custom_threadpool_active{application="shieldrive-directory",pool="upload",} 0.0

# HELP custom_threadpool_queued pool 대기 작업 개수
# TYPE custom_threadpool_queued gauge
custom_threadpool_queued{application="shieldrive-directory",pool="sendLogs",} 0.0
custom_threadpool_queued{application="shieldrive-directory",pool="teamsEvent",} 0.0
custom_threadpool_queued{application="shieldrive-directory",pool="folderAclSync",} 0.0
custom_threadpool_queued{application="shieldrive-directory",pool="default",} 0.0
custom_threadpool_queued{application="shieldrive-directory",pool="upload",} 0.0

# HELP custom_threadpool_poolsize pool 크기
# TYPE custom_threadpool_poolsize gauge
custom_threadpool_poolsize{application="shieldrive-directory",pool="sendLogs",} 0.0
custom_threadpool_poolsize{application="shieldrive-directory",pool="teamsEvent",} 0.0
custom_threadpool_poolsize{application="shieldrive-directory",pool="folderAclSync",} 0.0
custom_threadpool_poolsize{application="shieldrive-directory",pool="default",} 0.0
custom_threadpool_poolsize{application="shieldrive-directory",pool="upload",} 0.0

# HELP custom_webclient_status WebClient 연결 상태 (1=UP, 0=DOWN)
# TYPE custom_webclient_status gauge
custom_webclient_status{application="shieldrive-directory",service="shieldrm",} 1.0
custom_webclient_status{application="shieldrive-directory",service="resource",} 1.0
custom_webclient_status{application="shieldrive-directory",service="ekms",} 1.0
custom_webclient_status{application="shieldrive-directory",service="cloudLogging",} 1.0
custom_webclient_status{application="shieldrive-directory",service="cssb",} 0.0
custom_webclient_status{application="shieldrive-directory",service="oauth",} 1.0
custom_webclient_status{application="shieldrive-directory",service="license",} 1.0
custom_webclient_status{application="shieldrive-directory",service="extraction",} 1.0

# HELP custom_redis_status Redis 상태 (1=UP, 0=DOWN)
# TYPE custom_redis_status gauge
custom_redis_status{application="shieldrive-directory",} 1.0