Skip to content

doc-week: Add OTEL metrics guide #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

friendlymatthew
Copy link
Member

No description provided.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's find a way to make this available in docs.rs.

We could include it as a section in lib.rs docs or we could add a usage submodule which has no API symbols, just docs?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, I'll go and update lib.rs 👍

Comment on lines +270 to +278
## Using Metrics in Logfire Dashboards

Once your metrics are being exported to Logfire, you can create dashboards and alerts:

### 1. **View Metrics in Logfire**

- Navigate to your Logfire project dashboard
- Go to the ["Explore"](https://logfire.pydantic.dev/docs/guides/web-ui/explore/) view
- Run `select * from metrics` to view all incoming metrics from your application
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be really nice to have examples that matched some (or all of) our current built-in dashboards. In particular web frameworks, service and system metrics:

image

@friendlymatthew friendlymatthew force-pushed the friendlymatthew/metrics-guide branch from d01b805 to da44783 Compare June 24, 2025 19:59
@davidhewitt
Copy link
Contributor

See also #68 where I think this can live.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants