package
0.0.0-20220610093703-3be1cb674a51
Repository: https://github.com/ruang-guru/playground.git
Documentation: pkg.go.dev
# README
Simple web service for performance test
- run
go run main.go
to start
Docker version
- you can get the image using this command
docker pull fabiansyah/pt-server
Monitoring information
How to use
- change directory to monitoring
- run
docker-compose up -d
Grafana setting
-
go to
http://localhost:3000/
to access grafana -
go to configuration and add new data source
-
pick prometheus
-
for prometheus HTTP URL use
http://km-prometheus:9090
-
set scrape interval to
3s
-
create new panel and use this metric browser
sum(rate(http_request_count{}[5s])) by (response_code)
-
if nothing show up on the panel, change
5s
to something higher like6s-10s
-
don't forget to change time range to
5 minutes
Note
- check firewall rule or disable it so host.docker.internal will work
- scrape interval for prometheus (on prom and grafana)
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author