English | 中文
See simple/server
See simple/client
See custom/server
See custom/client
-
install docker and start docker
-
change
{{ INET_IP }}
to local ip in prometheus.yml -
run Prometheus and Grafana
docker-compose up
-
run Kitex server
go run simple/server/main.go
-
run Kitex client
go run simple/client/main.go
-
visit
http://localhost:3000
, the account password isadmin
by default -
configure Prometheus data sources
Connection
Add new connection
- Select
Prometheus
and fill the URL withhttp://prometheus:9090
- click
Save & Test
after configuration to test if it works
-
add dashboard
Create
->dashboard
, add monitoring metrics such as throughput and pct99 according to your needs.for example:
- server throughput of succeed requests
sum(rate(kitex_server_throughput{statusCode="200"}[1m])) by (method)
- server latency pct99 of succeed requests
histogram_quantile(0.9,sum(rate(kitex_server_latency_us_bucket{status="succeed"}[1m]))by(le)) / 1000
For more information about kitex monitoring, please click monitoring