Skip to content

Commit 3d7a255

Browse files
author
Pavan Sokke Nagaraj
authored
update: add missing database collector code for func GetName() (#553)
1 parent 77a2475 commit 3d7a255

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pkg/apis/troubleshoot/v1beta2/collector_shared.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,18 @@ func (c *Collect) GetName() string {
455455
collector = "http"
456456
name = c.HTTP.CollectorName
457457
}
458+
if c.Postgres != nil {
459+
collector = "postgres"
460+
name = c.Postgres.CollectorName
461+
}
462+
if c.Mysql != nil {
463+
collector = "mysql"
464+
name = c.Mysql.CollectorName
465+
}
466+
if c.Redis != nil {
467+
collector = "redis"
468+
name = c.Redis.CollectorName
469+
}
458470
if c.Collectd != nil {
459471
collector = "collectd"
460472
name = c.Collectd.CollectorName

0 commit comments

Comments
 (0)