Metrics

Business Function

standard format of open-source Prometheus. You can use Promethues to collect data and connect to the Grafana for monitoring.

URI

GET /v1/mesher/metrics

Request

None

Response

Response Parameter

Table 1 describes the response parameters.

Table 1 Parameter description

Parameter

Type

Description

text

text

Metrics in Prometheus format.

Response Example

# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 28
# HELP go_info Information about the Go environment.
# TYPE go_info gauge
go_info{version="go1.9"} 1
# HELP go_memstats_alloc_bytes Number of bytes allocated and still in use.
# TYPE go_memstats_alloc_bytes gauge
go_memstats_alloc_bytes 3.891488e+06
# HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed.
# TYPE go_memstats_alloc_bytes_total counter
go_memstats_alloc_bytes_total 1.63252264e+08
# HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table.
# TYPE go_memstats_buck_hash_sys_bytes gauge
go_memstats_buck_hash_sys_bytes 1.454785e+06
# HELP Server_request_latency_seconds request_latency_seconds
# TYPE Server_request_latency_seconds summary
Server_request_latency_seconds{AppId="CSE",version="0.1",quantile="0.5"} 0.000658564
Server_request_latency_seconds{AppId="CSE",version="0.1",quantile="0.9"} 0.001710824
Server_request_latency_seconds{AppId="CSE",version="0.1",quantile="0.99"} 0.001710824
Server_request_latency_seconds_sum{AppId="CSE",version="0.1"} 0.004386012
Server_request_latency_seconds_count{AppId="CSE",version="0.1"} 5
# HELP Server_requests_total requests_total
# TYPE Server_requests_total counter
Server_requests_total{AppId="CSE",version="0.1"} 5
# HELP Server_succeses_total succeses_total
# TYPE Server_succeses_total counter
Server_succeses_total{AppId="CSE",version="0.1"} 5
# HELP mesher_request_latency_seconds request_latency_seconds
# TYPE mesher_request_latency_seconds summary
mesher_request_latency_seconds{AppId="default",version="0.1",quantile="0.5"} 0.000658564
mesher_request_latency_seconds{AppId="default",version="0.1",quantile="0.9"} 0.001710824
mesher_request_latency_seconds{AppId="default",version="0.1",quantile="0.99"} 0.001710824
mesher_request_latency_seconds_sum{AppId="default",version="0.1"} 0.004386012
mesher_request_latency_seconds_count{AppId="default",version="0.1"} 5
# HELP mesher_5xx_errors 5xx_errors
# TYPE mesher_5xx_errors counter
mesher_5xx_errors{AppId="default",version="0.1"} 2
# HELP mesher_failures_total failures_total
# TYPE mesher_failures_total counter
mesher_failures_total{AppId="default",version="0.1"} 2
# HELP mesher_requests_total requests_total
# TYPE mesher_requests_total counter
mesher_requests_total{AppId="default",version="0.1"} 5
# HELP mesher_services_monitored services_monitored
# TYPE mesher_services_monitored gauge
mesher_services_monitored{AppId="default",version="0.1"} 1
# HELP mesher_start_time_seconds start_time_seconds
# TYPE mesher_start_time_seconds gauge
mesher_start_time_seconds{AppId="default",version="0.1"} 1.507637815e+09
# HELP mesher_succeses_total succeses_total
# TYPE mesher_succeses_total counter
mesher_succeses_total{AppId="default",version="0.1"} 5

Status Code

Table 2 describes the status code.

Table 2 Status code

Code

Description

200

Request succeeded.

500

Internal error.