diff --git a/doc/config.md b/doc/config.md
index ccf3d27b..7fd92d5c 100644
--- a/doc/config.md
+++ b/doc/config.md
@@ -366,9 +366,9 @@ This is one of the features in GARM that I really love having. For one thing, it
### Job metrics
-| Metric name | Type | Labels | Description |
-|---------------------------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------|
-| `garm_job_status` | Gauge | `job_id`=<job id>
`name`=<job name>
`status`=<job status>
`conclusion`=<job conclusion>
`runner_name`=<runner name>
`repository`=<repository>
`requested_labels`=<requested labels> | List of jobs and their status |
+| Metric name | Type | Labels | Description |
+|-------------------|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------|
+| `garm_job_status` | Gauge | `job_id`=<job id>
`workflow_job_id`=<workflow job id>
`scaleset_job_id`=<scaleset job id>
`workflow_run_id`=<workflow run id>
`name`=<job name>
`status`=<job status>
`conclusion`=<job conclusion>
`runner_name`=<runner name>
`owner`=<owner>
`repository`=<repository>
`requested_labels`=<requested labels> | List of jobs and their status |
### Github metrics
diff --git a/metrics/jobs.go b/metrics/jobs.go
index 7883b41d..71424f7d 100644
--- a/metrics/jobs.go
+++ b/metrics/jobs.go
@@ -32,6 +32,7 @@ var JobStatus = prometheus.NewGaugeVec(prometheus.GaugeOpts{
"status",
"conclusion",
"runner_name",
+ "owner",
"repository",
"requested_labels",
})
diff --git a/runner/metrics/jobs.go b/runner/metrics/jobs.go
index dadb663c..6183b843 100644
--- a/runner/metrics/jobs.go
+++ b/runner/metrics/jobs.go
@@ -43,6 +43,7 @@ func CollectJobMetric(ctx context.Context, r *runner.Runner) error {
job.Status, // label: status
job.Conclusion, // label: conclusion
job.RunnerName, // label: runner_name
+ job.RepositoryOwner, // label: owner
job.RepositoryName, // label: repository
strings.Join(job.Labels, " "), // label: requested_labels
).Set(1)