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

Add metrics for created/uploaded files #12

Open
0237h opened this issue Jan 24, 2025 · 0 comments
Open

Add metrics for created/uploaded files #12

0237h opened this issue Jan 24, 2025 · 0 comments

Comments

@0237h
Copy link

0237h commented Jan 24, 2025

Hey guys,

I was setting up a dashboard from the Prometheus metrics exposed by the sink and was expecting some metrics related to number of files pushed, block boundaries, etc.

The logs shows they are statistics for this:
Example

{
  "severity": "INFO",
  "timestamp": "2025-01-24T16:53:13.354844397Z",
  "logger": "substreams-sink-files",
  "message": "bundler stats",
  "file_count": 1,
  "boundary": "[103820000, 103830000)",
  "boundary_process_duration": 540.815151105,
  "upload_duration": 0,
  "data_process_duration": 523.512221366,
  "avg_upload_dur": 0,
  "total_upload_dur": 0,
  "avg_boundary_process_dur": 540.815151105,
  "total_boundary_process_dur": 540.815151105,
  "avg_data_process_dur": 523.512221366,
  "total_data_process_dur": 523.512221366,
  "logging.googleapis.com/labels": {}
}

Note

On a side note, it seems like upload_duration isn't working as expected being always set to 0

Would be awesome to get access to those through with gauge/counter/histogram Prometheus metrics.

@0237h 0237h changed the title Add metrics for created files Add metrics for created/uploaded files Jan 24, 2025
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

1 participant