Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

collect metrics and output a bill #3

Open
@meherhendi

Description

  • get metrics for each billing account.
  • get namespace metrics from Kubecost.
  • verify connection to Kubecost, Rancher, and Kubernetes APIs is working at all times (before every billing operation), and send an alert when the connection is lost.
  • calculate bill using collected metrics for each project under the pay-per-use model: the balance is calculated and updated every 1 hour.
  • generate a bill and save it in object storage using these conditions:
      • under pay-per-use model: current date is 5 days away from the next billing cycle
      • under pay-per-use model: the account reaches critical balance.
      • under plan model: current date is 5 days away from the next billing cycle.
  • send an email to each billing account's billingAdmins admins.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions