@@ -298,85 +298,85 @@ func (c *PGStatDatabaseCollector) Update(ctx context.Context, instance *instance
298298 }
299299
300300 if ! datid .Valid {
301- c .log .Debug ("msg" , " Skipping collecting metric because it has no datid" )
301+ c .log .Debug ("Skipping collecting metric because it has no datid" )
302302 continue
303303 }
304304 if ! datname .Valid {
305- c .log .Debug ("msg" , " Skipping collecting metric because it has no datname" )
305+ c .log .Debug ("Skipping collecting metric because it has no datname" )
306306 continue
307307 }
308308 if ! numBackends .Valid {
309- c .log .Debug ("msg" , " Skipping collecting metric because it has no numbackends" )
309+ c .log .Debug ("Skipping collecting metric because it has no numbackends" )
310310 continue
311311 }
312312 if ! xactCommit .Valid {
313- c .log .Debug ("msg" , " Skipping collecting metric because it has no xact_commit" )
313+ c .log .Debug ("Skipping collecting metric because it has no xact_commit" )
314314 continue
315315 }
316316 if ! xactRollback .Valid {
317- c .log .Debug ("msg" , " Skipping collecting metric because it has no xact_rollback" )
317+ c .log .Debug ("Skipping collecting metric because it has no xact_rollback" )
318318 continue
319319 }
320320 if ! blksRead .Valid {
321- c .log .Debug ("msg" , " Skipping collecting metric because it has no blks_read" )
321+ c .log .Debug ("Skipping collecting metric because it has no blks_read" )
322322 continue
323323 }
324324 if ! blksHit .Valid {
325- c .log .Debug ("msg" , " Skipping collecting metric because it has no blks_hit" )
325+ c .log .Debug ("Skipping collecting metric because it has no blks_hit" )
326326 continue
327327 }
328328 if ! tupReturned .Valid {
329- c .log .Debug ("msg" , " Skipping collecting metric because it has no tup_returned" )
329+ c .log .Debug ("Skipping collecting metric because it has no tup_returned" )
330330 continue
331331 }
332332 if ! tupFetched .Valid {
333- c .log .Debug ("msg" , " Skipping collecting metric because it has no tup_fetched" )
333+ c .log .Debug ("Skipping collecting metric because it has no tup_fetched" )
334334 continue
335335 }
336336 if ! tupInserted .Valid {
337- c .log .Debug ("msg" , " Skipping collecting metric because it has no tup_inserted" )
337+ c .log .Debug ("Skipping collecting metric because it has no tup_inserted" )
338338 continue
339339 }
340340 if ! tupUpdated .Valid {
341- c .log .Debug ("msg" , " Skipping collecting metric because it has no tup_updated" )
341+ c .log .Debug ("Skipping collecting metric because it has no tup_updated" )
342342 continue
343343 }
344344 if ! tupDeleted .Valid {
345- c .log .Debug ("msg" , " Skipping collecting metric because it has no tup_deleted" )
345+ c .log .Debug ("Skipping collecting metric because it has no tup_deleted" )
346346 continue
347347 }
348348 if ! conflicts .Valid {
349- c .log .Debug ("msg" , " Skipping collecting metric because it has no conflicts" )
349+ c .log .Debug ("Skipping collecting metric because it has no conflicts" )
350350 continue
351351 }
352352 if ! tempFiles .Valid {
353- c .log .Debug ("msg" , " Skipping collecting metric because it has no temp_files" )
353+ c .log .Debug ("Skipping collecting metric because it has no temp_files" )
354354 continue
355355 }
356356 if ! tempBytes .Valid {
357- c .log .Debug ("msg" , " Skipping collecting metric because it has no temp_bytes" )
357+ c .log .Debug ("Skipping collecting metric because it has no temp_bytes" )
358358 continue
359359 }
360360 if ! deadlocks .Valid {
361- c .log .Debug ("msg" , " Skipping collecting metric because it has no deadlocks" )
361+ c .log .Debug ("Skipping collecting metric because it has no deadlocks" )
362362 continue
363363 }
364364 if ! blkReadTime .Valid {
365- c .log .Debug ("msg" , " Skipping collecting metric because it has no blk_read_time" )
365+ c .log .Debug ("Skipping collecting metric because it has no blk_read_time" )
366366 continue
367367 }
368368 if ! blkWriteTime .Valid {
369- c .log .Debug ("msg" , " Skipping collecting metric because it has no blk_write_time" )
369+ c .log .Debug ("Skipping collecting metric because it has no blk_write_time" )
370370 continue
371371 }
372372 if activeTimeAvail && ! activeTime .Valid {
373- c .log .Debug ("msg" , " Skipping collecting metric because it has no active_time" )
373+ c .log .Debug ("Skipping collecting metric because it has no active_time" )
374374 continue
375375 }
376376
377377 statsResetMetric := 0.0
378378 if ! statsReset .Valid {
379- c .log .Debug ("msg" , " No metric for stats_reset, will collect 0 instead" )
379+ c .log .Debug ("No metric for stats_reset, will collect 0 instead" )
380380 }
381381 if statsReset .Valid {
382382 statsResetMetric = float64 (statsReset .Time .Unix ())
0 commit comments