directory
Version:
v0.0.0-...-ce3419d
Opens a new window with list of versions in this module.
Published: Dec 28, 2022
License: Apache-2.0
Opens a new window with license information.
README
¶
Prometheus monitoring for Kitex
Usage Example
Server
See server
Client
See client
HOW-TO-RUN
-
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 server/main.go
-
run Kitex client
go run client/main.go
-
visit http://localhost:3000
, the account password is admin
by default
-
configure Prometheus data sources
Configuration
Data Source
Add data source
- Select
Prometheus
and fill the URL with http://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
Directories
¶
Click to show internal directories.
Click to hide internal directories.