func getConfig() map[string]interface{} { return map[string]interface{}{ "module": "postgresql", "metricsets": []string{"database"}, "hosts": []string{postgresql.GetEnvDSN()}, } }
func getConfig() map[string]interface{} { return map[string]interface{}{ "module": "postgresql", "metricsets": []string{"bgwriter"}, "hosts": []string{postgresql.GetEnvDSN()}, "username": postgresql.GetEnvUsername(), "password": postgresql.GetEnvPassword(), } }