metrics: add prometheus namespaces
Make use of the prometheus namespace and subsystem to give the metrics a consistent namespaces in openshift.
This commit is contained in:
parent
c8f198166d
commit
91f2457363
3 changed files with 49 additions and 47 deletions
|
|
@ -21,7 +21,6 @@ import (
|
|||
|
||||
"github.com/osbuild/osbuild-composer/internal/common"
|
||||
"github.com/osbuild/osbuild-composer/internal/jobqueue"
|
||||
"github.com/osbuild/osbuild-composer/internal/prometheus"
|
||||
"github.com/osbuild/osbuild-composer/internal/worker/api"
|
||||
)
|
||||
|
||||
|
|
@ -306,10 +305,6 @@ func (s *Server) FinishJob(token uuid.UUID, result json.RawMessage) error {
|
|||
return fmt.Errorf("error finding job status: %v", err)
|
||||
}
|
||||
|
||||
if jobResult.Success {
|
||||
prometheus.ComposeSuccesses.Inc()
|
||||
}
|
||||
|
||||
// Move artifacts from the temporary location to the final job
|
||||
// location. Log any errors, but do not treat them as fatal. The job is
|
||||
// already finished.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue