You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds workflow_job_duration_seconds and other small improvements (#38)
* adds .idea dir to .gitignore
Signed-off-by: Jan Akerman <[email protected]>
* handles body read error
Signed-off-by: Jan Akerman <[email protected]>
* adds guard for workflow job queued event handling...
where no steps are present
Signed-off-by: Jan Akerman <[email protected]>
* adds debug logging of event payload
Signed-off-by: Jan Akerman <[email protected]>
* updates binary name from make build
The Dockerfile expects the updated name.
Aligning the two makes building local images
easier.
Signed-off-by: Jan Akerman <[email protected]>
* calculates workflow_job duration from job timestamps
Instead of using the step timestamps which are not
always present. This is an improvement for two reasons
* We don't need logic as to which event type is needed,
just that it has the required timestamp fields.
* GitHub sometimes sends strange events that are marked
as completed but with partially completed steps.
* Also fixes issue whereby a lack of timestamp results
in dropping the count metric for that job due to
incorrect use of return instead of break.
Signed-off-by: Jan Akerman <[email protected]>
* adds status and conclusion labels to coun metrics
i.e workflow_job_status_count and workflow_status_count.
Previously, for completed status webhooks, conclusion was
being used as the status. However, having both of these
labels allows you to query for all completed jobs
(e.g status="completed") whilst also providing the
granularity on the reasons in conclusion.
Generally, it's making less assumptions about the
webhook contents and just displaying what GitHub
sends - so any future changes against current
assumptions will show in the metrics labels.
Signed-off-by: Jan Akerman <[email protected]>
* adds workflow_job_duration_seconds_total
* Metric is a counter for total job duration. Useful
for more accurate usage as workflow_job_duration_seconds
is a histogram that uses buckets, thus loosing this accuracy.
* Updates server_test with additional assertion
* Closes body correctly
* Removes workflow job skipped tests as they are no longer handled
differently than any other event with completed status.
Signed-off-by: Jan Akerman <[email protected]>
Signed-off-by: Jan Akerman <[email protected]>
Co-authored-by: Carlos Tadeu Panato Junior <[email protected]>
0 commit comments