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
logger.Debugf("[%s] Connection pool initialized with max %d parallel connections. Conn pooling: %v", md.DBUniqueName, opts.MaxParallelConnectionsPerDb, opts.UseConnPooling)
if (opts.Metric.RealDbnameField>""||opts.Metric.SystemIdentifierField>"") &&msg.Source==sources.SourcePostgres {
563
+
if (opts.Measurements.RealDbnameField>""||opts.Measurements.SystemIdentifierField>"") &&msg.Source==sources.SourcePostgres {
567
564
dbPgVersionMapLock.RLock()
568
565
ver:=dbPgVersionMap[msg.DBUniqueName]
569
566
dbPgVersionMapLock.RUnlock()
@@ -658,16 +655,16 @@ func AddDbnameSysinfoIfNotExistsToQueryResultData(msg MetricFetchMessage, data m
658
655
659
656
logger.Debugf("Enriching all rows of [%s:%s] with sysinfo (%s) / real dbname (%s) if set. ", msg.DBUniqueName, msg.MetricName, ver.SystemIdentifier, ver.RealDbname)
// Warn if any encrypted hosts found but no keyphrase given
1548
1545
logger.Warningf("Encrypted password type found for host \"%s\", but no decryption keyphrase specified. Use --aes-gcm-keyphrase or --aes-gcm-keyphrase-file params", dbUnique)
logger.Infof("[%s] Skipping rollout out helper functions due to the --no-helper-functions flag ...", dbUnique)
1594
1591
} else {
1595
1592
logger.Infof("Trying to create helper functions if missing for \"%s\"...", dbUnique)
@@ -1602,10 +1599,10 @@ func main() {
1602
1599
ifhost.IsPostgresSource() {
1603
1600
varDBSizeMBint64
1604
1601
1605
-
ifopts.Source.MinDbSizeMB>=8 { // an empty DB is a bit less than 8MB
1602
+
ifopts.Sources.MinDbSizeMB>=8 { // an empty DB is a bit less than 8MB
1606
1603
DBSizeMB, _=DBGetSizeMB(dbUnique) // ignore errors, i.e. only remove from monitoring when we're certain it's under the threshold
1607
1604
ifDBSizeMB!=0 {
1608
-
ifDBSizeMB<opts.Source.MinDbSizeMB {
1605
+
ifDBSizeMB<opts.Sources.MinDbSizeMB {
1609
1606
logger.Infof("[%s] DB will be ignored due to the --min-db-size-mb filter. Current (up to %v cached) DB size = %d MB", dbUnique, dbSizeCachingInterval, DBSizeMB)
1610
1607
hostsToShutDownDueToRoleChange[dbUnique] =true// for the case when DB size was previosly above the threshold
logger.Infof("[%s] %d/%d extensions created based on --try-create-listed-exts-if-missing input %v", dbUnique, len(extsCreated), len(extsToCreate), extsCreated)
0 commit comments