Create an audit log of deleted runners by namespace

Overview

In the Implement worker to remove stale runners from GitLab SaaS issue, we are introducing a background job that will regularly prune stale runners from a given namespace. We should have an audit log of the pruned runners ids by namespace.

Proposal

  • Create an audit log of deleted runners by namespace.

Implementation details

  • Audit log format: Deleted 2 stale runners in namespace with ID 10, from a list of 3 runners with the following IDs: \[343, 897, 8743\]

  • audit log metadata:

    • a namespace ID
    • an array of runner IDs requested for deletion, and
    • the total count of runners actually deleted.
Edited by 🤖 GitLab Bot 🤖