mirror of
https://github.com/netdata/netdata.git
synced 2025-05-17 22:52:21 +00:00
postgres module: locks count fix (#4901)
This commit is contained in:
parent
f1e0ff8eba
commit
660b633b97
1 changed files with 2 additions and 1 deletions
|
@ -703,7 +703,8 @@ class Service(SimpleService):
|
|||
if row[metric] is not None:
|
||||
self.data[dimension_id] = int(row[metric])
|
||||
elif 'locks_count' in row:
|
||||
self.data[dimension_id] = row['locks_count'] if metric == row['mode'] else 0
|
||||
if metric == row['mode']:
|
||||
self.data[dimension_id] = row['locks_count']
|
||||
|
||||
|
||||
def discover_databases_(cursor, query):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue