Storage analytics for Kubernetes: for a detailed description see my accompanying blog post.
When consuming storage in Kubernetes through PersistentVolumeClaims and using a CSI provisioner, there is no visibility into the storage layer itself. The only information visible from Kubernetes is the capacity allocation per PersistentVolume, which leaves almost all useful storage administration questions unanswered:
The origin of this problem is that Kubernetes has only half the necessary info, e.g. labels and statefulsets. And the storage system has the other half: space usage, data reduction, and performance stats. To have full visibility into the storage usage of your kubernetes applications, you need to merge these two views.
PSO-analytics is a deployment that periodically correlates storage usage and data reduction rates across multiple dimensions:
To install in the 'pso-analytics' namespace:
kubectl apply -f https://raw.githubusercontent.com/joshuarobinson/pso-analytics/master/pso-analytics.yaml
Download and modify the yaml to change the namespace or periodicity of output.
To view the output:
kubectl logs -n=pso-analytics deployment.apps/pso-analytics
Added support for a Prometheus endpoint via the command line flag '--prometheus' on port 9492.
Configure Prometheus to scrape pso-analytics as follows:
scrape_configs:
- job_name: 'pso-analytics-monitor'
static_configs:
- targets: ['pso-analytics:9492']
Limitations:
Content type
Image
Digest
Size
37.8 MB
Last updated
over 6 years ago
docker pull menardorama/pso-analytics