!MkHFYXzwfMWVmleSoF:matrix.org

webhippie

6 Members
Webhippie project discussion and support1 Servers

Load older messages


SenderMessageTime
2 Sep 2021
@webhippie:matrix.orgwebhippie

Build failure promhippie/prometheus-hcloud-sd#29cde40e (master) by renovate-bot

02:37:50
13 Sep 2021
@webhippie:matrix.orgwebhippie

Build failure promhippie/prometheus-vcd-sd#e71bdcdd (master) by tboerger

11:55:18
5 Nov 2021
@wbeard1p:matrix.org@wbeard1p:matrix.org left the room.17:17:19
18 Apr 2022
@wybpip:matrix.org@wybpip:matrix.org joined the room.15:34:32
@wybpip:matrix.org@wybpip:matrix.org left the room.15:34:33
2 May 2022
@wybpip:matrix.org@wybpip:matrix.org joined the room.03:22:05
@wybpip:matrix.org@wybpip:matrix.org left the room.03:22:06
21 Jun 2022
@hfinch:matrix.org@hfinch:matrix.org left the room.20:10:21
26 Jun 2022
@better_sleeping:converser.eu@better_sleeping:converser.eu joined the room.23:52:30
@better_sleeping:converser.eu@better_sleeping:converser.eu left the room.23:52:39
8 May 2023
@suwako:hot-chilli.im@suwako:hot-chilli.im joined the room.06:34:33
11 May 2023
@suwako:hot-chilli.im@suwako:hot-chilli.im left the room.13:16:14
31 Aug 2023
@methizul:matrix.orgmethizul joined the room.20:16:08
@methizul:matrix.orgmethizulHi is this channel active? I need some help with the github-exporter20:16:33
@methizul:matrix.orgmethizulI have deployed the app as helm chart in a k3s cluster. I have enabled the flag GITHUB_EXPORTER_COLLECTOR_WORKFLOWS: true and I'm expecting to receive the metrics regarding the workflows as: github_workflow_duration_ms github_workflow_duration_run_created_minutes But I'm not receiving any metrics of that collector. The org collector and the billing collector are able to get data, but the workflow is empty20:18:13
26 Sep 2023
@tboerger:matrix.orgtboerger methizul: sadly there are some issues with the workflow exporter, looks like it's not as stable as I wish. I'm still trying to find a proper way to improve it. 18:10:43
9 Feb 2024
@dlouvier:matrix.orgdlouvier joined the room.15:18:55
@dlouvier:matrix.orgdlouvier

Hi folks,

I'm trying to build a DORA metrics dashboard based in the Worflows metrics (related issue) but I'm struggling to do it because I'm missing counters.

Before I go ahead, I would like to check if any of your tried to some something like that as I am trying to workaround the way the exporter is publishing the metrics, for example:
If a Job is ingested by the exporter, let's say: repo:MyRepo Workflow:Test Branch:main status:success run:100

The exporter creates a timeserie like:

github_workflow_status{..., repo:"MyRepo", workflow:"Test", branch:"main", run:"100", status:"success"}

and creates series every 30s (default ScrapeInterval) all the time like:
{..., repo:"MyRepo", workflow:"Test", branch:"main", run:"100", status:"success"} 7 @ timestamp
{..., repo:"MyRepo", workflow:"Test", branch:"main", run:"100", status:"success"} 7 @ timestamp (+ 30)
{..., repo:"MyRepo", workflow:"Test", branch:"main", run:"100", status:"success"} 7 @ timestamp (+ 30)
{..., repo:"MyRepo", workflow:"Test", branch:"main", run:"100", status:"success"} 7 @ timestamp (+30)

Until it reaches the Max Window time (default is 24h).

I hope I managed to explain the problem.

My question is:

Do you have any example how to count with these series format? As for example, I would like to know how many workflows runs succeed in a concrete period of time over a range (to create a dashboard with bars or line points) but with the problem that metrics keep reporting up to 24h I didn't mange.
I kind of sorted out reducing the windows period of time, but it doesn't seem to me a good way or checking instead github_workflow_updated_timestamp and searching by series with values between a range... but it is not ideal neither.

Probably I'm missing something on my PromQL so I would like to confirm if any of you saw and resolve something similar before keeping reinventing the wheel :)

Thank you

15:29:26
14 Feb 2024
@dlouvier:matrix.orgdlouvier
In reply to @dlouvier:matrix.org

Hi folks,

I'm trying to build a DORA metrics dashboard based in the Worflows metrics (related issue) but I'm struggling to do it because I'm missing counters.

Before I go ahead, I would like to check if any of your tried to some something like that as I am trying to workaround the way the exporter is publishing the metrics, for example:
If a Job is ingested by the exporter, let's say: repo:MyRepo Workflow:Test Branch:main status:success run:100

The exporter creates a timeserie like:

github_workflow_status{..., repo:"MyRepo", workflow:"Test", branch:"main", run:"100", status:"success"}

and creates series every 30s (default ScrapeInterval) all the time like:
{..., repo:"MyRepo", workflow:"Test", branch:"main", run:"100", status:"success"} 7 @ timestamp
{..., repo:"MyRepo", workflow:"Test", branch:"main", run:"100", status:"success"} 7 @ timestamp (+ 30)
{..., repo:"MyRepo", workflow:"Test", branch:"main", run:"100", status:"success"} 7 @ timestamp (+ 30)
{..., repo:"MyRepo", workflow:"Test", branch:"main", run:"100", status:"success"} 7 @ timestamp (+30)

Until it reaches the Max Window time (default is 24h).

I hope I managed to explain the problem.

My question is:

Do you have any example how to count with these series format? As for example, I would like to know how many workflows runs succeed in a concrete period of time over a range (to create a dashboard with bars or line points) but with the problem that metrics keep reporting up to 24h I didn't mange.
I kind of sorted out reducing the windows period of time, but it doesn't seem to me a good way or checking instead github_workflow_updated_timestamp and searching by series with values between a range... but it is not ideal neither.

Probably I'm missing something on my PromQL so I would like to confirm if any of you saw and resolve something similar before keeping reinventing the wheel :)

Thank you

Hi, I just wanted to know, I kind of solve this problem differently:

Something like this:
count by (repo,run) (github_workflow_status{status="in_progress",repo=~"$REPOSITORY"} unless (github_workflow_status{status="in_progress",repo=~"$REPOSITORY"} offset 3m)) or vector(0)

09:53:29
22 Feb 2024
@tboerger:matrix.orgtboergerGreat that you found a way!07:40:36
12 Mar 2024
@piles:matrix.orgOran Shuster joined the room.13:10:59
@piles:matrix.orgOran ShusterHeyo are there any plans to add metrics for jobs and not just workflows?13:11:18
15 Mar 2024
@tboerger:matrix.orgtboerger Oran Shuster: what kind of metric? 14:04:32
19 Mar 2024
@piles:matrix.orgOran Shuster
In reply to @tboerger:matrix.org
Oran Shuster: what kind of metric?
for example -
i have a workflow called "Deploy service"
it has 2 jobs inside it: 1.Calculate changes 2.Deploy
current metrics are only on the workflow level, there is API to get the job runs of a specific workflow run
12:27:42
@tboerger:matrix.orgtboergerBefore the integration of the webhooks I have kept it in workflow on purpose, since the webhooks are integrated it could be possible to implement job metrics. Maybe it makes sense to add another collector for these more detailed metrics.12:57:57
@piles:matrix.orgOran Shuster
In reply to @tboerger:matrix.org
Before the integration of the webhooks I have kept it in workflow on purpose, since the webhooks are integrated it could be possible to implement job metrics. Maybe it makes sense to add another collector for these more detailed metrics.

you mean workflow metrics are not pulled but received through webhooks?
i know that these can be fetch using the github API as i wrote some python code to monitor them before we started using the exporter

13:40:26
@piles:matrix.orgOran Shuster
In reply to @tboerger:matrix.org
Before the integration of the webhooks I have kept it in workflow on purpose, since the webhooks are integrated it could be possible to implement job metrics. Maybe it makes sense to add another collector for these more detailed metrics.
*

you mean workflow metrics are not pulled but received through webhooks?
i know that these can be fetch using the github API as i wrote some python code to monitor them before we started using the exporter

            runs = g.get_repo(full_name_or_id=repo_name).get_workflow_runs()
            jobs_dict = {"day": [], "job_title": [], "duration_seconds": [], "id": []}
            total_runs = 0

            for run in runs:
                if run.status not in ["success", "failure", "timed_out", "completed"]:
                    continue
                run_day = run.run_started_at
                jobs = run.jobs()
                for job in jobs:
13:40:53
@tboerger:matrix.orgtboerger Github is pushing the workflow metrics via webhook to the exporter, otherwise the rate limiting is hitting quite fast 13:42:10
@piles:matrix.orgOran Shusterright. rate limiting was hitting my script all the time13:44:30
@tboerger:matrix.orgtboerger That's why the exporter switched to webhooks 13:50:00

There are no newer messages yet.


Back to Room ListRoom Version: