13 lines
539 B
TOML
13 lines
539 B
TOML
[sessions.Current.table]
|
|
headers = ["users", "count sessions"]
|
|
query = "select usename, count(usename) from pg_stat_activity where usename is not null"
|
|
[sessions.Query.table]
|
|
headers = ["query", "username"]
|
|
query = "SELECT query ,usename FROM pg_stat_activity where query is not null and usename is not null and state != 'idle';"
|
|
[sessions.Limit.guage]
|
|
headers = ["used", "total"]
|
|
q1 = "SHOW max_connections"
|
|
q2 = "SELECT sum(numbackends) FROM pg_stat_database"
|
|
[sessions.identification.box]
|
|
widget = "box"
|
|
q = "SELECT current_database();" |