Skip to content

Commit

Permalink
renames workflow_job__seconds to workflow_job_duration_seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
janakerman committed Apr 19, 2022
1 parent 504a3f2 commit 5528cde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/server/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

var (
workflowJobHistogramVec = prometheus.NewHistogramVec(prometheus.HistogramOpts{
Name: "workflow_job_seconds",
Name: "workflow_job_duration_seconds",
Help: "Time that a workflow job took to reach a given state.",
Buckets: prometheus.ExponentialBuckets(1, 1.4, 30),
},
Expand Down
2 changes: 1 addition & 1 deletion internal/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,5 @@ func Test_Server_MetricsRouteAfterWorkflowJob(t *testing.T) {

payload, err := ioutil.ReadAll(metricsRes.Body)
require.NoError(t, err)
assert.Contains(t, string(payload), `workflow_job_seconds_bucket{org="someone",repo="some-repo",runner_group="runner-group",state="queued",le="10.541350399999995"} 1`)
assert.Contains(t, string(payload), `workflow_job_duration_seconds_bucket{org="someone",repo="some-repo",runner_group="runner-group",state="queued",le="10.541350399999995"} 1`)
}

0 comments on commit 5528cde

Please sign in to comment.