I installed the Prometheus operator in my Kubernetes cluster and can able to execute queries in the Prometheus Query Prompt.
For example
((node_filesystem_avail_bytes{mountpoint="/",fstype!="rootfs"} ))
I want to execute the same command through my java program. Is there any API's available and how to integrate it?
I only saw http://hostname:9090/metrics . But I didn't see any API matching my requirement