Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 17 additions & 10 deletions upstream/docs/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,27 @@ for more details.

The following chains metrics are also available at `tekton-chains-metrics` service on port `9090`.

| Name | Type | Description |
|-----------------------------------------------------------------------------------------| ----------- | ----------- |
| `watcher_pipelinerun_sign_created_total` | Counter | Total number of signed messages for pipelineruns |
| `watcher_pipelinerun_payload_uploaded_total` | Counter | Total number of uploaded payloads for pipelineruns |
| `watcher_pipelinerun_payload_stored_total` | Counter | Total number of stored payloads for pipelineruns |
| `watcher_pipelinerun_marked_signed_total` | Counter | Total number of objects marked as signed for pipelineruns |
| `watcher_taskrun_sign_created_total` | Counter | Total number of signed messages for taskruns |
| `watcher_taskrun_payload_uploaded_total` | Counter | Total number of uploaded payloads for taskruns |
| `watcher_taskrun_payload_stored_total` | Counter | Total number of stored payloads for taskruns |
| `watcher_taskrun_marked_signed_total` | Counter | Total number of objects marked as signed for taskruns |
| Name | Type | Description |
|---|---|---|
| `watcher_pipelinerun_sign_created_total` | Counter | Total number of signed messages for pipelineruns |
| `watcher_pipelinerun_payload_uploaded_total` | Counter | Total number of uploaded payloads for pipelineruns |
| `watcher_pipelinerun_payload_stored_total` | Counter | Total number of stored payloads for pipelineruns |
| `watcher_pipelinerun_marked_signed_total` | Counter | Total number of objects marked as signed for pipelineruns |
| `watcher_taskrun_sign_created_total` | Counter | Total number of signed messages for taskruns |
| `watcher_taskrun_payload_uploaded_total` | Counter | Total number of uploaded payloads for taskruns |
| `watcher_taskrun_payload_stored_total` | Counter | Total number of stored payloads for taskruns |
| `watcher_taskrun_marked_signed_total` | Counter | Total number of objects marked as signed for taskruns |
| `pipelinerun_error_count` | Counter | Number of errors encountered during pipeline run processing |
| `pipelinerun_process_duration_seconds` | Distribution | Time taken to process pipeline runs in seconds |
| `pipelinerun_retry_count` | Counter | Number of retries attempted for failed pipeline runs |
| `pipelinerun_queue_depth` | Gauge | Current number of pipeline runs waiting in queue |
| `pipelinerun_attestation_generated_total` | Counter | Total number of attestations generated for pipeline runs |

To access the chains metrics, use the following commands:
```shell
kubectl port-forward -n tekton-chains service/tekton-chains-metrics 9090
```

And then check that changes have been applied to metrics coming from [http://127.0.0.1:9090/metrics](http://127.0.0.1:9090/metrics)
```
```