An open source micro framework for observability
Autometrics makes it easy to instrument any function with the most useful metrics and generates powerful queries to help you identify and debug issues in production.
Function-level metrics
Use Autometrics decorators, and wrappers to quickly instrument any function in your code. Autometrics will create the most important metrics for each function and record them in a uniform and Prometheus-compatible format.
Accurate and actionable alerts
The Autometrics framework includes first-class primitives for working with Service Level Objectives and makes it easy for any developer to adopt a powerful alerting workflow.
Firing
My API SLO
24 hours ago
autometrics-success-rate-95
Get actionable alerts when things go wrong
Quickly spot misbehaving functions and put out fires.
25
20
15
10
05
00
Alert firing
13:00
14:30
15:00
15:30
16:00
13:33
14:00
Create alerts based on your SLO's
Set up alerting workflows to get notified in case you’re at risk of breaching your SLOs.
# Create an objective for low latency
API_SLO_LOW_LATENCY = Objective(
"My API SLO", latency=(
ObjectiveLatency.Ms250, ObjectivePercentile.P99))
Group them into Service Level Objectives
Define latency and error rate goals with SLO’s that your API needs to meet.
@autometrics
def say_hello():
return "hello world"
Annotate functions in your code to instrument them.
Automatically track the most important metrics such as response time and error rate.
Meet Explorer,
your debug companion
Visualize and investigate the performance of your functions, service level objectives and alerts.
Additional capabilities to supercharge your debugging.
Useful metrics only
The Autometrics macro or decorator adds useful metrics to any function without you having to think about what is worth tracking.
Hassle-free PromQL
Generates powerful Prometheus queries to help quickly identify and debug issues in production, straight from the IDE with the VSCode extension.
Define SLO's in source code
Developers can easily add Service-Level Objectives and get powerful alerts for errors and latency issues.
Spot faulty commits and deploys
Tracks your application's version to help identify commits that introduced errors or latency.
Track it in CI
Autometrics ships a GitHub Action that can help you track how well-instrumented your code is and how new commits will impact your observability.
Dashboards out of the box
Visualize your Autometrics data in Grafana dashboards with zero config.
Join the community
Create your first pullrequest on GitHub, help flesh out the roadmap or discuss Autometrics on Discord.