Skip to content

feat: Prometheus metrics #438

@Kernald

Description

@Kernald

Please check existing knowledge before opening an issue

Describe the new functionality

There currently isn't a great way to monitor the status of a multi-scrobbler instance. The /api/health endpoint gives some good insight, but doesn't really follow any standard beyond returning a status code. It would be great having this exposed as Prometheus metrics, e.g. right now on my instance I have the following output for /api/health:

{
  "messages": [
    "Source ytmusic - kernald-ytm requires authentication.",
    "Source ytmusic - kernald-ytm is not polling."
  ]
}

Having metrics like:

multi_scrobbler_source_issues{ytmusic-kernald-ytm} 2

Would make it easy to actually monitor and firing alerts when something goes wrong.

Configuration Example

Will you help implement it?

  • I am willing to contribute code towards completing this feature
  • I am willing to help test preview builds for this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions