Git Product home page Git Product logo

Comments (4)

nischalstha9 avatar nischalstha9 commented on June 5, 2024 1

Just in case if you want to monitor just the size of directory. Created my custom exporter
https://github.com/nischalstha9/prometheus-directory-size-exporter

from filestat_exporter.

michael-doubez avatar michael-doubez commented on June 5, 2024

Not as such. You can compute metrics from the files inside a directory: count() for the number of files, sum() on file size for directory size and max() on timestamp for last modification.

from filestat_exporter.

ottoayoub avatar ottoayoub commented on June 5, 2024

Hello michael, how about monitoring files in 2 separated directories?
is there a way to monitor two directories with the same configfile.yml?

from filestat_exporter.

carolili avatar carolili commented on June 5, 2024

I was able to use the following configuration from the example in the README, in case it helps. You would need to find a list of file extensions or patterns to monitor in order to catch files in your directory. If you don't have a pattern among the files it would be more difficult.

      files:
        - patterns: ["directory1/myfile-*"]
        - patterns: ["directory2/otherfile-*"]

from filestat_exporter.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.