1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00

removed gauge vector for sub processes

This commit is contained in:
postmannen 2022-11-30 06:18:19 +01:00
parent 70408d24e9
commit 82303510cf

View file

@ -180,7 +180,9 @@ func (p process) spawnWorker() {
// processName := processNameGet(p.subject.name(), p.processKind) // processName := processNameGet(p.subject.name(), p.processKind)
// Add prometheus metrics for the process. // Add prometheus metrics for the process.
if !p.isSubProcess {
p.metrics.promProcessesAllRunning.With(prometheus.Labels{"processName": string(p.processName)}) p.metrics.promProcessesAllRunning.With(prometheus.Labels{"processName": string(p.processName)})
}
// Start a publisher worker, which will start a go routine (process) // Start a publisher worker, which will start a go routine (process)
// That will take care of all the messages for the subject it owns. // That will take care of all the messages for the subject it owns.