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

file_sd should have a metric for the timestamps of the files it's using #2757

Closed
brian-brazil opened this Issue May 22, 2017 · 4 comments

Comments

Projects
None yet
4 participants
@brian-brazil
Copy link
Member

brian-brazil commented May 22, 2017

This should work the same way as for the textfile collector.

@gouthamve

This comment has been minimized.

Copy link
Member

gouthamve commented Jul 21, 2017

Some pointers:

The text file collector does it by having a map and updating it on every read.

We could have the same translated to file_sd here: https://github.com/prometheus/prometheus/blob/master/discovery/file/file.go#L195-L211

@KalivarapuReshma

This comment has been minimized.

Copy link
Contributor

KalivarapuReshma commented Aug 5, 2017

I am working on this and will be opening a pull request in 2-3 days.

@cstyan

This comment has been minimized.

Copy link
Contributor

cstyan commented Dec 24, 2017

I think we can close this now, and close #3063

@gouthamve gouthamve closed this Dec 25, 2017

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 23, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.