Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to skip sample collection if file write time is too old #509

Open
tt2468 opened this issue Jul 5, 2024 · 1 comment
Open

Option to skip sample collection if file write time is too old #509

tt2468 opened this issue Jul 5, 2024 · 1 comment
Labels
feature request Categorizes issue or PR as related to a new feature or enhancement.

Comments

@tt2468
Copy link

tt2468 commented Jul 5, 2024

Description

I've searched as hard as I can and can't seem to find this functionality in nri-flex.

I have a file on disk which gets written to every 30 seconds. I would like to have nri-flex skip sampling from the file if it hasn't been modified within a configurable time. This is to prevent potentially inaccurate data from being sampled if, say, the program writing the file crashes.

Acceptance Criteria

Unknown

Describe Alternatives

In theory, I could use run: instead of file:, but that would mean I'm suddenly having to implement a bunch of handling that file: probably already takes care of. If I ping my program with HTTP and it has crashed, it obviously won't respond. But there's no reliable way to have such implicit behavior with writing files to disk outside of checking the last modified time.

Dependencies

Unknown

Additional context

None

Estimates

Unknown

@tt2468 tt2468 added the feature request Categorizes issue or PR as related to a new feature or enhancement. label Jul 5, 2024
@workato-integration
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Categorizes issue or PR as related to a new feature or enhancement.
Projects
None yet
Development

No branches or pull requests

1 participant