Skip to content

Commit

Permalink
Adds the pipelines metrics documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hrishin committed Mar 4, 2020
1 parent 06b5b04 commit 759dc4c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ See the following topics to learn how to use Tekton Pipelines in your project:
- [Configuring authentication](auth.md)
- [Using labels](labels.md)
- [Viewing logs](logs.md)
- [Pipelines metrics](metrics.md)

## Contributing to Tekton Pipelines

Expand Down
16 changes: 16 additions & 0 deletions docs/metrics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Pipeline Controller Metrics

Following pipeline metrics exposed at `controller-service` on port `9090`

Different kind of exporters as Prometheus, Google Stackdriver and so on could be configured using [observability configuration](../config/config-observability.yaml).

| Metric name| Metric type | Labels/tags | Status |
| ---------- | ----------- | ----------- | ----------- |
| tekton_pipelinerun_duration_seconds_[bucket, sum, count] | Histogram | `pipeline`=&lt;pipeline_name&gt; <br> `pipelinerun`=&lt;pipelinerun_name&gt; <br> `status`=&lt;status&gt; <br> `namespace`=&lt;pipelinerun-namespace&gt; | beta |
| tekton_pipelinerun_taskrun_duration_seconds_[bucket, sum, count] | Histogram | `pipeline`=&lt;pipeline_name&gt; <br> `pipelinerun`=&lt;pipelinerun_name&gt; <br> `status`=&lt;status&gt; <br> `task`=&lt;task_name&gt; <br> `taskrun`=&lt;taskrun_name&gt;<br> `namespace`=&lt;pipelineruns-taskruns-namespace&gt;| beta |
| tekton_pipelinerun_count| Counter | `status`=&lt;status&gt; | beta |
| tekton_running_pipelineruns_count | Gauge | | beta |
| tekton_taskrun_duration_seconds_[bucket, sum, count] | Histogram | `status`=&lt;status&gt; <br> `task`=&lt;task_name&gt; <br> `taskrun`=&lt;taskrun_name&gt;<br> `namespace`=&lt;pipelineruns-taskruns-namespace&gt; | beta |
| tekton_taskrun_count | Counter | `status`=&lt;status&gt; | beta |
| tekton_running_taskruns_count | Gauge | | beta |
| tekton_taskruns_pod_latency | Gauge | `namespace`=&lt;taskruns-namespace&gt; <br> `pod`= &lt; taskrun_pod_name&gt; <br> `task`=&lt;task_name&gt; <br> `taskrun`=&lt;taskrun_name&gt;<br> | beta |

0 comments on commit 759dc4c

Please sign in to comment.