This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
groups: | |
- name: example | |
rules: | |
# Alert for any cluster that has average CPU idle < 50% | |
- alert: HighUsage | |
expr: avg(irate(node_cpu_seconds_total{mode="idle"}[1m]) * 100) < 50 | |
for: 1m | |
annotations: | |
summary: "High usage on {{ $labels.instance }}" | |
description: "{{ $labels.instance }} has a average CPU idle (current value: {{ $value }}s)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# best practice: linux | |
nano ~/.pgpass | |
*:5432:*:username:password | |
chmod 0600 ~/.pgpass | |
# best practice: windows | |
edit %APPDATA%\postgresql\pgpass.conf | |
*:5432:*:username:password | |
# linux |