-
Notifications
You must be signed in to change notification settings - Fork 4
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
Persistent Volume Hourly Cost Metric #95
Comments
Could we also just have one metric for each PVC, just cost per hour. If we need to scrape all PVCs, we also know there size, then we also know there total cost. Or is it somehow possible that a PVC is shared between namespaces? |
|
I'll have a better answer to both questions once I start the implementation. It might end up being a dedicated module, but persistent volumes in particular are directly related to k8s resources so I think I like the notion of a single metric which takes into account exactly how much that pvc costs per hour as it simplifies things down stream in terms of queries. As long as there's no technical blocker, that's how I'll roll this out. |
This implements a `ListDisks` method in `gke` that is then used to list out disks for the GKE projects by zone. `ListDisks` will currently return a raw `compute.Disk` struct that is filtered by 2. Disks only associated with GKE clusters - Relates to #95
Closing in favor of using existing issues. AWS is being implemented by @paulajulve(https://github.com/grafana/deployment_tools/issues/149203), and Azure still has to be planned out and picked up. |
So far we've focused our efforts on exporting metrics for the following resources:
One metric distinctly missing is tracking the hourly cost for persistent volumes.
We would need two metrics:
These two metrics can then be joined together to calculate the total in spend (
spend = usage * rate
) for persistent volumes.For both metrics, we need need the following labels:
persistentvolume
- The name of the persistent volumenamespace
- The namespace the pvc exists incluster
- The cluster the pvc exists instorage_class
- Whether or not it's an SSD or HDDlocation
- The region the pvc lives inTasks
The text was updated successfully, but these errors were encountered: