An open source micro framework for observability

An open source framework that makes it easy to understand the error rate, response time, and production usage of any function in your code.

Functions

SLOs

Alerts

app

Last 3 hours

EXPLORER

authentication_user_mgmt

create_user

login

logout

register

forgot_password

change_password

delete_user

view_user

content_mgmt

analytics

search

filtering

payment_billing

messaging

Live metrics for your autometrics function

create_user

Last updated:

17:21:50

Request rate

0.0667

calls/sec

Latest

Error ratio

13.04%

Latest

Latency

0.005

seconds

Latest

Concurrency

2

Latest

Request rate

This shows the 99th and 95th percentile latency or response time for the given function. For example, if the 99th percentile latency is 500 milliseconds, that means that 99% of calls to the function are handled within 500ms or less.

Graph

PromQL query

1.9268

calls/sec

Average

0.0667

calls/sec

Latest

Export

45

40

35

30

25

20

15

10

05

00

13:35

32.6241 calls/sec

13:00

13:30

14:00

14:30

15:00

15:30

16:00

function_calls_duration: channel: subscriber_removed, instance: localhost:3030, job: my-app

// check out the sample app on GitHub: 
// https://github.com/autometrics-dev/gettingstarted-am-rs

#[autometrics]
fn create_user(
	db: &Database,
	id: u32,
	username: &str,
	email: &str
) {
    let user = User {
        id,
        username: username.to_string(),
        email: email.to_string(),
    };
​
    let mut db = db.lock().unwrap();
    db.insert(id, user);
}

> cargo add autometrics or clone the sample app

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20



app.rs

app.ts

app.py

app.go

# spin up a local Prometheus instance and the UI

# scrape your app that listens on port :3000
am start :3000

Now sampling the following endpoints for metrics: http://localhost:3000/metrics Using Prometheus version: 2.45.0 Starting prometheus Explorer eindpoint: http://127.0.0.1:6789 Prometheus endpoint: http://127.0.0.1:9090/prometheus

# spin up a local Prometheus instance and the UI

# scrape your app that listens on port :3000
am start :3000

Now sampling the following endpoints for metrics: http://localhost:3000/metrics Using Prometheus version: 2.45.0 Starting prometheus Explorer eindpoint: http://127.0.0.1:6789 Prometheus endpoint: http://127.0.0.1:9090/prometheus

Ready to go? Start debugging together.

Connect to your infrastructure in minutes and you’re all set-up.

Newsletter

We’d love to share our love for engineering with you in our monthly newsletter.

Newsletter

We’d love to share our love for engineering with you in our monthly newsletter.

Newsletter

We’d love to share our love for engineering with you in our monthly newsletter.

Fiberplane B.V. © 2023