Skip to content

Latest commit

 

History

History

full-api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Autometrics Full API Example

This is a complete example of how to use autometrics with an API server built with axum, thiserror, and tokio.

Running the example

Note: You will need prometheus installed locally for the full experience.

This will start the server, generate some fake traffic, and run a local Prometheus instance that is configured to scrape the metrics from the server's /metrics endpoint.

cargo run -p example-full-api