You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9d2ada4
Browse filesBrowse the repository at this point in the historyBrowse files
Fix moderation guidance, warning event counts, and idle-day collection (#1900)
The malware report email now gives a separate action for confirmed
malware, a missing package, and an unchecked release. An unchecked
release calls for verifying and pinning the intended version.
The Grafana warning chart counts each Kubernetes event UID and count
once per reason in each ten-minute bucket. The revised query returned
124 distinct updates in a production window containing 1,522 log
records. Both hosted Grafana instances loaded the corrected dashboard,
and the report policies in both projects now carry the revised
instructions.
The usage collector records a verified idle day in the existing daily
table. It stores zero volumes, no breakdown rows and NULL percentages.
The missed-day alert already reads this table. Future scheduled runs
skip the day. A positive byte counter, missing counter evidence, or an
inconclusive log sample cannot establish a zero-traffic day.
The usage collector tests ran against disposable PostgreSQL 17 with the
race detector. The deployment Go tests passed. Production receives the
collector fix when a release containing this change is promoted.
Copy file name to clipboardExpand all lines: cmd/usage-collector/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,7 +184,7 @@ A day is normally **not collected** if something it needs could not be used: the
184
184
185
185
To collect a degraded day at any other time, name it with `--day` and add `--allow-degraded`. That also applies without the request counters; the read is sized the same way.
186
186
187
-
**Days with nothing to collect.**A day is skipped, without failing the run and without storing anything, when all of this holds: the gateway's request counter has series that day, they show no registry request, and none of the day's access records is a registry request. The last is checked by reading every record of the day, not a sample; a day with more than twice `MAX_RECORDS` records is not skipped, because not all of them are looked at. A day for which neither the counters nor Cloud Logging hold anything at all is different: that cannot be told from a collector pointed at the wrong place, so it fails like any day without counters. And when the counters did count requests but the whole day holds no access record of one, the day fails too: the records are somewhere the log settings do not point, or were not written.
187
+
**Days with nothing to collect.**The collector stores a zero-traffic day when the gateway's counters were recorded and show no registry traffic, and a full log read confirms there were no registry requests. It stores zero volumes, empty breakdowns and undefined percentages. The day counts toward the freshness check and future scheduled runs skip it. A day with more than twice `MAX_RECORDS` records cannot be confirmed idle by this check. A day for which neither the counters nor Cloud Logging hold anything at all is different: that cannot be told from a collector pointed at the wrong place, so it fails like any day without counters. And when the counters did count requests but the whole day holds no access record of one, the day fails too: the records are somewhere the log settings do not point, or were not written.
Copy file name to clipboardExpand all lines: deploy/pkg/k8s/dashboards/registry-deployment-critical-issues.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@
64
64
"type": "victoriametrics-logs-datasource",
65
65
"uid": "PD775F2863313E6C7"
66
66
},
67
-
"description": "Kubernetes events of type Warning about the registry's own objects (pods, jobs, autoscaler), counted in 10-minute steps. Events about nodes are left out; the node panel below covers the ones that matter. Events are collected for the default namespace only.",
67
+
"description": "Updates to Kubernetes Warning events about the registry's objects (pods, jobs, autoscaler). Each event UID and count is counted once per 10-minute interval, even when several collectors record it. Events about nodes are left out; the node panel below covers the ones that matter. Events are collected for the default namespace only.",
68
68
"fieldConfig": {
69
69
"defaults": {
70
70
"color": {
@@ -117,14 +117,14 @@
117
117
"uid": "PD775F2863313E6C7"
118
118
},
119
119
"editorMode": "code",
120
-
"expr": "severity:Warning k8s.namespace.name:* | stats by (k8s.event.reason) count() as events",
120
+
"expr": "severity:Warning k8s.namespace.name:* | stats by (k8s.event.reason) count_uniq(k8s.event.uid, k8s.event.count) as events",
121
121
"legendFormat": "{{k8s.event.reason}}",
122
122
"queryType": "statsRange",
123
123
"refId": "A",
124
124
"step": "10m"
125
125
}
126
126
],
127
-
"title": "Warning events per 10 minutes, by reason",
127
+
"title": "Warning event updates per 10 minutes, by reason",
0 commit comments