salvovitale / rust-web-prometheus-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web-server with Prometheus instrumentation project example

Run the project

cargo run

or if you want to see debus logs

RUST_LOG=debug cargo run

check the metrics endpoint

curl http://127.0.0.1:3031/metrics

check the some endpoint

curl http://127.0.0.1:3031/some

connect to the web-socket endpoint using a tool like websocat

websocat -t ws://127.0.0.1:3031/ws/my-client-id

About


Languages

Language:Rust 100.0%