Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Separate notification server errors from rejections

Pulse Testa506cdde8ba1
diff --git a/docs/PRIVACY.md b/docs/PRIVACY.md
index cee11e11b7..a9fe5efb34 100644
--- a/docs/PRIVACY.md
+++ b/docs/PRIVACY.md
@@ -37,7 +37,7 @@ Every field is listed below with the reason it exists. Nothing else is included
| Field | Example | Purpose |
|-------|---------|---------|
-| Schema version | `14` | Identify the exact payload contract so old and new signals are not mixed silently |
+| Schema version | `15` | Identify the exact payload contract so old and new signals are not mixed silently |
| Sent at | `2026-07-23T08:30:00Z` | Date the individual heartbeat without sending a history of client activity |
| Install ID | `a1b2c3d4-...` | Distinguish active installations within one rotation window without tying telemetry to an account or person |
| Version | `6.0.0-rc.1` | Track the canonical release identity currently deployed |
@@ -129,7 +129,8 @@ Every field is listed below with the reason it exists. Nothing else is included
| Notification failures connectivity 7d (schema v5) | `2` | Count terminal failures classified locally as DNS, timeout, or connection failures without sending addresses, hosts, or raw errors |
| Notification failures TLS 7d (schema v5) | `0` | Count terminal failures classified locally as certificate or TLS failures without sending certificates, hostnames, or raw errors |
| Notification failures configuration 7d (schema v5) | `0` | Count terminal failures classified locally as missing or invalid destination configuration without sending configuration values |
-| Notification failures rejected 7d (schema v5) | `0` | Count terminal failures classified locally as destination request or payload rejection without sending response or payload content |
+| Notification failures rejected 7d (schema v5; new schema v15 classifications are HTTP 4xx) | `0` | Count terminal failures classified locally as destination request or payload rejection without sending response or payload content; schema v5-v14 included destination HTTP 5xx responses, and those locally retained rows can remain in this rolling count for up to seven days after upgrade |
+| Notification failures server error 7d (schema v15) | `0` | Count terminal failures classified locally as destination HTTP 5xx server errors without sending response content, destination identity, or provider identity |
| Notification failures unknown 7d (schema v5) | `0` | Count terminal failures that do not match another fixed class without sending raw errors |
| Alert AI enabled | `true`/`false` | See whether AI analysis on alert firing is switched on, without sending alert content, resource identifiers, or analysis text |
| Relay enabled | `true`/`false` | See whether remote-access features are being used |
@@ -254,6 +255,15 @@ configuration, destination rejection, and unknown failures. Classification is
performed locally; raw error text and destination/provider identity are never
included in the payload.
+The current telemetry contract is schema version 15. Schema v15 adds an eighth
+fixed notification terminal-failure counter for destination HTTP 5xx server
+errors. From v15 onward,
+new terminal failures enter `notification_failures_rejected_7d` only for HTTP
+4xx destination or payload rejections. Locally retained v5-v14 rows may still
+include HTTP 5xx responses for up to seven days after upgrade; first-heartbeat
+rolling counters therefore remain baseline-only. The new counter remains an
+aggregate count and adds no destination, provider, response, or error content.
+
Telemetry schema v13 adds a direct local UI/API service observation. Pulse
checks its own bound listener, `/api/health`, the UI document, and the local
frontend assets referenced by that document. It retains only the current and
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index 709a1665fb..e229fa0ce0 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -10122,3 +10122,17 @@ reported as success. Handler failure proofs live in
`internal/api/alerting/notifications_test.go`, and
`TestContract_NotificationDestinationWritesPublishOnlyAfterPersistence` pins
the API publication ordering.
+
+### Notification failure-class and telemetry schema v15 projection
+
+The notification health and delivery-log APIs admit the closed local failure
+class `server_error` for destination HTTP 5xx responses. Existing clients must
+continue treating unknown future class strings defensively. The telemetry
+preview adds the required numeric field
+`notification_failures_server_error_7d` and advances `schema_version` to `15`;
+the receiver persists the same field and the adoption report compares it only
+inside schema-aware version cohorts. New schema v15 classifications enter
+`notification_failures_rejected_7d` only for HTTP 4xx responses. Retained
+pre-upgrade rows can preserve the schema v5-v14 4xx-or-5xx meaning for up to
+seven days, so the first rolling snapshot is a baseline rather than attributed
+same-version activity.
diff --git a/docs/release-control/v6/internal/subsystems/notifications.md b/docs/release-control/v6/internal/subsystems/notifications.md
index 7b734eb577..4c3c4c0e6c 100644
--- a/docs/release-control/v6/internal/subsystems/notifications.md
+++ b/docs/release-control/v6/internal/subsystems/notifications.md
@@ -505,3 +505,18 @@ untouched so configuration drift cannot masquerade as successful paging.
Destination IDs never contain endpoint URLs, credentials, or Apprise targets.
All retry, queue, receipt, grouping, and recovery semantics remain owned by the
selected notification job after routing.
+
+### Terminal destination failures distinguish rejection from server failure
+
+The closed notification failure-class contract uses `rejected` for newly
+recorded destination HTTP 4xx responses after the dedicated authentication and
+rate-limit classes, and `server_error` for newly recorded HTTP 5xx responses.
+Explicit HTTP 5xx status evidence is classified before generic timeout wording
+so a 504 remains a destination server failure rather than connectivity.
+Pre-upgrade audit rows retain their original class until retention removes them.
+Both classes are recorded only on local audit rows and exported, when telemetry
+is enabled, as identity-free aggregate terminal failure counts; raw response
+content and destination identity never leave Pulse.
+
+`internal/notifications/queue_test.go` pins the local classification order and
+the terminal-only retry/dead-letter accounting boundary.
diff --git a/docs/release-control/v6/internal/subsystems/security-privacy.md b/docs/release-control/v6/internal/subsystems/security-privacy.md
index 4ed4dd434a..8fb4290954 100644
--- a/docs/release-control/v6/internal/subsystems/security-privacy.md
+++ b/docs/release-control/v6/internal/subsystems/security-privacy.md
@@ -2455,6 +2455,20 @@ claimed revocation.
`internal/monitoring/monitor_host_agent_removal_lifecycle_test.go` proves both
commit and rollback outcomes.
+### Schema v15 separates destination server failures from rejections
+
+Telemetry schema v15 adds only the bounded integer field
+`notification_failures_server_error_7d`. It counts terminal notification jobs
+whose locally classified response was HTTP 5xx. New schema v15 terminal
+failures enter `notification_failures_rejected_7d` only for HTTP 4xx responses
+after the dedicated authentication and rate-limit buckets. Retained pre-upgrade
+rows can preserve the v5-v14 mixed 4xx/5xx meaning for up to seven days, so
+first heartbeats are baseline-only and reports must use consecutive
+same-version deltas. No raw error, response, destination, provider,
+notification, alert, tenant, account, or infrastructure identity is sent.
+Sender, receiver, local preview, adoption report, and the public privacy copies
+must remain in lockstep.
+
### Deploy enrollment never exposes an uncommitted credential
The deploy bootstrap secret is single-use only at the durable API-token commit
diff --git a/frontend-modern/public/docs/PRIVACY.md b/frontend-modern/public/docs/PRIVACY.md
index cee11e11b7..a9fe5efb34 100644
--- a/frontend-modern/public/docs/PRIVACY.md
+++ b/frontend-modern/public/docs/PRIVACY.md
@@ -37,7 +37,7 @@ Every field is listed below with the reason it exists. Nothing else is included
| Field | Example | Purpose |
|-------|---------|---------|
-| Schema version | `14` | Identify the exact payload contract so old and new signals are not mixed silently |
+| Schema version | `15` | Identify the exact payload contract so old and new signals are not mixed silently |
| Sent at | `2026-07-23T08:30:00Z` | Date the individual heartbeat without sending a history of client activity |
| Install ID | `a1b2c3d4-...` | Distinguish active installations within one rotation window without tying telemetry to an account or person |
| Version | `6.0.0-rc.1` | Track the canonical release identity currently deployed |
@@ -129,7 +129,8 @@ Every field is listed below with the reason it exists. Nothing else is included
| Notification failures connectivity 7d (schema v5) | `2` | Count terminal failures classified locally as DNS, timeout, or connection failures without sending addresses, hosts, or raw errors |
| Notification failures TLS 7d (schema v5) | `0` | Count terminal failures classified locally as certificate or TLS failures without sending certificates, hostnames, or raw errors |
| Notification failures configuration 7d (schema v5) | `0` | Count terminal failures classified locally as missing or invalid destination configuration without sending configuration values |
-| Notification failures rejected 7d (schema v5) | `0` | Count terminal failures classified locally as destination request or payload rejection without sending response or payload content |
+| Notification failures rejected 7d (schema v5; new schema v15 classifications are HTTP 4xx) | `0` | Count terminal failures classified locally as destination request or payload rejection without sending response or payload content; schema v5-v14 included destination HTTP 5xx responses, and those locally retained rows can remain in this rolling count for up to seven days after upgrade |
+| Notification failures server error 7d (schema v15) | `0` | Count terminal failures classified locally as destination HTTP 5xx server errors without sending response content, destination identity, or provider identity |
| Notification failures unknown 7d (schema v5) | `0` | Count terminal failures that do not match another fixed class without sending raw errors |
| Alert AI enabled | `true`/`false` | See whether AI analysis on alert firing is switched on, without sending alert content, resource identifiers, or analysis text |
| Relay enabled | `true`/`false` | See whether remote-access features are being used |
@@ -254,6 +255,15 @@ configuration, destination rejection, and unknown failures. Classification is
performed locally; raw error text and destination/provider identity are never
included in the payload.
+The current telemetry contract is schema version 15. Schema v15 adds an eighth
+fixed notification terminal-failure counter for destination HTTP 5xx server
+errors. From v15 onward,
+new terminal failures enter `notification_failures_rejected_7d` only for HTTP
+4xx destination or payload rejections. Locally retained v5-v14 rows may still
+include HTTP 5xx responses for up to seven days after upgrade; first-heartbeat
+rolling counters therefore remain baseline-only. The new counter remains an
+aggregate count and adds no destination, provider, response, or error content.
+
Telemetry schema v13 adds a direct local UI/API service observation. Pulse
checks its own bound listener, `/api/health`, the UI document, and the local
frontend assets referenced by that document. It retains only the current and
diff --git a/frontend-modern/src/api/__tests__/notifications.test.ts b/frontend-modern/src/api/__tests__/notifications.test.ts
index fae76d7d8a..8e4216a162 100644
--- a/frontend-modern/src/api/__tests__/notifications.test.ts
+++ b/frontend-modern/src/api/__tests__/notifications.test.ts
@@ -163,6 +163,7 @@ describe('NotificationsAPI', () => {
tls: 0,
configuration: 0,
rejected: 0,
+ server_error: 0,
unknown: 0,
},
failure_classes_available: true,
@@ -197,6 +198,7 @@ describe('NotificationsAPI', () => {
tls: 0,
configuration: 0,
rejected: 0,
+ server_error: 0,
unknown: 0,
},
failureClassesAvailable: true,
diff --git a/frontend-modern/src/api/__tests__/settings.test.ts b/frontend-modern/src/api/__tests__/settings.test.ts
index 56b601bc37..7e5ac3dc4d 100644
--- a/frontend-modern/src/api/__tests__/settings.test.ts
+++ b/frontend-modern/src/api/__tests__/settings.test.ts
@@ -124,6 +124,7 @@ const mockTelemetryPreviewPayload = {
notification_failures_tls_7d: 0,
notification_failures_configuration_7d: 0,
notification_failures_rejected_7d: 0,
+ notification_failures_server_error_7d: 0,
notification_failures_unknown_7d: 0,
pulse_intelligence_loop_configured: false,
pulse_intelligence_loop_active_30d: false,
diff --git a/frontend-modern/src/api/notifications.ts b/frontend-modern/src/api/notifications.ts
index 74d3a5a0c8..b776edd3e7 100644
--- a/frontend-modern/src/api/notifications.ts
+++ b/frontend-modern/src/api/notifications.ts
@@ -107,6 +107,7 @@ export type NotificationFailureClass =
| 'tls'
| 'configuration'
| 'rejected'
+ | 'server_error'
| 'unknown';
export type NotificationFailureClassCounts = Record<NotificationFailureClass, number>;
@@ -194,6 +195,7 @@ const notificationFailureClasses: NotificationFailureClass[] = [
'tls',
'configuration',
'rejected',
+ 'server_error',
'unknown',
];
@@ -338,6 +340,7 @@ export class NotificationsAPI {
tls: 0,
configuration: 0,
rejected: 0,
+ server_error: 0,
unknown: 0,
} satisfies NotificationFailureClassCounts),
failureClassesAvailable,
diff --git a/frontend-modern/src/api/settings.ts b/frontend-modern/src/api/settings.ts
index 69ea4cef25..583d1bd395 100644
--- a/frontend-modern/src/api/settings.ts
+++ b/frontend-modern/src/api/settings.ts
@@ -126,6 +126,7 @@ export interface TelemetryPingPreview {
notification_failures_tls_7d: number;
notification_failures_configuration_7d: number;
notification_failures_rejected_7d: number;
+ notification_failures_server_error_7d: number;
notification_failures_unknown_7d: number;
pulse_intelligence_loop_configured: boolean;
pulse_intelligence_loop_active_30d: boolean;
diff --git a/frontend-modern/src/components/Settings/__tests__/useSystemSettingsState.test.ts b/frontend-modern/src/components/Settings/__tests__/useSystemSettingsState.test.ts
index 44869d371a..00dd2ccd9e 100644
--- a/frontend-modern/src/components/Settings/__tests__/useSystemSettingsState.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/useSystemSettingsState.test.ts
@@ -130,6 +130,7 @@ const buildTelemetryPreviewPayload = (
notification_failures_tls_7d: 0,
notification_failures_configuration_7d: 0,
notification_failures_rejected_7d: 0,
+ notification_failures_server_error_7d: 0,
notification_failures_unknown_7d: 0,
pulse_intelligence_loop_configured: false,
pulse_intelligence_loop_active_30d: false,
diff --git a/frontend-modern/src/features/alerts/AlertDeliveryHealthCard.test.tsx b/frontend-modern/src/features/alerts/AlertDeliveryHealthCard.test.tsx
index c6d216792b..af282a450b 100644
--- a/frontend-modern/src/features/alerts/AlertDeliveryHealthCard.test.tsx
+++ b/frontend-modern/src/features/alerts/AlertDeliveryHealthCard.test.tsx
@@ -27,6 +27,7 @@ const degradedHealth: NotificationQueueHealth = {
tls: 0,
configuration: 0,
rejected: 0,
+ server_error: 0,
unknown: 0,
},
failureClassesAvailable: true,
diff --git a/frontend-modern/src/features/alerts/__tests__/useAlertDestinationsTabState.test.tsx b/frontend-modern/src/features/alerts/__tests__/useAlertDestinationsTabState.test.tsx
index 34bc2ecf47..47aac9e2f7 100644
--- a/frontend-modern/src/features/alerts/__tests__/useAlertDestinationsTabState.test.tsx
+++ b/frontend-modern/src/features/alerts/__tests__/useAlertDestinationsTabState.test.tsx
@@ -142,6 +142,7 @@ describe('useAlertDestinationsTabState', () => {
tls: 0,
configuration: 0,
rejected: 0,
+ server_error: 0,
unknown: 0,
},
failureClassesAvailable: true,
@@ -310,6 +311,7 @@ describe('useAlertDestinationsTabState', () => {
connectivity: 0,
rate_limited: 0,
rejected: 0,
+ server_error: 0,
tls: 0,
unknown: 0,
},
diff --git a/internal/monitoring/reload.go b/internal/monitoring/reload.go
index 7d6c9120a0..22426f6415 100644
--- a/internal/monitoring/reload.go
+++ b/internal/monitoring/reload.go
@@ -53,6 +53,7 @@ type InstallSnapshotCounts struct {
NotificationFailuresTLS7d int
NotificationFailuresConfiguration7d int
NotificationFailuresRejected7d int
+ NotificationFailuresServerError7d int
NotificationFailuresUnknown7d int
AlertQuality alerts.AlertQualitySnapshot
}
@@ -305,6 +306,7 @@ func accumulateInstallOutcomeCounts(counts *InstallSnapshotCounts, monitor *Moni
counts.NotificationFailuresTLS7d += stats.FailureClasses.TLS
counts.NotificationFailuresConfiguration7d += stats.FailureClasses.Configuration
counts.NotificationFailuresRejected7d += stats.FailureClasses.Rejected
+ counts.NotificationFailuresServerError7d += stats.FailureClasses.ServerError
counts.NotificationFailuresUnknown7d += stats.FailureClasses.Unknown
}
}
diff --git a/internal/notifications/queue.go b/internal/notifications/queue.go
index a903b2a14b..0620113211 100644
--- a/internal/notifications/queue.go
+++ b/internal/notifications/queue.go
@@ -59,6 +59,7 @@ const (
NotificationFailureTLS NotificationFailureClass = "tls"
NotificationFailureConfiguration NotificationFailureClass = "configuration"
NotificationFailureRejected NotificationFailureClass = "rejected"
+ NotificationFailureServerError NotificationFailureClass = "server_error"
NotificationFailureUnknown NotificationFailureClass = "unknown"
)
@@ -70,6 +71,7 @@ type NotificationFailureClassCounts struct {
TLS int
Configuration int
Rejected int
+ ServerError int
Unknown int
}
@@ -81,6 +83,7 @@ func (counts NotificationFailureClassCounts) AsMap() map[string]int {
string(NotificationFailureTLS): counts.TLS,
string(NotificationFailureConfiguration): counts.Configuration,
string(NotificationFailureRejected): counts.Rejected,
+ string(NotificationFailureServerError): counts.ServerError,
string(NotificationFailureUnknown): counts.Unknown,
}
}
@@ -108,6 +111,11 @@ func ClassifyNotificationFailure(errorMessage string) NotificationFailureClass {
return NotificationFailureAuthentication
case containsAny("rate limit", "too many requests", "status 429", "http 429"):
return NotificationFailureRateLimited
+ case containsAny(
+ "internal server error", "bad gateway", "service unavailable",
+ "gateway timeout", "status 5", "http 5",
+ ):
+ return NotificationFailureServerError
case containsAny(
"x509", "certificate", "tls", "ssl", "starttls",
):
@@ -131,7 +139,7 @@ func ClassifyNotificationFailure(errorMessage string) NotificationFailureClass {
"status 400", "http 400", "status 404", "http 404",
"status 405", "http 405", "status 410", "http 410",
"status 413", "http 413", "status 415", "http 415",
- "status 422", "http 422", "status 4", "http 4", "status 5", "http 5",
+ "status 422", "http 422", "status 4", "http 4",
):
return NotificationFailureRejected
default:
@@ -1577,10 +1585,11 @@ func (nq *NotificationQueue) GetTelemetryStats(since time.Time) (TelemetryStats,
COALESCE(SUM(CASE WHEN success = 0 AND status IN ('failed', 'dlq') AND failure_class = 'tls' THEN 1 ELSE 0 END), 0),
COALESCE(SUM(CASE WHEN success = 0 AND status IN ('failed', 'dlq') AND failure_class = 'configuration' THEN 1 ELSE 0 END), 0),
COALESCE(SUM(CASE WHEN success = 0 AND status IN ('failed', 'dlq') AND failure_class = 'rejected' THEN 1 ELSE 0 END), 0),
+ COALESCE(SUM(CASE WHEN success = 0 AND status IN ('failed', 'dlq') AND failure_class = 'server_error' THEN 1 ELSE 0 END), 0),
COALESCE(SUM(CASE
WHEN success = 0
AND status IN ('failed', 'dlq')
- AND COALESCE(failure_class, '') NOT IN ('authentication', 'rate_limited', 'connectivity', 'tls', 'configuration', 'rejected')
+ AND COALESCE(failure_class, '') NOT IN ('authentication', 'rate_limited', 'connectivity', 'tls', 'configuration', 'rejected', 'server_error')
THEN 1 ELSE 0
END), 0)
FROM notification_audit
@@ -1595,6 +1604,7 @@ func (nq *NotificationQueue) GetTelemetryStats(since time.Time) (TelemetryStats,
&stats.FailureClasses.TLS,
&stats.FailureClasses.Configuration,
&stats.FailureClasses.Rejected,
+ &stats.FailureClasses.ServerError,
&stats.FailureClasses.Unknown,
)
if err != nil {
diff --git a/internal/notifications/queue_test.go b/internal/notifications/queue_test.go
index 163287bcfb..a86dcf3afb 100644
--- a/internal/notifications/queue_test.go
+++ b/internal/notifications/queue_test.go
@@ -1551,6 +1551,8 @@ func TestClassifyNotificationFailureUsesBoundedPrivacySafeBuckets(t *testing.T)
{"dial tcp 10.0.0.1:443: i/o timeout", NotificationFailureConnectivity},
{"apprise server URL is not configured", NotificationFailureConfiguration},
{"webhook returned status 413: Payload Too Large", NotificationFailureRejected},
+ {"webhook returned status 500: Internal Server Error", NotificationFailureServerError},
+ {"webhook returned HTTP 504: Gateway Timeout", NotificationFailureServerError},
{"provider-specific secret detail", NotificationFailureUnknown},
}
@@ -1573,6 +1575,7 @@ func TestGetTelemetryStatsClassifiesTerminalFailuresOnly(t *testing.T) {
{ID: "auth-dlq", Type: "webhook", Status: QueueStatusDLQ, Attempts: 3, Config: []byte(`{}`), CreatedAt: now},
{ID: "rate-retry", Type: "webhook", Status: QueueStatusPending, Attempts: 1, Config: []byte(`{}`), CreatedAt: now},
{ID: "tls-failed", Type: "email", Status: QueueStatusFailed, Attempts: 3, Config: []byte(`{}`), CreatedAt: now},
+ {ID: "server-error-dlq", Type: "webhook", Status: QueueStatusDLQ, Attempts: 3, Config: []byte(`{}`), CreatedAt: now},
}
for _, entry := range entries {
status := entry.Status
@@ -1591,16 +1594,20 @@ func TestGetTelemetryStatsClassifiesTerminalFailuresOnly(t *testing.T) {
if err := nq.RecordAudit(entries[2], false, "x509 certificate failure"); err != nil {
t.Fatalf("record TLS audit: %v", err)
}
+ if err := nq.RecordAudit(entries[3], false, "HTTP 503 Service Unavailable"); err != nil {
+ t.Fatalf("record server-error audit: %v", err)
+ }
stats, err := nq.GetTelemetryStats(now.Add(-time.Hour))
if err != nil {
t.Fatalf("GetTelemetryStats: %v", err)
}
- if stats.Attempts != 3 || stats.Failures != 2 {
- t.Fatalf("telemetry totals = %#v, want 3 attempts and 2 terminal failures", stats)
+ if stats.Attempts != 4 || stats.Failures != 3 {
+ t.Fatalf("telemetry totals = %#v, want 4 attempts and 3 terminal failures", stats)
}
- if stats.FailureClasses.Authentication != 1 || stats.FailureClasses.TLS != 1 {
- t.Fatalf("failure classes = %#v, want authentication=1 tls=1", stats.FailureClasses)
+ if stats.FailureClasses.Authentication != 1 || stats.FailureClasses.TLS != 1 ||
+ stats.FailureClasses.ServerError != 1 || stats.FailureClasses.Unknown != 0 {
+ t.Fatalf("failure classes = %#v, want authentication=1 tls=1 server_error=1 unknown=0", stats.FailureClasses)
}
if stats.FailureClasses.RateLimited != 0 {
t.Fatalf("retry failure leaked into terminal class counts: %#v", stats.FailureClasses)
diff --git a/internal/telemetry/telemetry.go b/internal/telemetry/telemetry.go
index 16c5b9b905..bae31aaf44 100644
--- a/internal/telemetry/telemetry.go
+++ b/internal/telemetry/telemetry.go
@@ -187,7 +187,9 @@ const (
// Schema v14 adds identity-free alert quality outcomes and their tenant
// denominators. It uses closed severity, age, and resolution-time buckets,
// and reports only aggregate lifecycle, adoption, and persistence health.
- TelemetrySchemaVersion = 14
+ // Schema v15 separates destination HTTP 5xx server failures from rejected
+ // HTTP 4xx responses. Both remain aggregate terminal-failure counters.
+ TelemetrySchemaVersion = 15
)
type installIDRecord struct {
@@ -383,6 +385,7 @@ type Ping struct {
NotificationFailuresTLS7d int `json:"notification_failures_tls_7d"`
NotificationFailuresConfiguration7d int `json:"notification_failures_configuration_7d"`
NotificationFailuresRejected7d int `json:"notification_failures_rejected_7d"`
+ NotificationFailuresServerError7d int `json:"notification_failures_server_error_7d"`
NotificationFailuresUnknown7d int `json:"notification_failures_unknown_7d"`
// Pulse Intelligence usage (30-day counts/booleans — no prompts, commands, outputs, resource IDs, or token values)
@@ -566,6 +569,7 @@ type Snapshot struct {
NotificationFailuresTLS7d int
NotificationFailuresConfiguration7d int
NotificationFailuresRejected7d int
+ NotificationFailuresServerError7d int
NotificationFailuresUnknown7d int
PulseIntelligenceLoopConfigured bool
PulseIntelligenceLoopActive30d bool
@@ -1232,6 +1236,7 @@ func applySnapshot(base Ping, fn SnapshotFunc) Ping {
ping.NotificationFailuresTLS7d = s.NotificationFailuresTLS7d
ping.NotificationFailuresConfiguration7d = s.NotificationFailuresConfiguration7d
ping.NotificationFailuresRejected7d = s.NotificationFailuresRejected7d
+ ping.NotificationFailuresServerError7d = s.NotificationFailuresServerError7d
ping.NotificationFailuresUnknown7d = s.NotificationFailuresUnknown7d
ping.PulseIntelligenceLoopConfigured = s.PulseIntelligenceLoopConfigured
ping.PulseIntelligenceLoopActive30d = s.PulseIntelligenceLoopActive30d
diff --git a/internal/telemetry/telemetry_test.go b/internal/telemetry/telemetry_test.go
index 10c45051e3..9c27c33445 100644
--- a/internal/telemetry/telemetry_test.go
+++ b/internal/telemetry/telemetry_test.go
@@ -336,57 +336,57 @@ func TestApplySnapshot(t *testing.T) {
snap := func() Snapshot {
return Snapshot{
- PVENodes: 3,
- VMs: 10,
- Containers: 5,
- AgentHosts: 2,
- DockerContainers: 12,
- KubernetesPods: 18,
- StoragePools: 4,
- PhysicalDisks: 9,
- TrueNASSystems: 1,
- TrueNASApps: 3,
- VMwareHosts: 2,
- AvailabilityTargets: 6,
- AIEnabled: true,
- PatrolEnabled: true,
- DiscoveryEnabled: true,
- NotificationsEnabled: true,
- AIActionsEnabled: true,
- AlertAIEnabled: true,
- ActiveAlerts: 2,
- PaidLicense: true,
- HasAPITokens: true,
- RBACCustomRoles: 3,
- RBACUserAssignments: 7,
- AuditReads30d: 41,
- ReportSchedules: 5,
- ReportSchedulesEnabled: 4,
- ReportSchedulesRun30d: 2,
- AgentProfiles: 9,
- UpdateAttempts30d: 4,
- UpdateSuccesses30d: 2,
- UpdateFailures30d: 1,
- UpdateLastFailureCategory: "download",
- ActiveAlertsCritical: 2,
- ActiveAlertsAge1h24h: 2,
- AlertsFiredCritical30d: 5,
- AlertsResolvedCritical30d: 3,
- AlertsResolution1h24h30d: 3,
- AlertsRepeatOccurrences30d: 2,
- AlertsSnoozedOccurrences30d: 2,
- AlertsResolvedWhileSnoozed30d: 1,
- AlertManagerTenants: 2,
- AlertDeliveryActiveTenants: 1,
- AlertFlappingEnabledTenants: 2,
- AlertIntentPolicyConfiguredTenants: 1,
- AlertEventHistoryAuthoritativeTenants: 2,
- AlertActiveStateAuthoritativeTenants: 2,
- PulseIntelligenceLoopConfigured: true,
- PulseIntelligenceLoopActive30d: true,
- PulseIntelligenceCompleteOperationsLoop30d: true,
- PulseIntelligenceApprovedExecutionLoop30d: true,
- PulseIntelligenceResolvedOperationsLoop30d: true,
+ PVENodes: 3,
+ VMs: 10,
+ Containers: 5,
+ AgentHosts: 2,
+ DockerContainers: 12,
+ KubernetesPods: 18,
+ StoragePools: 4,
+ PhysicalDisks: 9,
+ TrueNASSystems: 1,
+ TrueNASApps: 3,
+ VMwareHosts: 2,
+ AvailabilityTargets: 6,
+ AIEnabled: true,
+ PatrolEnabled: true,
+ DiscoveryEnabled: true,
+ NotificationsEnabled: true,
+ AIActionsEnabled: true,
+ AlertAIEnabled: true,
+ ActiveAlerts: 2,
+ PaidLicense: true,
+ HasAPITokens: true,
+ RBACCustomRoles: 3,
+ RBACUserAssignments: 7,
+ AuditReads30d: 41,
+ ReportSchedules: 5,
+ ReportSchedulesEnabled: 4,
+ ReportSchedulesRun30d: 2,
+ AgentProfiles: 9,
+ UpdateAttempts30d: 4,
+ UpdateSuccesses30d: 2,
+ UpdateFailures30d: 1,
+ UpdateLastFailureCategory: "download",
+ ActiveAlertsCritical: 2,
+ ActiveAlertsAge1h24h: 2,
+ AlertsFiredCritical30d: 5,
+ AlertsResolvedCritical30d: 3,
+ AlertsResolution1h24h30d: 3,
+ AlertsRepeatOccurrences30d: 2,
+ AlertsSnoozedOccurrences30d: 2,
+ AlertsResolvedWhileSnoozed30d: 1,
+ AlertManagerTenants: 2,
+ AlertDeliveryActiveTenants: 1,
+ AlertFlappingEnabledTenants: 2,
+ AlertIntentPolicyConfiguredTenants: 1,
+ AlertEventHistoryAuthoritativeTenants: 2,
+ AlertActiveStateAuthoritativeTenants: 2,
+ PulseIntelligenceLoopConfigured: true,
+ PulseIntelligenceLoopActive30d: true,
+ PulseIntelligenceCompleteOperationsLoop30d: true,
+ PulseIntelligenceApprovedExecutionLoop30d: true,
+ PulseIntelligenceResolvedOperationsLoop30d: true,
PulseIntelligencePatrolControlCompletedOperationsLoop30d: true,
PulseIntelligencePatrolControlResolvedOperationsLoop30d: true,
PulseIntelligencePatrolControlPaidCompletedOperationsLoop30d: true,
@@ -895,7 +895,7 @@ func TestBuildPreview_UsesCurrentHeartbeatPayload(t *testing.T) {
AIEnabled: true,
NotificationFailures7d: 3,
NotificationFailuresAuthentication7d: 2,
- NotificationFailuresConnectivity7d: 1,
+ NotificationFailuresServerError7d: 1,
AlertsRepeatOccurrences30d: 4,
AlertManagerTenants: 2,
}
@@ -934,7 +934,7 @@ func TestBuildPreview_UsesCurrentHeartbeatPayload(t *testing.T) {
}
if preview.NotificationFailures7d != 3 ||
preview.NotificationFailuresAuthentication7d != 2 ||
- preview.NotificationFailuresConnectivity7d != 1 {
+ preview.NotificationFailuresServerError7d != 1 {
t.Fatalf("preview notification failure classes = %#v", preview)
}
if preview.AlertsRepeatOccurrences30d != 4 || preview.AlertManagerTenants != 2 {
diff --git a/pkg/server/server.go b/pkg/server/server.go
index aec015c574..ecffa44a24 100644
--- a/pkg/server/server.go
+++ b/pkg/server/server.go
@@ -613,6 +613,7 @@ func Run(ctx context.Context, version string) (runErr error) {
snap.NotificationFailuresTLS7d = counts.NotificationFailuresTLS7d
snap.NotificationFailuresConfiguration7d = counts.NotificationFailuresConfiguration7d
snap.NotificationFailuresRejected7d = counts.NotificationFailuresRejected7d
+ snap.NotificationFailuresServerError7d = counts.NotificationFailuresServerError7d
snap.NotificationFailuresUnknown7d = counts.NotificationFailuresUnknown7d
snap.DiscoveryEnabled = currentCfg.DiscoveryEnabled
diff --git a/scripts/telemetry_adoption_report.py b/scripts/telemetry_adoption_report.py
index 90be7fe165..01a6c457f7 100644
--- a/scripts/telemetry_adoption_report.py
+++ b/scripts/telemetry_adoption_report.py
@@ -111,7 +111,8 @@ USER_BASE_COUNT_FIELDS = (
("notification_failures_connectivity_7d", "Notification connectivity failures (7d, schema v5+)"),
("notification_failures_tls_7d", "Notification TLS failures (7d, schema v5+)"),
("notification_failures_configuration_7d", "Notification configuration failures (7d, schema v5+)"),
- ("notification_failures_rejected_7d", "Notification destination rejections (7d, schema v5+)"),
+ ("notification_failures_rejected_7d", "Notification destination rejections (7d; new schema v15+ classifications are HTTP 4xx)"),
+ ("notification_failures_server_error_7d", "Notification destination server errors (7d, schema v15+)"),
("notification_failures_unknown_7d", "Notification unknown failures (7d, schema v5+)"),
)
SERVICE_HEALTH_ROW_FIELDS = (
@@ -1106,6 +1107,7 @@ TARGET_RELEASE_ACTIVITY_COUNT_FIELDS = tuple(
"notification_failures_tls_7d",
"notification_failures_configuration_7d",
"notification_failures_rejected_7d",
+ "notification_failures_server_error_7d",
"notification_failures_unknown_7d",
"audit_reads_30d",
"report_schedules_run_30d",