writeMetricFamily(&b,"soteria_authz_denials_total","counter","Authorization denials emitted by Soteria.",metricValues(t.authzDenials))
writeMetricFamily(&b,"soteria_inventory_refresh_failures_total","counter","Inventory refresh failures while computing PVC backup telemetry.",[]metricSample{{value:t.inventoryRefreshFailure}})
writeMetricFamily(&b,"soteria_inventory_refresh_timestamp_seconds","gauge","Unix timestamp of the last successful inventory refresh.",[]metricSample{{value:t.inventoryRefreshTime}})
writeMetricFamily(&b,"pvc_backup_age_hours","gauge","Age in hours of the latest successful PVC backup known to Soteria.",metricValues(t.pvcBackupAgeHours))
writeMetricFamily(&b,"pvc_backup_health","gauge","PVC backup health according to Soteria: 1=fresh backup within policy, 0=missing/stale/error.",metricValues(t.pvcBackupHealth))
writeMetricFamily(&b,"pvc_backup_health_reason","gauge","PVC backup health reason marker with reason label set to 1.",metricValues(t.pvcBackupHealthReason))
writeMetricFamily(&b,"pvc_backup_last_success_timestamp_seconds","gauge","Unix timestamp of the latest successful PVC backup known to Soteria.",metricValues(t.pvcBackupLastSuccess))
writeMetricFamily(&b,"pvc_backup_count","gauge","Count of backup records discovered for a PVC.",metricValues(t.pvcBackupCount))
writeMetricFamily(&b,"pvc_backup_completed_count","gauge","Count of completed backup records discovered for a PVC.",metricValues(t.pvcBackupCompletedCount))
writeMetricFamily(&b,"pvc_backup_last_size_bytes","gauge","Size in bytes of the latest completed backup for a PVC.",metricValues(t.pvcBackupLastSizeBytes))
writeMetricFamily(&b,"pvc_backup_total_size_bytes","gauge","Total bytes across discovered backup records for a PVC.",metricValues(t.pvcBackupTotalSizeBytes))
writeMetricFamily(&b,"soteria_b2_scan_success","gauge","Whether the latest B2 consumption scan succeeded (1) or failed (0).",[]metricSample{{value:t.b2ScanSuccess}})
writeMetricFamily(&b,"soteria_b2_scan_timestamp_seconds","gauge","Unix timestamp of the latest B2 consumption scan attempt.",[]metricSample{{value:t.b2ScanTimestamp}})
writeMetricFamily(&b,"soteria_b2_scan_duration_seconds","gauge","Duration in seconds of the latest B2 consumption scan attempt.",[]metricSample{{value:t.b2ScanDurationSeconds}})
writeMetricFamily(&b,"soteria_b2_account_objects","gauge","Total object count discovered across scanned B2 buckets.",[]metricSample{{value:t.b2AccountObjects}})
writeMetricFamily(&b,"soteria_b2_account_bytes","gauge","Total stored bytes discovered across scanned B2 buckets.",[]metricSample{{value:t.b2AccountBytes}})
writeMetricFamily(&b,"soteria_b2_account_recent_objects_24h","gauge","Object count with LastModified in the last 24h across scanned B2 buckets.",[]metricSample{{value:t.b2AccountRecentObjects}})
writeMetricFamily(&b,"soteria_b2_account_recent_bytes_24h","gauge","Bytes with LastModified in the last 24h across scanned B2 buckets.",[]metricSample{{value:t.b2AccountRecentBytes}})
writeMetricFamily(&b,"soteria_b2_bucket_objects","gauge","Object count discovered per scanned B2 bucket.",metricValues(t.b2BucketObjects))
writeMetricFamily(&b,"soteria_b2_bucket_bytes","gauge","Stored bytes discovered per scanned B2 bucket.",metricValues(t.b2BucketBytes))
writeMetricFamily(&b,"soteria_b2_bucket_recent_objects_24h","gauge","Object count with LastModified in the last 24h per scanned B2 bucket.",metricValues(t.b2BucketRecentObjects))
writeMetricFamily(&b,"soteria_b2_bucket_recent_bytes_24h","gauge","Bytes with LastModified in the last 24h per scanned B2 bucket.",metricValues(t.b2BucketRecentBytes))
writeMetricFamily(&b,"soteria_b2_bucket_last_modified_timestamp_seconds","gauge","Unix timestamp of the most recent object observed in each scanned B2 bucket.",metricValues(t.b2BucketLastModified))