grafana / grafana/github-datasource
[Feature Request] Workflow Details - Single Job Step Durations
- Dominant language
- Go
- Stars
- 310
- Forks
- 70
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 3
Description
Hi there 👋🏻
**As** DevOps Engineer or Grafana GitHub Plugin User
**I want** to see how long my steps in a workflow run take for a job
**So that** I can narrow the long-running ones down and take action on them.
----
I was thinking of having the duration for every step available in Grafana via the GitHub Plugin.
The [GitHub REST API for workflow runs](https://docs.github.com/en/rest/actions/workflow-jobs?apiVersion=2022-11-28#get-a-job-for-a-workflow-run) already provides this data.
```
"steps": [
{
"name": "Set up job",
"status": "completed",
"conclusion": "success",
"number": 1,
"started_at": "2020-01-20T09:42:40.000-08:00",
"completed_at": "2020-01-20T09:42:41.000-08:00"
},
{
"name": "Run actions/checkout@v2",
"status": "completed",
"conclusion": "success",
"number": 2,
"started_at": "2020-01-20T09:42:41.000-08:00",
"completed_at": "2020-01-20T09:42:45.000-08:00"
},
```
What do you think in general? Would that be something worth implementing? If so, I am willing to provide a PR 💻
Contributor guide
Assessment
This issue has not been assessed yet.