URI:
       add `metric_` prefix to all collector variables - jellyfin-exporter - 🐟 quick & dirty jellyfin prometheus exporter. wip
  HTML git clone https://git.drkhsh.at/jellyfin-exporter.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 9dc87bcab03de3bab74f0d4f73b4da1b94123c67
   DIR parent 5cd6b5b790d0178581ad1f13748a0f0f5071b8d3
  HTML Author: drkhsh <me@drkhsh.at>
       Date:   Mon, 29 May 2023 00:09:10 +0200
       
       add `metric_` prefix to all collector variables
       
       finishes renaming from last commit.
       
       Diffstat:
         M jellyfin_exporter.py                |      24 ++++++++++++------------
       
       1 file changed, 12 insertions(+), 12 deletions(-)
       ---
   DIR diff --git a/jellyfin_exporter.py b/jellyfin_exporter.py
       @@ -85,28 +85,28 @@ class JellyfinCollector(object):
                    metric_sessions_count_active.add_metric([API_BASEURL], sessions_count_active)
                    yield metric_sessions_count_active
        
       -            streams = GaugeMetricFamily(
       +            metric_streams = GaugeMetricFamily(
                        'jellyfin_active_streams_count', 'Jellyfin active streams count', labels=['jellyfin_instance'])
       -            streams.add_metric([API_BASEURL], streams_count)
       -            yield streams
       +            metric_streams.add_metric([API_BASEURL], streams_count)
       +            yield metric_streams
        
       -            streams_direct = GaugeMetricFamily(
       +            metric_streams_direct = GaugeMetricFamily(
                        'jellyfin_active_streams_direct_count', 'Jellyfin active streams count (direct)', labels=['jellyfin_instance'])
       -            streams_direct.add_metric([API_BASEURL], streams_direct_count)
       -            yield streams_direct
       +            metric_streams_direct.add_metric([API_BASEURL], streams_direct_count)
       +            yield metric_streams_direct
        
       -            streams_transcode = GaugeMetricFamily(
       +            metric_streams_transcode = GaugeMetricFamily(
                        'jellyfin_active_streams_transcode_count', 'Jellyfin active streams count (transcode)', labels=['jellyfin_instance'])
       -            streams_transcode.add_metric([API_BASEURL], streams_transcode_count)
       -            yield streams_transcode
       +            metric_streams_transcode.add_metric([API_BASEURL], streams_transcode_count)
       +            yield metric_streams_transcode
        
                    items_counts_data = request_api('/Items/Counts')
        
       -            items_counts = GaugeMetricFamily(
       +            metric_items_counts = GaugeMetricFamily(
                        'jellyfin_item_counts', 'Jellyfin items counts', labels=['type', 'jellyfin_instance'])
                    for metric, val in items_counts_data.items():
       -                items_counts.add_metric([metric, API_BASEURL], val)
       -            yield items_counts
       +                metric_items_counts.add_metric([metric, API_BASEURL], val)
       +            yield metric_items_counts
        
                except Exception as ex:
                    logging.error('Error getting metrics: %s', ex)