Project

General

Profile

Actions

action #156061

closed

coordination #152773: [epic] Provide relevant squad metrics

Create new metrics for number of YAML files refactored by yam

Added by rainerkoenig 4 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
2024-02-26
Due date:
% Done:

0%

Estimated time:

Description

Motivation

One additional metric for Grafana could be the number of YAML files that we have in the schedule/yam folder, reflecting what we have refactored already on the tickets to reduce the overall amount of YAML schedules in openQA.

It is is really important to not break our current dashboard, that we don't loose any existing information so we can present metrics to management any time.
If the person working in this ticket needs a sandbox env. for that it should be created.

Additional info

Despite the existence of a GitHub data source in Grafana the job is probaly easier to achieve by a small custom script that does a frequent checkout of the GitHub repo master branch and then does a

find schedule/yam -name "*.yaml" | wc -l

to obtain the count of YAML files.

This count then should be sent to InfluxDB (easy by using Telegraf that executes frequently as a wrapper for that script), so that Grafana can use it.

Acceptance criteria

  • AC1: Create custom script to get the measurement
  • AC2: Create a Telegraf wrapper that calls this script by a defined schedule (e.g. daily) and pipes it to InfluxDB
  • AC3: Create a panel in Grafana that visualizes the measurements either as a time series (to see the progress) or a gauge (to see the current value)
Actions

Also available in: Atom PDF