grafana / github-datasource

Grafana data source plugin using the Github API to retrieve and visualize Github data.
https://grafana.com/grafana/plugins/grafana-github-datasource/
Apache License 2.0
227 stars 54 forks source link

[Feature Request] Workflow Details - Single Job Step Durations #326

Open theurichde opened 4 weeks ago

theurichde commented 4 weeks ago

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 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 💻