-
Notifications
You must be signed in to change notification settings - Fork 890
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
Add postgresql metrics semantic conventions #2544
Conversation
specification/metrics/semantic_conventions/instrumentation/postgres.md
Outdated
Show resolved
Hide resolved
specification/metrics/semantic_conventions/instrumentation/postgres.md
Outdated
Show resolved
Hide resolved
specification/metrics/semantic_conventions/instrumentation/postgres.md
Outdated
Show resolved
Hide resolved
specification/metrics/semantic_conventions/instrumentation/postgres.md
Outdated
Show resolved
Hide resolved
specification/metrics/semantic_conventions/instrumentation/postgres.md
Outdated
Show resolved
Hide resolved
specification/metrics/semantic_conventions/instrumentation/postgres.md
Outdated
Show resolved
Hide resolved
Ping @djaglowski as the author/maintainer of the Postgresql receiver in Collector contrib. |
specification/metrics/semantic_conventions/instrumentation/postgres.md
Outdated
Show resolved
Hide resolved
| | | | | | | `table` | The schema name followed by the table name. | | ||
| | | | | | | `source` | The block read source type. | | ||
| | | | | | | | `heap_read`, `heap_hit`, `idx_read`, `idx_hit`, `toast_read`, `toast_hit`, `tidx_read`, `tidx_hit` | | ||
| db.postgresql.commits | Counter | Int64 | commits | `{commits}` | The number of commits. | `database` | The number of active connections. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about distributed transactions? Does Postgres SQL offer 2PC (two-phase commit)?
specification/metrics/semantic_conventions/instrumentation/postgres.md
Outdated
Show resolved
Hide resolved
@djaglowski you are the codeowner of this component in Collector, it would be great if you can review this PR. |
@dehaansa you are the author of this component in Collector, it would be great if you can review this PR. |
specification/metrics/semantic_conventions/instrumentation/postgres.md
Outdated
Show resolved
Hide resolved
specification/metrics/semantic_conventions/instrumentation/postgres.md
Outdated
Show resolved
Hide resolved
d0edc56
to
259b57f
Compare
specification/metrics/semantic_conventions/instrumentation/postgres.md
Outdated
Show resolved
Hide resolved
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
If I remember correctly in the Spec SIG meeting last week we discussed the topic of having semantic conventions for specific technologies in Otel spec and the conclusion was that we need some guidance around how widely applicable the conventions should be to have a place in Otel spec and whether we want specific technologies like Postgres or Mysql to have their conventions defined here. @carlosalberto I think you mentioned that you were going to file an issue for this (if I remember correctly, I may be wrong, maybe it wasn't you, it was someone else). Do we have the issue to track this? |
@carlosalberto can you please tell if this happened? |
@tigrannajaryan Issue #2610 was created to track / discuss this. |
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Added Postgres metrics from Postgres Metrics Receiver
All these are the original metrics/values, with the only change of including
db
as a prefix.Added
blocks_read
commits
db_size
backends
row.count
operation.count
rollbacks