Commit 19fd03f
fix(export): filter dot-notation metrics from Prometheus textfile output
The shell exporter collects ~25 metrics using Zabbix dot-notation
(nftban.daemon.cpu_percent, nftban.server.load_1m). These are valid
for Zabbix trapper but invalid Prometheus metric names — dots violate
the [a-zA-Z_:][a-zA-Z0-9_:]* pattern.
The export_prometheus() awk filter already strips |STRING| lines but
did not filter dot-notation names. If Prometheus export is enabled,
these would leak into nftban.prom and cause node_exporter parse errors.
Currently a latent defect (NFTBAN_EXPORT_PROMETHEUS defaults to false),
but this closes the gap before anyone enables it.
Pipeline audit finding: P-8
Ref: V191_PIPELINE_INTEGRITY_AUDIT.md
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent f51c4ba commit 19fd03f
1 file changed
Lines changed: 4 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
201 | 205 | | |
202 | 206 | | |
203 | 207 | | |
| |||
0 commit comments