directory
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Dec 23, 2024
License: Apache-2.0
Opens a new window with license information.
README
¶
Prometheus monitoring for Kitex
English | 中文
Usage Example
Simple mode
Server
See simple/server
Client
See simple/client
Custom mode
Server
See custom/server
Client
See custom/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 simple/server/main.go
-
run Kitex client
go run simple/client/main.go
-
visit http://localhost:3000
, the account password is admin
by default
-
configure Prometheus data sources
Connection
Add new connection
- 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
¶
custom
|
|
|
|
|
|
simple
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.