F:\workspace\guides>curl -v  
http://127.0.0.1:8091/auth-service/actuator/prometheus
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8091 (#0)
> GET /auth-service/actuator/prometheus HTTP/1.1
> Host: 127.0.0.1:8091
> User-Agent: curl/7.55.1
> Accept: */*
>
< HTTP/1.1 200
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Credentials: true
< Access-Control-Allow-Methods: PUT, POST, GET, OPTIONS, DELETE
< Access-Control-Max-Age: 36000
< Access-Control-Allow-Headers: Accept, System-Code, Service-Org, 
Access-Token, Content-Type, Content-Disposition, Cache-Control, Expires, 
Referer, User-Agent, No-Cache, Pragma, X-Requested-With, If-Modified-Since, 
Last-Modified, Authorization
< XDomainRequestAllowed: 1
< Access-Control-Expose-Headers: Access-Token, System-Code,Service-Org, 
Content-Disposition, Authorization
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: 0
< X-Frame-Options: DENY
< Content-Type: text/plain; version=0.0.4;charset=utf-8
< Content-Length: 16222
< Date: Thu, 30 Apr 2020 02:31:16 GMT
<
"# HELP rabbitmq_connections  \n# TYPE rabbitmq_connections 
gauge\nrabbitmq_connections{application=\"auth-service\",name=\"rabbit\",} 
0.0\n# HELP jvm_threads_live_threads The current number of live threads 
including both daemon and non-daemon threads\n# TYPE 
jvm_threads_live_threads 
gauge\njvm_threads_live_threads{application=\"auth-service\",} 30.0\n# HELP 
tomcat_sessions_expired_sessions_total  \n# TYPE 
tomcat_sessions_expired_sessions_total 
counter\ntomcat_sessions_expired_sessions_total{application=\"auth-service\",} 
0.0\n# HELP rabbitmq_acknowledged_total  \n# TYPE 
rabbitmq_acknowledged_total 
counter\nrabbitmq_acknowledged_total{application=\"auth-service\",name=\"rabbit\",}
 
0.0\n# HELP jvm_buffer_count_buffers An estimate of the number of buffers 
in the pool\n# TYPE jvm_buffer_count_buffers 
gauge\njvm_buffer_count_buffers{application=\"auth-service\",id=\"mapped\",} 
0.0\njvm_buffer_count_buffers{application=\"auth-service\",id=\"direct\",} 
9.0\n# HELP hikaricp_connections_creation_seconds_max Connection creation 
time\n# TYPE hikaricp_connections_creation_seconds_max 
gauge\nhikaricp_connections_creation_seconds_max{application=\"auth-service\",pool=\"HikariPool-1\",}
 
0.0\n# HELP hikaricp_connections_creation_seconds Connection creation 
time\n# TYPE hikaricp_connections_creation_seconds 
summary\nhikaricp_connections_creation_seconds_count{application=\"auth-service\",pool=\"HikariPool-1\",}
 
320.0\nhikaricp_connections_creation_seconds_sum{application=\"auth-service\",pool=\"HikariPool-1\",}
 
213.978\n# HELP hikaricp_connections_pending Pending threads\n# TYPE 
hikaricp_connections_pending 
gauge\nhikaricp_connections_pending{application=\"auth-service\",pool=\"HikariPool-1\",}
 
0.0\n# HELP rabbitmq_unrouted_published_total  \n# TYPE 
rabbitmq_unrouted_published_total 
counter\nrabbitmq_unrouted_published_total{application=\"auth-service\",name=\"rabbit\",}
 
0.0\n# HELP hikaricp_connections_idle Idle connections\n# TYPE 
hikaricp_connections_idle 
gauge\nhikaricp_connections_idle{application=\"auth-service\",pool=\"HikariPool-1\",}
 
10.0\n# HELP jdbc_connections_min  \n# TYPE jdbc_connections_min 
gauge\njdbc_connections_min{application=\"auth-service\",name=\"first\",} 
10.0\n# HELP rabbitmq_rejected_total  \n# TYPE rabbitmq_rejected_total 
counter\nrabbitmq_rejected_total{application=\"auth-service\",name=\"rabbit\",} 
0.0\n# HELP jvm_threads_daemon_threads The current number of live daemon 
threads\n# TYPE jvm_threads_daemon_threads 
gauge\njvm_threads_daemon_threads{application=\"auth-service\",} 25.0\n# 
HELP jvm_gc_pause_seconds Time spent in GC pause\n# TYPE 
jvm_gc_pause_seconds summary\njvm_gc_pause_seconds_count{action=\"end of 
minor GC\",application=\"auth-service\",cause=\"G1 Evacuation Pause\",} 
10.0\njvm_gc_pause_seconds_sum{action=\"end of minor 
GC\",application=\"auth-service\",cause=\"G1 Evacuation Pause\",} 
0.29\njvm_gc_pause_seconds_count{action=\"end of minor 
GC\",application=\"auth-service\",cause=\"Metadata GC Threshold\",} 
1.0\njvm_gc_pause_seconds_sum{action=\"end of minor 
GC\",application=\"auth-service\",cause=\"Metadata GC Threshold\",} 
0.021\n# HELP jvm_gc_pause_seconds_max Time spent in GC pause\n# TYPE 
jvm_gc_pause_seconds_max gauge\njvm_gc_pause_seconds_max{action=\"end of 
minor GC\",application=\"auth-service\",cause=\"G1 Evacuation Pause\",} 
0.0\njvm_gc_pause_seconds_max{action=\"end of minor 
GC\",application=\"auth-service\",cause=\"Metadata GC Threshold\",} 0.0\n# 
HELP hikaricp_connections_active Active connections\n# TYPE 
hikaricp_connections_active 
gauge\nhikaricp_connections_active{application=\"auth-service\",pool=\"HikariPool-1\",}
 
0.0\n# HELP rabbitmq_consumed_total  \n# TYPE rabbitmq_consumed_total 
counter\nrabbitmq_consumed_total{application=\"auth-service\",name=\"rabbit\",} 
0.0\n# HELP hikaricp_connections Total connections\n# TYPE 
hikaricp_connections 
gauge\nhikaricp_connections{application=\"auth-service\",pool=\"HikariPool-1\",}
 
10.0\n# HELP jvm_classes_loaded_classes The number of classes that are 
currently loaded in the Java virtual machine\n# TYPE 
jvm_classes_loaded_classes 
gauge\njvm_classes_loaded_classes{application=\"auth-service\",} 16349.0\n# 
HELP jdbc_connections_max  \n# TYPE jdbc_connections_max 
gauge\njdbc_connections_max{application=\"auth-service\",name=\"first\",} 
10.0\n# HELP hikaricp_connections_max Max connections\n# TYPE 
hikaricp_connections_max 
gauge\nhikaricp_connections_max{application=\"auth-service\",pool=\"HikariPool-1\",}
 
10.0\n# HELP jvm_gc_max_data_size_bytes Max size of old generation memory 
pool\n# TYPE jvm_gc_max_data_size_bytes 
gauge\njvm_gc_max_data_size_bytes{application=\"auth-service\",} 
4.269801472E9\n# HELP jvm_gc_memory_allocated_bytes_total Incremented for 
an increase in the size of the young generation memory pool after one GC to 
before the next\n# TYPE jvm_gc_memory_allocated_bytes_total 
counter\njvm_gc_memory_allocated_bytes_total{application=\"auth-service\",} 
1.485832192E9\n# HELP jvm_threads_peak_threads The peak live thread count 
since the Java virtual machine started or peak was reset\n# TYPE 
jvm_threads_peak_threads 
gauge\njvm_threads_peak_threads{application=\"auth-service\",} 35.0\n# HELP 
tomcat_sessions_active_max_sessions  \n# TYPE 
tomcat_sessions_active_max_sessions 
gauge\ntomcat_sessions_active_max_sessions{application=\"auth-service\",} 
0.0\n# HELP system_cpu_usage The \"recent cpu usage\" for the whole 
system\n# TYPE system_cpu_usage 
gauge\nsystem_cpu_usage{application=\"auth-service\",} 
0.31671361118993935\n# HELP tomcat_sessions_created_sessions_total  \n# 
TYPE tomcat_sessions_created_sessions_total 
counter\ntomcat_sessions_created_sessions_total{application=\"auth-service\",} 
0.0\n# HELP process_start_time_seconds Start time of the process since unix 
epoch.\n# TYPE process_start_time_seconds 
gauge\nprocess_start_time_seconds{application=\"auth-service\",} 
1.588157126521E9\n# HELP jvm_gc_live_data_size_bytes Size of old generation 
memory pool after a full GC\n# TYPE jvm_gc_live_data_size_bytes 
gauge\njvm_gc_live_data_size_bytes{application=\"auth-service\",} 
2.8757264E7\n# HELP rabbitmq_published_total  \n# TYPE 
rabbitmq_published_total 
counter\nrabbitmq_published_total{application=\"auth-service\",name=\"rabbit\",}
 
0.0\n# HELP rabbitmq_failed_to_publish_total  \n# TYPE 
rabbitmq_failed_to_publish_total 
counter\nrabbitmq_failed_to_publish_total{application=\"auth-service\",name=\"rabbit\",}
 
0.0\n# HELP jdbc_connections_active  \n# TYPE jdbc_connections_active 
gauge\njdbc_connections_active{application=\"auth-service\",name=\"first\",} 
0.0\n# HELP tomcat_sessions_alive_max_seconds  \n# TYPE 
tomcat_sessions_alive_max_seconds 
gauge\ntomcat_sessions_alive_max_seconds{application=\"auth-service\",} 
0.0\n# HELP hikaricp_connections_min Min connections\n# TYPE 
hikaricp_connections_min 
gauge\nhikaricp_connections_min{application=\"auth-service\",pool=\"HikariPool-1\",}
 
10.0\n# HELP jvm_memory_used_bytes The amount of used memory\n# TYPE 
jvm_memory_used_bytes 
gauge\njvm_memory_used_bytes{application=\"auth-service\",area=\"nonheap\",id=\"CodeHeap
 
'non-nmethods'\",} 
1396992.0\njvm_memory_used_bytes{application=\"auth-service\",area=\"heap\",id=\"G1
 
Old Gen\",} 
6.0637184E7\njvm_memory_used_bytes{application=\"auth-service\",area=\"nonheap\",id=\"Compressed
 
Class Space\",} 
1.1275616E7\njvm_memory_used_bytes{application=\"auth-service\",area=\"nonheap\",id=\"CodeHeap
 
'non-profiled nmethods'\",} 
9929472.0\njvm_memory_used_bytes{application=\"auth-service\",area=\"heap\",id=\"G1
 
Survivor Space\",} 
1.048576E7\njvm_memory_used_bytes{application=\"auth-service\",area=\"heap\",id=\"G1
 
Eden Space\",} 
1.18489088E8\njvm_memory_used_bytes{application=\"auth-service\",area=\"nonheap\",id=\"Metaspace\",}
 
9.5251328E7\njvm_memory_used_bytes{application=\"auth-service\",area=\"nonheap\",id=\"CodeHeap
 
'profiled nmethods'\",} 2.1991168E7\n# HELP system_cpu_count The number of 
processors available to the Java virtual machine\n# TYPE system_cpu_count 
gauge\nsystem_cpu_count{application=\"auth-service\",} 4.0\n# HELP 
jvm_classes_unloaded_classes_total The total number of classes unloaded 
since the Java virtual machine has started execution\n# TYPE 
jvm_classes_unloaded_classes_total 
counter\njvm_classes_unloaded_classes_total{application=\"auth-service\",} 
0.0\n# HELP jvm_buffer_total_capacity_bytes An estimate of the total 
capacity of the buffers in this pool\n# TYPE 
jvm_buffer_total_capacity_bytes 
gauge\njvm_buffer_total_capacity_bytes{application=\"auth-service\",id=\"mapped\",}
 
0.0\njvm_buffer_total_capacity_bytes{application=\"auth-service\",id=\"direct\",}
 
73728.0\n# HELP jvm_memory_committed_bytes The amount of memory in bytes 
that is committed for the Java virtual machine to use\n# TYPE 
jvm_memory_committed_bytes 
gauge\njvm_memory_committed_bytes{application=\"auth-service\",area=\"nonheap\",id=\"CodeHeap
 
'non-nmethods'\",} 
2555904.0\njvm_memory_committed_bytes{application=\"auth-service\",area=\"heap\",id=\"G1
 
Old Gen\",} 
9.961472E7\njvm_memory_committed_bytes{application=\"auth-service\",area=\"nonheap\",id=\"Compressed
 
Class Space\",} 
1.2189696E7\njvm_memory_committed_bytes{application=\"auth-service\",area=\"nonheap\",id=\"CodeHeap
 
'non-profiled nmethods'\",} 
1.179648E7\njvm_memory_committed_bytes{application=\"auth-service\",area=\"heap\",id=\"G1
 
Survivor Space\",} 
1.048576E7\njvm_memory_committed_bytes{application=\"auth-service\",area=\"heap\",id=\"G1
 
Eden Space\",} 
1.58334976E8\njvm_memory_committed_bytes{application=\"auth-service\",area=\"nonheap\",id=\"Metaspace\",}
 
9.764864E7\njvm_memory_committed_bytes{application=\"auth-service\",area=\"nonheap\",id=\"CodeHeap
 
'profiled nmethods'\",} 2.3396352E7\n# HELP 
rabbitmq_acknowledged_published_total  \n# TYPE 
rabbitmq_acknowledged_published_total 
counter\nrabbitmq_acknowledged_published_total{application=\"auth-service\",name=\"rabbit\",}
 
0.0\n# HELP spring_boot_info A metric with a constant '1' value labeled by 
version from which spring boot application was built.\n# TYPE 
spring_boot_info 
gauge\nspring_boot_info{application=\"auth-service\",version=\"version\",} 
1.0\n# HELP rabbitmq_channels  \n# TYPE rabbitmq_channels 
gauge\nrabbitmq_channels{application=\"auth-service\",name=\"rabbit\",} 
0.0\n# HELP build_info A metric with a constant '1' value labeled by 
version, revision, branch from which application was built.\n# TYPE 
build_info 
gauge\nbuild_info{app=\"app\",application=\"auth-service\",branch=\"branch\",revision=\"revision\",version=\"version\",}
 
1.0\n# HELP rabbitmq_not_acknowledged_published_total  \n# TYPE 
rabbitmq_not_acknowledged_published_total 
counter\nrabbitmq_not_acknowledged_published_total{application=\"auth-service\",name=\"rabbit\",}
 
0.0\n# HELP jvm_gc_memory_promoted_bytes_total Count of positive increases 
in the size of the old generation memory pool before GC to after GC\n# TYPE 
jvm_gc_memory_promoted_bytes_total 
counter\njvm_gc_memory_promoted_bytes_total{application=\"auth-service\",} 
4.8362736E7\n# HELP hikaricp_connections_usage_seconds Connection usage 
time\n# TYPE hikaricp_connections_usage_seconds 
summary\nhikaricp_connections_usage_seconds_count{application=\"auth-service\",pool=\"HikariPool-1\",}
 
0.0\nhikaricp_connections_usage_seconds_sum{application=\"auth-service\",pool=\"HikariPool-1\",}
 
0.0\n# HELP hikaricp_connections_usage_seconds_max Connection usage time\n# 
TYPE hikaricp_connections_usage_seconds_max 
gauge\nhikaricp_connections_usage_seconds_max{application=\"auth-service\",pool=\"HikariPool-1\",}
 
0.0\n# HELP http_server_requests_seconds  \n# TYPE 
http_server_requests_seconds 
summary\nhttp_server_requests_seconds_count{application=\"auth-service\",exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/actuator/prometheus\",}
 
8.0\nhttp_server_requests_seconds_sum{application=\"auth-service\",exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/actuator/prometheus\",}
 
4.2322185\n# HELP http_server_requests_seconds_max  \n# TYPE 
http_server_requests_seconds_max 
gauge\nhttp_server_requests_seconds_max{application=\"auth-service\",exception=\"None\",method=\"GET\",outcome=\"SUCCESS\",status=\"200\",uri=\"/actuator/prometheus\",}
 
0.0\n# HELP tomcat_sessions_rejected_sessions_total  \n# TYPE 
tomcat_sessions_rejected_sessions_total 
counter\ntomcat_sessions_rejected_sessions_total{application=\"auth-service\",} 
0.0\n# HELP jvm_threads_states_threads The current number of threads having 
NEW state\n# TYPE jvm_threads_states_threads 
gauge\njvm_threads_states_threads{application=\"auth-service\",state=\"timed-waiting\",}
 
7.0\njvm_threads_states_threads{application=\"auth-service\",state=\"terminated\",}
 
0.0\njvm_threads_states_threads{application=\"auth-service\",state=\"runnable\",}
 
10.0\njvm_threads_states_threads{application=\"auth-service\",state=\"new\",} 
0.0\njvm_threads_states_threads{application=\"auth-service\",state=\"waiting\",}
 
13.0\njvm_threads_states_threads{application=\"auth-service\",state=\"blocked\",}
 
0.0\n# HELP jvm_memory_max_bytes The maximum amount of memory in bytes that 
can be used for memory management\n# TYPE jvm_memory_max_bytes 
gauge\njvm_memory_max_bytes{application=\"auth-service\",area=\"nonheap\",id=\"CodeHeap
 
'non-nmethods'\",} 
5832704.0\njvm_memory_max_bytes{application=\"auth-service\",area=\"heap\",id=\"G1
 
Old Gen\",} 
4.269801472E9\njvm_memory_max_bytes{application=\"auth-service\",area=\"nonheap\",id=\"Compressed
 
Class Space\",} 
1.073741824E9\njvm_memory_max_bytes{application=\"auth-service\",area=\"nonheap\",id=\"CodeHeap
 
'non-profiled nmethods'\",} 
1.22945536E8\njvm_memory_max_bytes{application=\"auth-service\",area=\"heap\",id=\"G1
 
Survivor Space\",} 
-1.0\njvm_memory_max_bytes{application=\"auth-service\",area=\"heap\",id=\"G1 
Eden Space\",} 
-1.0\njvm_memory_max_bytes{application=\"auth-service\",area=\"nonheap\",id=\"Metaspace\",}
 
-1.0\njvm_memory_max_bytes{application=\"auth-service\",area=\"nonheap\",id=\"CodeHeap
 
'profiled nmethods'\",} 1.2288E8\n# HELP hikaricp_connections_timeout_total 
Connection timeout total count\n# TYPE hikaricp_connections_timeout_total 
counter\nhikaricp_connections_timeout_total{application=\"auth-service\",pool=\"HikariPool-1\",}
 
0.0\n# HELP jdbc_connections_idle  \n# TYPE jdbc_connections_idle 
gauge\njdbc_connections_idle{application=\"auth-service\",name=\"first\",} 
10.0\n# HELP logback_events_total Number of error level events that made it 
to the logs\n# TYPE logback_events_total 
counter\nlogback_events_total{application=\"auth-service\",level=\"info\",} 
218.0\nlogback_events_total{application=\"auth-service\",level=\"warn\",} 
5.0\nlogback_events_total{application=\"auth-service\",level=\"error\",} 
3.0\nlogback_events_total{application=\"auth-service\",level=\"trace\",} 
0.0\nlogback_events_total{application=\"auth-service\",level=\"debug\",} 
2025.0\n# HELP hikaricp_connections_acquire_seconds Connection acquire 
time\n# TYPE hikaricp_connections_acquire_seconds 
summary\nhikaricp_connections_acquire_seconds_count{application=\"auth-service\",pool=\"HikariPool-1\",}
 
0.0\nhikaricp_connections_acquire_seconds_sum{application=\"auth-service\",pool=\"HikariPool-1\",}
 
0.0\n# HELP hikaricp_connections_acquire_seconds_max Connection acquire 
time\n# TYPE hikaricp_connections_acquire_seconds_max 
gauge\nhikaricp_connections_acquire_seconds_max{application=\"auth-service\",pool=\"HikariPool-1\",}
 
0.0\n# HELP tomcat_sessions_active_current_sessions  \n# TYPE 
tomcat_sessions_active_current_sessions 
gauge\ntomcat_sessions_active_current_sessions{application=\"auth-service\",} 
0.0\n# HELP jvm_buffer_memory_used_bytes An estimate of the memory that the 
Java virtual machine is using for this buffer pool\n# TYPE 
jvm_buffer_memory_used_bytes 
gauge\njvm_buffer_memory_used_bytes{application=\"auth-service\",id=\"mapped\",}
 
0.0\njvm_buffer_memory_used_bytes{application=\"auth-service\",id=\"direct\",} 
73728.0\n# HELP process_uptime_seconds The uptime of the Java virtual 
machine\n# TYPE process_uptime_seconds 
gauge\nprocess_uptime_seconds{application=\"auth-service\",} 56749.175\n# 
HELP process_cpu_usage The \"recent cpu usage\" for the Java Virtual 
Machine process\n# TYPE process_cpu_usage 
gauge\nprocess_cpu_usage{application=\"auth-service\",} 
0.0030914718745901947\n"* Connection #0 to host 127.0.0.1 left intact

On Wednesday, 29 April 2020 20:02:43 UTC+8, Brian Candler wrote:
>
> How did you generate that output?  Can you try using "curl" to access the 
> metrics endpoint directly?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/33c5f614-ce1a-40ca-9eda-24da4012ef35%40googlegroups.com.

Reply via email to