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

TextFile Epoch #1314

Closed
Silmariil opened this issue Oct 24, 2023 · 2 comments
Closed

TextFile Epoch #1314

Silmariil opened this issue Oct 24, 2023 · 2 comments

Comments

@Silmariil
Copy link

Help me please. How to specify time in metrics on textfile?
When I specify the epoch after the counter or gauge, I get the error: "windows_textfile_scrape_error 1".
For example:

# TYPE MyMetricName_received counter
MyMetricName_received 4 1698127672757
@breed808
Copy link
Contributor

The textfile collector doesn't currently support timestamps for metrics; Only the metric value should be included.

@jkroepke
Copy link
Member

jkroepke commented Jan 8, 2024

There is a long discussion on node_exporter to follow-up: prometheus/node_exporter#769 (comment)

This issue is non-trivial and like node_exporter, we are not plan to support epoch/timestamp on textfile collector

@jkroepke jkroepke closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants