atc: add metric to check step
@@ -10,6 +10,7 @@ import (
"github.com/concourse/concourse/atc"
"github.com/concourse/concourse/atc/creds"
"github.com/concourse/concourse/atc/db"
+ "github.com/concourse/concourse/atc/metric"
"github.com/concourse/concourse/atc/resource"
"github.com/concourse/concourse/atc/worker"
)
@@ -141,6 +142,13 @@ func (step *CheckStep) Run(ctx context.Context, state RunState) error {
return err
}
+ metric.ResourceCheck{
+ PipelineName: step.metadata.PipelineName,
+ ResourceName: step.plan.Name,
+ TeamName: step.metadata.TeamName,
+ Success: err == nil,
+ }.Emit(logger)
+
err = step.delegate.SaveVersions(versions)
if err != nil {
logger.Error("failed-to-save-versions", err)
