Skip to content

Commit b13e15b

Browse files
committed
apps/homeassistant: include fix from prometheus-community/postgres_exporter#635
1 parent 3c52b07 commit b13e15b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

apps/homeassistant/jsonnet/jsonnetfile.lock.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"subdir": "postgres_mixin"
3939
}
4040
},
41-
"version": "92bdb8755de886b2366de245e559538030ba3668",
42-
"sum": "MVorPR3kqTL+Iqcm/+fM2rb1smwYb476M8benM1MkDI="
41+
"version": "0bacea243a6889e4941c6c89c17587043fa99de6",
42+
"sum": "H+okh0mBSyJSyvkCadCXck1ouZUhdokidsoDGA9h25c="
4343
},
4444
{
4545
"source": {
@@ -48,7 +48,7 @@
4848
"subdir": "apps/esphome"
4949
}
5050
},
51-
"version": "ae17eb87b39de538be8d9e707633727ff5620869",
51+
"version": "f84f5e2473d2f4bad278b82e07fa017471563059",
5252
"sum": "A0S+dWl7+3qIxDmlQe7j4rqtI1CZH40jLUcjkfivwq8="
5353
},
5454
{
@@ -58,7 +58,7 @@
5858
"subdir": "apps/homeassistant"
5959
}
6060
},
61-
"version": "ae17eb87b39de538be8d9e707633727ff5620869",
61+
"version": "f84f5e2473d2f4bad278b82e07fa017471563059",
6262
"sum": "ffOZGIvSHTjJmH/Ql5Pq+HmBIB+HAINTFG1UzSts3yo="
6363
},
6464
{
@@ -68,7 +68,7 @@
6868
"subdir": "utils"
6969
}
7070
},
71-
"version": "ae17eb87b39de538be8d9e707633727ff5620869",
71+
"version": "f84f5e2473d2f4bad278b82e07fa017471563059",
7272
"sum": "fpU9+wurrgNrnBmnPHYehqp3R5TqVWVdg8s8akBRmYM="
7373
}
7474
],

apps/homeassistant/manifests/timescaledb/prometheusRule.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ spec:
7979
summary: 'PostgreSQL high number of slow on {{ $labels.cluster }} for database
8080
{{ $labels.datname }} '
8181
expr: |
82-
avg(
83-
rate by (datname) (
82+
avg by (datname) (
83+
rate (
8484
pg_stat_activity_max_tx_duration{datname!~"template.*",job="timescaledb", namespace="homeassistant"}[2m]
8585
)
8686
) > 2 * 60

0 commit comments

Comments
 (0)