Skip to content

[Feature]: Include Logged-In Username in Prometheus Metrics #2120

@CorentinMe

Description

@CorentinMe

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

Description
It would be very helpful to include the username of the currently logged-in user in the Prometheus-exposed metrics.
At the moment, the metrics provide global information about sessions or traffic, but they don’t allow identifying which user a metric refers to. Adding this information would enable more granular monitoring and user-level visibility.

Proposal
Add a user label (or similar) to relevant metrics, especially those related to sessions, connections, or data transfers.

Example:
sftpgo_active_sessions{user="john_doe"} 1
sftpgo_bytes_sent{user="john_doe"} 2048

Use Cases

  • Per-user activity monitoring.
  • Tracking actual usage per client in multi-tenant environments.

Describe alternatives you've considered

No response

What are you using SFTPGo for?

Medium business

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions