Exporter can't parse nft output
ixvick opened this issue · comments
Exporter can't parse nft output
Jan 11 23:05:38 n01 nftables-exporter[1361908]: {"time":"2024-01-11T23:05:38.005482187+01:00","level":"INFO","msg":"collecting nftables counters..."}
Jan 11 23:05:38 n01 nftables-exporter[1361908]: {"time":"2024-01-11T23:05:38.006412764+01:00","level":"INFO","msg":"nftables reading error: exit status 1"}
Jan 11 23:05:38 n01 nftables-exporter[1361908]: {"time":"2024-01-11T23:05:38.006423835+01:00","level":"INFO","msg":"failed parsing nftables data: invalid JSON"}
but
nft -j list ruleset | jq
work ok
I can send output of nft -j list ruleset
as private message
My bad
I should run exporter as root user
Closing, if still see this issue, please reopen