Monitor environment id also for deletions.
This commit is contained in:
@ -30,8 +30,8 @@ func NewAbstractManager() *AbstractManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// MonitorRunnersEnvironmentID passes the id of the environment e into the monitoring Point p.
|
// MonitorRunnersEnvironmentID passes the id of the environment e into the monitoring Point p.
|
||||||
func MonitorRunnersEnvironmentID(p *write.Point, e Runner, isDeletion bool) {
|
func MonitorRunnersEnvironmentID(p *write.Point, e Runner, _ bool) {
|
||||||
if !isDeletion && e != nil {
|
if e != nil {
|
||||||
p.AddTag(monitoring.InfluxKeyEnvironmentID, e.Environment().ToString())
|
p.AddTag(monitoring.InfluxKeyEnvironmentID, e.Environment().ToString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user