@@ -10,7 +10,7 @@ Added a set of default Prometheus metrics around scaffolding. See below for a li
|
||||
|
||||
- `template`: The entity ref of the scaffolded template
|
||||
- `user`: The entity ref of the user that invoked the template run
|
||||
- `result`: A string describing whether the task ran successfully, errored out, or was skipped
|
||||
- `result`: A string describing whether the task ran successfully, failed, or was skipped
|
||||
|
||||
- `scaffolder_task_duration`: a histogram which tracks the duration of a task run
|
||||
|
||||
@@ -25,7 +25,7 @@ Added a set of default Prometheus metrics around scaffolding. See below for a li
|
||||
|
||||
- `template`: The entity ref of the scaffolded template
|
||||
- `step`: The name of the step that was run
|
||||
- `result`: A string describing whether the task ran successfully, errored out, or was skipped
|
||||
- `result`: A string describing whether the task ran successfully, failed, or was skipped
|
||||
|
||||
- `scaffolder_step_duration`: a histogram which tracks the duration of each step run
|
||||
|
||||
@@ -33,6 +33,6 @@ Added a set of default Prometheus metrics around scaffolding. See below for a li
|
||||
|
||||
- `template`: The entity ref of the scaffolded template
|
||||
- `step`: The name of the step that was run
|
||||
- `result`: A string describing whether the task ran successfully, errored out, or was skipped
|
||||
- `result`: A string describing whether the task ran successfully, failed, or was skipped
|
||||
|
||||
You can find a guide for running Prometheus metrics here: https://github.com/backstage/backstage/blob/master/contrib/docs/tutorials/prometheus-metrics.md
|
||||
|
||||
@@ -398,7 +398,7 @@ function scaffoldingTracker() {
|
||||
taskCount.inc({
|
||||
template,
|
||||
user,
|
||||
result: 'ok'
|
||||
result: 'ok',
|
||||
});
|
||||
taskTimer({ result: 'ok' });
|
||||
}
|
||||
@@ -411,7 +411,7 @@ function scaffoldingTracker() {
|
||||
taskCount.inc({
|
||||
template,
|
||||
user,
|
||||
result: 'failed'
|
||||
result: 'failed',
|
||||
});
|
||||
taskTimer({ result: 'failed' });
|
||||
}
|
||||
@@ -443,7 +443,7 @@ function scaffoldingTracker() {
|
||||
stepCount.inc({
|
||||
template,
|
||||
step: step.name,
|
||||
result: 'ok'
|
||||
result: 'ok',
|
||||
});
|
||||
stepTimer({ result: 'ok' });
|
||||
}
|
||||
@@ -452,7 +452,7 @@ function scaffoldingTracker() {
|
||||
stepCount.inc({
|
||||
template,
|
||||
step: step.name,
|
||||
result: 'failed'
|
||||
result: 'failed',
|
||||
});
|
||||
stepTimer({ result: 'failed' });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user