{"id":33017633,"url":"https://github.com/jsclayton/prometheus-plex-exporter","last_synced_at":"2026-02-26T10:42:33.827Z","repository":{"id":158231661,"uuid":"615856778","full_name":"jsclayton/prometheus-plex-exporter","owner":"jsclayton","description":"Export metrics from your Plex Media Server","archived":false,"fork":false,"pushed_at":"2024-08-21T16:07:42.000Z","size":1647,"stargazers_count":148,"open_issues_count":17,"forks_count":22,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-11-23T06:02:51.483Z","etag":null,"topics":["grafana","grafana-agent","plex","plex-media-server","prometheus","prometheus-exporter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsclayton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-18T21:52:35.000Z","updated_at":"2025-11-18T00:58:26.000Z","dependencies_parsed_at":"2024-01-13T22:53:32.748Z","dependency_job_id":"b28c2a79-61f6-42fd-a378-db75c9b7ee06","html_url":"https://github.com/jsclayton/prometheus-plex-exporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jsclayton/prometheus-plex-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsclayton%2Fprometheus-plex-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsclayton%2Fprometheus-plex-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsclayton%2Fprometheus-plex-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsclayton%2Fprometheus-plex-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsclayton","download_url":"https://codeload.github.com/jsclayton/prometheus-plex-exporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsclayton%2Fprometheus-plex-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29856746,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T08:51:08.701Z","status":"ssl_error","status_checked_at":"2026-02-26T08:50:19.607Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["grafana","grafana-agent","plex","plex-media-server","prometheus","prometheus-exporter"],"created_at":"2025-11-13T18:00:36.953Z","updated_at":"2026-02-26T10:42:33.822Z","avatar_url":"https://github.com/jsclayton.png","language":"Go","funding_links":[],"categories":["Install from Source"],"sub_categories":["Media Server"],"readme":"# Prometheus Exporter for Plex\n\nExpose library playback, storage, and host metrics in a Prometheus format.\n\n# Configuration\n\nThe exporter is configured via required environment variables:\n\n- `PLEX_SERVER`: The full URL where your server can be reached, including the scheme and port (if not 80 or 443). For example `http://192.168.0.10:32400` or `https://my.plex.tld`.\n- `PLEX_TOKEN`: A [Plex token](https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/) belonging to the server administrator. \n\n# Running\n\nThe exporter runs via Docker:\n\n```bash\ndocker run \\\n  -name prom-plex-exporter \\\n  -p 9000:9000 \\\n  -e PLEX_SERVER=\"\u003cYour Plex server URL\u003e\" \\\n  -e PLEX_TOKEN=\"\u003cYour Plex server admin token\u003e\" \\\n  ghcr.io/jsclayton/prometheus-plex-exporter\n```\n\nOr via Docker Compose:\n\n```yaml\nprom-plex-exporter:\n  image: ghcr.io/jsclayton/prometheus-plex-exporter\n  ports:\n    - 9000:9000/tcp\n  environment:\n    PLEX_SERVER: \u003cYour Plex server URL\u003e\n    PLEX_TOKEN: \u003cYour Plex server admin token\u003e\n```\n\nA sample dashboard can be found in the [examples](examples/dashboards/Media%20Server.json)\n\n# Exporting Metrics\n\nThe simplest way to start visualizaing your metrics is with the Free Forever [Grafana Cloud](https://grafana.com/docs/grafana-cloud/) and [Grafana Agent](https://grafana.com/docs/agent/latest/).\n\nHere's an example config file that will read metrics from the exporter and ship them to [Prometheus](https://grafana.com/docs/grafana-cloud/data-configuration/metrics/metrics-prometheus/) via `remote_write`:\n\n\n```yaml\nmetrics:\n  configs:\n  - name: prom-plex\n    scrape_configs:\n      - job_name: prom-plex\n        static_configs:\n          - targets:\n            - \u003cIP/address and port of the exporter endpoint\u003e\n    remote_write:\n      - url: \u003cYour Metrics instance remote_write endpoint\u003e\n        basic_auth:\n          username: \u003cYour Metrics instance ID\u003e\n          password: \u003cYour Grafana.com API Key\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsclayton%2Fprometheus-plex-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsclayton%2Fprometheus-plex-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsclayton%2Fprometheus-plex-exporter/lists"}