[Python] Get a list of all mounted file systems in Linux using prometheus

Discussão em 'Python' iniciado por Stack, Novembro 27, 2024.

  1. Stack

    Stack Membro Participativo

    I used the following prometheus metric to get the available space under root directory, by changing mountpoint, I can get the available space for all other locations. How can I get the list of all mounted directories(similar result generated with df command in linux to be used for mountpoint) through prometheus or python?

    node_filesystem_avail_bytes{mountpoint="/",fstype!="rootfs"}

    Continue reading...

Compartilhe esta Página