Skip to content

Generate counter metric for total clones per day overall and by pool #600

@genebean

Description

@genebean

The data from here includes data like shown below... this could be used to populate a metric to track how many VMs are cloned each day. For example...

curl https://vmpooler.example.net/api/v3/summary\?from\=2023-07-01\&to\=2023-07-01 |jq '.clone.count' 

returns this:

{
  "total": 6066,
  "pool": {
    "debian-11-x86_64": {
      "total": 57
    },
    "ubuntu-2004-x86_64": {
      "total": 237
    },
    "rocky-8-x86_64": {
      "total": 159
    },
    "centos-7-x86_64-pixa4": {
      "total": 645
    },
    "ubuntu-1804-x86_64": {
      "total": 371
    },
    "redhat-8-x86_64": {
      "total": 255
    },
    "redhat-fips-7-x86_64": {
      "total": 200
    },
    "redhat-7-x86_64-pixa4": {
      "total": 317
    },
    "sles-15-x86_64-pixa4": {
      "total": 164
    },
    "redhat-fips-7-x86_64-pixa4": {
      "total": 189
    },
    "redhat-fips-8-x86_64-pixa4": {
      "total": 145
    },
    "redhat-7-x86_64": {
      "total": 218
    },
    "macos-112-x86_64": {
      "total": 51
    },
    "sles-15-x86_64": {
      "total": 152
    },
    "centos-6-i386": {
      "total": 23
    },
    "redhat-8-x86_64-pixa4": {
      "total": 238
    },
    "centos-7-x86_64": {
      "total": 540
    },
    "almalinux-8-x86_64": {
      "total": 131
    },
    "win-11-ent-x86_64": {
      "total": 34
    },
    "sles-12-x86_64-pixa4": {
      "total": 252
    },
    "sles-12-x86_64": {
      "total": 232
    },
    "redhat-fips-8-x86_64": {
      "total": 220
    },
    "ubuntu-1804-x86_64-pixa4": {
      "total": 325
    },
    "win-10-ent-i386": {
      "total": 42
    },
    "solaris-114-x86_64": {
      "total": 24
    },
    "win-2012r2-fips-x86_64": {
      "total": 40
    },
    "debian-10-x86_64": {
      "total": 68
    },
    "rhel-8-x64-kurl-beta-gce-e2-custom-8-16384": {
      "total": 8
    },
    "win-2019-x86_64": {
      "total": 52
    },
    "win-2022-x86_64": {
      "total": 41
    },
    "win-10-ent-x86_64": {
      "total": 46
    },
    "fedora-36-x86_64": {
      "total": 34
    },
    "redhat-9-x86_64": {
      "total": 52
    },
    "win-2012r2-x86_64": {
      "total": 85
    },
    "ubuntu-2204-x86_64": {
      "total": 52
    },
    "ubuntu-2004-x86_64-pixa4": {
      "total": 190
    },
    "win-2019-ja-x86_64": {
      "total": 4
    },
    "oracle-7-x86_64": {
      "total": 17
    },
    "win-2016-x86_64": {
      "total": 47
    },
    "macos-12-x86_64": {
      "total": 47
    },
    "centos-6-x86_64": {
      "total": 23
    },
    "solaris-11-x86_64": {
      "total": 5
    },
    "redhat-6-x86_64": {
      "total": 15
    },
    "solaris-10-x86_64": {
      "total": 9
    },
    "win-10-next-x86_64": {
      "total": 2
    },
    "win-2012-x86_64": {
      "total": 2
    },
    "win-10-pro-x86_64": {
      "total": 2
    },
    "oracle-6-x86_64-pixa4": {
      "total": 1
    },
    "redhat-6-i386": {
      "total": 2
    },
    "oracle-6-x86_64": {
      "total": 1
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions