Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export resource usage statistics #119

Open
a-thaler opened this issue Nov 12, 2024 · 0 comments
Open

Export resource usage statistics #119

a-thaler opened this issue Nov 12, 2024 · 0 comments

Comments

@a-thaler
Copy link
Collaborator

a-thaler commented Nov 12, 2024

Description

If cluster usage can be collected and exported successfully, but still the data does not arrive in the target system because of problems out of control of KMC, it is very helpful to see what data got tracked. Also, making the data introspectable will help troubleshooting.

Goal: Provide transparency on billed items by exporting the technical usage data as operational metrics

Criterias:

  • For every resource usage being collected, a corresponding gauge metric gets exported
  • Metric is labeled with the action and optional resource type (machine type, redis tier,..)
  • Naming is consistent to changes done here: Migrate to otel_sdk instead of prometheus_client #121

Metrics proposal:

  • kmc_collected_machine_instances{type="n2_standard4", shoot="123", globalaccount_id,="xxx" subaccount_id="xxx", instance_id="xxx"} 5
  • kmc_collected_volume_bytes{type="default", shoot="123",globalaccount_id,="xxx" subaccount_id="xxx", instance_id="xxx"} 582378
  • kmc_collected_volumebackups_bytes{type="default", shoot="123",globalaccount_id,="xxx" subaccount_id="xxx", instance_id="xxx"} 43434545
  • kmc_collected_cloudmanager_nfs_bytes{type="default", shoot="123",globalaccount_id,="xxx" subaccount_id="xxx", instance_id="xxx"} 44356
  • kmc_collected_cloudmanager_redis_instances{type="S1", shoot="123",globalaccount_id,="xxx" subaccount_id="xxx", instance_id="xxx"} 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant