StashApp Prometheus Exporter / Grafana Dashboards - Collect metrics and visualize your library

:placard: Summary Metrics and Stats to Prometheus / Grafana
:link: Repository https://codeberg.org/surging9143/stashapp-prometheus-exporter

I see there has been quite a few attempts at stats / dashboard plugins, but none really fit what i wanted. So might aswell add it into my current monitoring stack.

The beauty of having this in Prometheus / Grafana is that you can really build whatever you want and derive statistics however you want.

For me, like 80% of the fun of stash comes from organization, and metrics is just more ways to organize and visualize that data.

This Queries your Stash instance and exposes metrics like total scenes, images, performers, watch time, and play patterns (by day of week and hour of day) on /metrics for Prometheus to scrape. aswell as much more.

Suggestions on what metrics to scrape is welcome!

See dashboards/stashapp-overview.json for a Grafana dashboard example.

Check out the github readme for a more complete overview.

1 Like

Other projects with more metrics you can look towards

I also have a timeseries browser but it’s more focused on snapshot-to-snapshot relative changes

1 Like

thanks, took some inspiration and did another pass with focus on metadata/curation completion!

Your timeseries dashboard is great addition!, added a daily diff graph to my grafana dash. Since prometheus stores this data as time series anyway, we could query this with the existing data we collect easily.

If you update prometheus to run run every 12h, it would be pretty much the same thing, just with more possibilities for customization

1 Like

Some updates, made a lot of improvements to this, we now track more, o-counts etc, most played tags and other fun insights

based on Stats Enhancement - #24 by jas39 (thanks) I have fetched more metrics based on performer demographic.

Working on clickable grafana dash so you can click any field and get the filtered search in stash. its enabled for some easy ones, like age and countries

1 Like

Is this private? Can’t seem to find it.

Hmm, no. Should be here surging9143/stashapp-prometheus-exporter - Codeberg.org