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

/metrics endpoint for monitoring stats inside Seafile? #2418

Open
Cobertos opened this issue Jan 14, 2021 · 1 comment
Open

/metrics endpoint for monitoring stats inside Seafile? #2418

Cobertos opened this issue Jan 14, 2021 · 1 comment

Comments

@Cobertos
Copy link

It would be nice to have a Prometheus-style /metrics endpoint for monitoring Seafile instances. Things I could imagine wanting:

  • File system usages
  • Count of Libraries / Files
  • Count of users
  • Availability of WebDAV extra file serving endpoints
  • Count of any sort of file errors

Basically just an endpoint that would output something like the below

# HELP seafile_files File count in a specific library
# TYPE seafile_files gauge
seafile_files{name="library-1"} 12345
seafile_files{name="library-2"} 23456
seafile_files{name="library-3"} 34567

# HELP seafile_users Users
# TYPE seafile_users gauge
seafile_users 2

It would help a lot to externally monitor and alert based on the internal state of Seafile.

@webysther
Copy link

If make available a public dashboard for grafana and/or a exporter to plug in seafile will be better, because the user can choose enable the metrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants