Skip to content
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

[Receiver/postgresql] Exclusive locks are not visible. #36087

Open
rushat-true-beacon opened this issue Oct 30, 2024 · 3 comments
Open

[Receiver/postgresql] Exclusive locks are not visible. #36087

rushat-true-beacon opened this issue Oct 30, 2024 · 3 comments
Labels
bug Something isn't working needs triage New item requiring triage receiver/postgresql

Comments

@rushat-true-beacon
Copy link

rushat-true-beacon commented Oct 30, 2024

Component(s)

receiver/postgresql

What happened?

Description

getDatabaseLocks() does not display exclusive locks.

Steps to Reproduce

  1. Connect otel to postgresql
  2. Enable the optional metric postgresql.database.locks
  3. Login to postgresql and create an exclusive lock - BEGIN; LOCK TableName;
  4. If you run SELECT * FROM pg_locks; you can see an exclusive lock.
  5. But the query here does not show exclusive locks.

Expected Result

See lock mode of ExclusiveLock.

Actual Result

We can only see AccessShareLock.

Collector version

v0.112.0

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@rushat-true-beacon rushat-true-beacon added bug Something isn't working needs triage New item requiring triage labels Oct 30, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@rushat-true-beacon
Copy link
Author

Let me know if you need any additional info

@djaglowski
Copy link
Member

@rushat-true-beacon can you submit a PR demonstrating the correct query?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage New item requiring triage receiver/postgresql
Projects
None yet
Development

No branches or pull requests

2 participants