linting fixes

Signed-off-by: Spencer Henry <shenry@qualtrics.com>
This commit is contained in:
Spencer Henry
2022-10-10 09:54:32 -06:00
parent 1d4a87eea4
commit 1a9d19dc6d
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -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' });
}