mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 02:55:51 +00:00
security: prevent user settings from being committed to repository
- Add data/alert-rules.json to .gitignore to prevent custom alerts from being tracked - Add data/custom-thresholds.json to .gitignore to prevent user threshold configs from being tracked - Remove previously committed user-specific alert rules and threshold configurations - Create template files showing expected structure without sensitive user data - Ensures user privacy and prevents accidental exposure of monitoring configurations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -22,6 +22,8 @@ pids
|
||||
*.seed
|
||||
*.pid.lock
|
||||
data/acknowledgements.json
|
||||
data/alert-rules.json
|
||||
data/custom-thresholds.json
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
{
|
||||
"compound_1749159848654_h011bw96f": {
|
||||
"id": "compound_1749159848654_h011bw96f",
|
||||
"condition": "greater_than",
|
||||
"duration": 5000,
|
||||
"severity": "warning",
|
||||
"enabled": true,
|
||||
"tags": [],
|
||||
"group": "compound_threshold",
|
||||
"escalationTime": 900000,
|
||||
"autoResolve": false,
|
||||
"suppressionTime": 300000,
|
||||
"notificationChannels": [
|
||||
"default"
|
||||
],
|
||||
"type": "compound_threshold",
|
||||
"name": "Alert for CPU: 2%",
|
||||
"targetType": "all",
|
||||
"specificTarget": "",
|
||||
"thresholds": [
|
||||
{
|
||||
"type": "cpu",
|
||||
"operator": ">",
|
||||
"value": 2
|
||||
}
|
||||
],
|
||||
"sendEmail": true,
|
||||
"sendWebhook": false,
|
||||
"createdAt": 1749159848648
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"_readme": "This is a template file. Custom alert rules will be stored in alert-rules.json (not tracked by git)",
|
||||
"_example": {
|
||||
"compound_example_123": {
|
||||
"id": "compound_example_123",
|
||||
"condition": "greater_than",
|
||||
"duration": 5000,
|
||||
"severity": "warning",
|
||||
"enabled": true,
|
||||
"tags": [],
|
||||
"group": "compound_threshold",
|
||||
"escalationTime": 900000,
|
||||
"autoResolve": false,
|
||||
"suppressionTime": 300000,
|
||||
"notificationChannels": [
|
||||
"default"
|
||||
],
|
||||
"type": "compound_threshold",
|
||||
"name": "Example Alert",
|
||||
"targetType": "all",
|
||||
"specificTarget": "",
|
||||
"thresholds": [
|
||||
{
|
||||
"type": "cpu",
|
||||
"operator": ">",
|
||||
"value": 80
|
||||
}
|
||||
],
|
||||
"sendEmail": true,
|
||||
"sendWebhook": false,
|
||||
"createdAt": 1749159848648
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"primary:103": {
|
||||
"endpointId": "primary",
|
||||
"nodeId": "auto-detect",
|
||||
"vmid": "103",
|
||||
"thresholds": {
|
||||
"disk": {
|
||||
"warning": 70,
|
||||
"critical": 80
|
||||
}
|
||||
},
|
||||
"enabled": true,
|
||||
"createdAt": "2025-06-01T19:50:34.784Z",
|
||||
"updatedAt": "2025-06-01T19:50:34.784Z"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"_readme": "This is a template file. Custom threshold configurations will be stored in custom-thresholds.json (not tracked by git)",
|
||||
"_example": {
|
||||
"endpointId:vmid": {
|
||||
"endpointId": "primary",
|
||||
"nodeId": "auto-detect",
|
||||
"vmid": "103",
|
||||
"thresholds": {
|
||||
"cpu": {
|
||||
"warning": 80,
|
||||
"critical": 90
|
||||
},
|
||||
"memory": {
|
||||
"warning": 85,
|
||||
"critical": 95
|
||||
},
|
||||
"disk": {
|
||||
"warning": 70,
|
||||
"critical": 80
|
||||
}
|
||||
},
|
||||
"enabled": true,
|
||||
"createdAt": "2025-06-01T19:50:34.784Z",
|
||||
"updatedAt": "2025-06-01T19:50:34.784Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user