NULL fields spamming warnings #777
-
Hello 😊 I jumped from v0.16.0 to v0.18.0 and sql exporter spammed the logs with warnings at each poll. Example: {..."level":"WARN",
"source":"query.go:226",
"msg":"Value column is NULL",
"logContext":"job=pg-database-metrics-▮▮▮▮▮▮,
target=▮▮▮▮▮▮▮▮▮▮,
collector=postgres_13_database_pg_statio_user_tables,
query=query_pg_statio_user_tables",
"column":"tidx_blks_read"} Indeed, looking at query.go each null value raise a warning. slog.Warn("Value column is NULL", "logContext", q.logContext, "column", column) My questions are the following:
I worked around it by using Thanks for reading and best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @qfritz, Answering your questions:
I think we have several options:
The only motivation behind this message was to provide enough visibility to the users. I'm generally open to suggestions. What do you think? |
Beta Was this translation helpful? Give feedback.
Hey @qfritz,
Answering your questions: