Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90610d5

Browse files
committed
Add micrometer metrics tags in reference documentation
Resolves spring-projects#3751
1 parent c2625b1 commit 90610d5

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

spring-batch-docs/asciidoc/monitoring-and-metrics.adoc

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@ link:$$https://micrometer.io/docs/concepts#_global_registry$$[Micrometer's globa
2020
under the `spring.batch` prefix. The following table explains all the metrics in details:
2121

2222
|===============
23-
|__Metric Name__|__Type__|__Description__
24-
|`spring.batch.job`|`TIMER`|Duration of job execution
25-
|`spring.batch.job.active`|`LONG_TASK_TIMER`|Currently active jobs
26-
|`spring.batch.step`|`TIMER`|Duration of step execution
27-
|`spring.batch.item.read`|`TIMER`|Duration of item reading
28-
|`spring.batch.item.process`|`TIMER`|Duration of item processing
29-
|`spring.batch.chunk.write`|`TIMER`|Duration of chunk writing
23+
|__Metric Name__|__Type__|__Description__|__Tags__
24+
|`spring.batch.job`|`TIMER`|Duration of job execution|`name`, `status`
25+
|`spring.batch.job.active`|`LONG_TASK_TIMER`|Currently active jobs|`name`
26+
|`spring.batch.step`|`TIMER`|Duration of step execution|`name`, `job.name`, `status`
27+
|`spring.batch.item.read`|`TIMER`|Duration of item reading|`job.name`, `step.name`, `status`
28+
|`spring.batch.item.process`|`TIMER`|Duration of item processing|`job.name`, `step.name`, `status`
29+
|`spring.batch.chunk.write`|`TIMER`|Duration of chunk writing|`job.name`, `step.name`, `status`
3030
|===============
3131

32+
NOTE: The `status` tag can be either `SUCCESS` or `FAILURE`.
33+
3234
[[custom-metrics]]
3335

3436
=== Custom metrics

0 commit comments

Comments
 (0)