Conversation
Two things come to mind that could probably be easily improved here:
|
@Ferroin thx for suggestions!
yes, same goes for a file
It is one
There are 3 charts for file checks and 3 charts for dir checks (files/dirs - dimensions). Doesnt look like a problem. In general i would like to have some global filtering by netdata daemon instead of making everything optional in every collector. |
If there are any requests we will add this, np. But not in this PR. |
I created the following structure to test:
I observed that when I changed
But, when I removed the file
I think I am missing something, but I was expecting the dimension would receive |
What is wrong here? No file - no size.
I dont think so, it is ok to have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR is working as expected. I tested it using the reported structure and doing the following tests:
- First test: I set directories, files and links, and the configuration file had the correct specification for each one of these files.
- Second test: I changed the configuration file moving the files to directory section and vice versa. The collector identified the "mistake" and it did not move forward.
LGTM.
All such scenarios (add/remove files/dirs during runtime) should be in tests, testing manually is not good. We will add them later |
I agree, but I have to understand the whole collector, so the tests were necessary! 😄 |
Hello, I'm trying use this plugin, but I think it isn't working properly. My config, using:
Is:
Testing it with this code:
The output is:
It continue without any more information, and I can't show anything in my cloud dashboard. What could be the problem? Thanks! |
Hey @Fran17mc Welcome to our little community :) One of the Agent engineers will come on this shortly. The interruption at the end is due to your action, right? It appears to be working normally. |
Fixes: netdata/netdata#9794
Filecheck collects
files
anddirectories
statistics.Files statistics:
Directories statistics:
It produces the following file check charts (chart dimension - filepath):
boolean
seconds
bytes
Dir check charts (chart dimension - dirpath):
boolean
seconds
files
Example configuration:
Limitations of the current version:
stat
call is used to gather metrics on every iteration for every file/dir.We will improve this module later, the goal is to provide the functionality.