Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prometheus Server unable to scrape metrics #28

Open
wamak9 opened this issue Sep 8, 2024 · 0 comments
Open

Prometheus Server unable to scrape metrics #28

wamak9 opened this issue Sep 8, 2024 · 0 comments

Comments

@wamak9
Copy link

wamak9 commented Sep 8, 2024

This is current Prometheus config I am using.

- job_name: prom-plex
  honor_timestamps: true
  track_timestamps_staleness: false
  scrape_interval: 30m
  scrape_timeout: 1m
  scrape_protocols:
  - OpenMetricsText1.0.0
  - OpenMetricsText0.0.1
  - PrometheusText0.0.4
  metrics_path: /metrics
  scheme: http
  enable_compression: true
  follow_redirects: true
  enable_http2: true
  static_configs:
  - targets:
    - XXXXXXXXXX:9000

This is what I see on Prometheus UI

Last Scrape | Scrape Duration | Error
-- | -- | --
http://XXXXXXXXXX:9000/metrics | DOWN | instance="XXXXXXXXXX:9000"job="prom-plex" | 19m 13s ago | 3.873ms | server returned HTTP status 404 Not Found

not sure what I am missing here ?

on the doccker logs for plex-exporter, I also see

level=info msg="Successfully connected" machineID=xxxxxxxxx server=xxxxxxxxxx
unknown websocket event name: status
unknown websocket event name: progress
unknown websocket event name: status

docker-compose file

version: "3"

services:
  prom-plex:
    image: ghcr.io/jsclayton/prometheus-plex-exporter:latest
    container_name: plex-exporter
    restart: always
    network_mode: host
    environment:
      PLEX_SERVER: "http://xxxxxxxxxx:32400/web"
      PLEX_TOKEN: "XXXXXXX"
    ports:
      - 9000:9000/tcp
    volumes:
      - plex-shared:/plex:ro
      - plex-data:/config:ro


volumes:

  plex-data:
    name: prom-plex-data

  plex-shared:
    name: prom-plex-shared

Can somone help me figure out what configuration I need to change ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant