Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: pgdog-control
description: PgDog Control
type: application
version: 0.3.1
version: 0.3.2
appVersion: "f477677f"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ control:
cpu: 90.0
memory: 2048
server_connections: 100
checkout_timeouts: 1
slow_queries: true
incident_io:
api_key: inc_live_xxx
Expand All @@ -721,6 +722,7 @@ control:
| `thresholds.cpu` | CPU usage percentage. Must be between `0.0` and `100.0`, inclusive (float, optional). |
| `thresholds.memory` | Memory used, in megabytes (int, optional). |
| `thresholds.server_connections` | Number of open server connections (int, optional). |
| `thresholds.checkout_timeouts` | Checkout timeouts per second, averaged over the evaluation window and summed across running instances (int, optional). |
| `thresholds.slow_queries` | Create incidents for queries whose duration reaches `store.slow_queries_threshold` (bool, default `false`). |
| `incident_io.api_key` | incident.io API key with permission to create incidents. Missing `incident_io` disables the integration (string, optional). |

Expand Down
3 changes: 3 additions & 0 deletions templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ data:
{{- if hasKey . "server_connections" }}
server_connections = {{ .server_connections }}
{{- end }}
{{- if hasKey . "checkout_timeouts" }}
checkout_timeouts = {{ .checkout_timeouts }}
{{- end }}
{{- if hasKey . "slow_queries" }}
slow_queries = {{ .slow_queries }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ full_render=$(helm template test-release "$CHART_DIR" -f "$TEST_DIR/values-full.
grep -q '^ query_plans_limit = 75$' <<< "$full_render"
grep -q '^ slow_queries_threshold = 2500$' <<< "$full_render"
grep -q '^ slow_queries = true$' <<< "$full_render"
grep -q '^ checkout_timeouts = 1$' <<< "$full_render"

echo ""
echo "==> Verifying external Redis rendering..."
Expand Down
1 change: 1 addition & 0 deletions test/values-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ control:
cpu: 90.0
memory: 2048
server_connections: 100
checkout_timeouts: 1
slow_queries: true
incident_io:
api_key: incident-token
Expand Down
1 change: 1 addition & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ control:
# cpu: 90.0
# memory: 2048
# server_connections: 100
# checkout_timeouts: 1 # Timeouts/sec, averaged over the evaluation window across running instances.
# slow_queries: false
# incident_io:
# api_key: ""
Expand Down
Loading