Jump to content

Emby Metrics Exporter


Bagul

Recommended Posts

Bagul
10 hours ago, dylan62370 said:

Well... the container is on its way but however it does not bring up any metrics... :(

 

goroutine 1 [running]:

log.Panicf(0x962d22, 0x1d, 0xc000147df0, 0x1, 0x1)

	/usr/local/go/src/log/log.go:361 +0xc5

TOomaAh/emby_exporter_go/conf.NewConfig(0x7ffcf7e07f37, 0x12, 0x0, 0x0, 0x0)

	/app/conf/conf.go:50 +0x305

main.main()

	/app/main.go:34 +0xf8

2023/04/20 21:14:55 Beginning to serve on port 9210

2023/04/20 21:14:55 You can see the metrics on http://localhost:9210/metrics

2023/04/20 21:19:14 Beginning to serve on port 9210

2023/04/20 21:19:14 You can see the metrics on http://localhost:9210/metrics

2023/04/20 21:21:35 Beginning to serve on port 9210

2023/04/20 21:21:35 You can see the metrics on http://localhost:9210/metrics

 

Capture d’écran 2023-04-20 à 23.22.19.png

Capture d’écran 2023-04-20 à 23.24.12.png

Yes in the docker command the port opening is missing. I'm tired sorry .... ahah

 

docker run -d -it \
   --name=emby_exporter \
   -e CONFIG_FILE=/config/config.yml \
   -v '/emby_exporter_go/config:/config' \
   -p 9210:9210 \ 
   bagul/goemby_exporter:latest

 

 

Link to comment
Share on other sites

dylan62370
it is well launched however, nothing up.

The user's tocken is simply his password when he logs in to Emby?

And the username is what's in the URL when I go to his profile

Ex: https://emby.domaine.fr/web/index.html#!/users/user?userId=XXXX=password

goroutine 25 [running]:

TOomaAh/emby_exporter_go/metrics.(*EmbyCollector).Collect(0xc0000d4f00, 0xc0000c85a0)

	/app/metrics/emby_collector.go:44 +0x58

github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()

	/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b

created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather

	/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce

2023/04/21 09:02:18 Beginning to serve on port 9210

2023/04/21 09:02:18 You can see the metrics on http://localhost:9210/metrics

 

Capture d’écran 2023-04-21 à 11.04.26.png

Link to comment
Share on other sites

Bagul
43 minutes ago, dylan62370 said:
it is well launched however, nothing up.

The user's tocken is simply his password when he logs in to Emby?

And the username is what's in the URL when I go to his profile

Ex: https://emby.domaine.fr/web/index.html#!/users/user?userId=XXXX=password

goroutine 25 [running]:

TOomaAh/emby_exporter_go/metrics.(*EmbyCollector).Collect(0xc0000d4f00, 0xc0000c85a0)

	/app/metrics/emby_collector.go:44 +0x58

github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()

	/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b

created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather

	/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce

2023/04/21 09:02:18 Beginning to serve on port 9210

2023/04/21 09:02:18 You can see the metrics on http://localhost:9210/metrics

 

Capture d’écran 2023-04-21 à 11.04.26.png

the user id is specified in the URL when you go to Settings > Profile: http://localhost:8096/web/index.html#!/settings/profile.html?userId=xxxxxxx&serverId=xxxx

(You need an administrator user)

You can see "userId=blablabla". You must use the 'blablabla'.

 

For the token it is in Settings > API Key

Edited by Bagul
Link to comment
Share on other sites

dylan62370

I finally have the metrics! It was the token that was the problem, I'm sorry...

Well on the other hand ! The data doesn't go up on prometheus, I don't know if it's normal ?

 

Capture d’écran 2023-04-21 à 12.53.36.png

Link to comment
Share on other sites

Bagul
5 hours ago, dylan62370 said:

I finally have the metrics! It was the token that was the problem, I'm sorry...

Well on the other hand ! The data doesn't go up on prometheus, I don't know if it's normal ?

 

Capture d’écran 2023-04-21 à 12.53.36.png

 

Don't you have this?

 

 

image.png.e1cbc9e9eb08d12f76ffcbf083fa089a.png

Link to comment
Share on other sites

jaycedk

He still need to edit his prometheus.yml

and add 

- job_name: 'emby-exporter'
  
    scrape_interval: 15s
    
    static_configs:
      - targets: ["IP:Port"]

Other wise Prometheus will not know the data should be found there.

  • Thanks 1
Link to comment
Share on other sites

dylan62370

I had to adapt the part you sent me for the prometheus.yml file but it works now.

It almost works! I have the metrics coming up correctly in Prometheus! I still have to find out why I have this strange error in Grafana because as soon as I do a search or go to the Emby grafana panel I get this error.

Capture d’écran 2023-04-21 à 19.52.25.png

Capture d’écran 2023-04-21 à 19.52.16.png

Capture d’écran 2023-04-21 à 19.51.55.png

Link to comment
Share on other sites

dylan62370

I just deleted the database and created it again. I don't have the same error anymore, it's better!

Here is the error I do not know if you have already had:

Datasource cvGeitE4k

Capture d’écran 2023-04-21 à 20.02.32.png

Link to comment
Share on other sites

dylan62370

I have a good news, after having made a lot of manipulations of restarting of which the docker all works finally!

I thank you very much for your patience and your precious help !

Capture d’écran 2023-04-21 à 20.17.14.png

  • Like 2
Link to comment
Share on other sites

dylan62370

Hello,

Everything works perfectly, however, the progress bar doesn't seem to go up have you ever had the problem?

In the current case the current reading is 58% but the bar seems to remain at 1%.

 

Capture d’écran 2023-04-22 à 16.08.03.png

Capture d’écran 2023-04-22 à 16.09.11.png

Link to comment
Share on other sites

dylan62370
On 4/25/2023 at 11:50 AM, jaycedk said:

@dylan62370 did that help ?

Hello !

Sorry I couldn't answer before I was abroad. Yes I confirm it works! Thanks for your help!

Capture d’écran 2023-04-27 à 19.51.50.png

Link to comment
Share on other sites

  • 3 months later...
cochize1

Hi, after hours I am giving up on trying to solve this on my own. I can't access my emby server, the exact log line says"

Quote
2023/08/12 21:13:30 Problem with request to Emby Server
2023/08/12 21:13:30 Server is not reachable

My docker compose is:

version: '3.3'
services:
    goemby_exporter:
        container_name: emby_exporter
        environment:
            - CONFIG_FILE=/config/config.yml
        volumes:
            - '/volume1/docker/embyexporter/config:/config'
        ports:
            - '9210:9210'
        image: 'bagul/goemby_exporter:latest'

My config.yml (where I believe the problem is even though I checked token and userID many times and port 8099 is correct as I chenged that in emby settings)

server:
  url: "http://192.168.0.10"
  port: 8099
  token: "7c749f2aa2894b53b77f51bd823c463c"
  userID: "f769c6fc825947619762c4ae4eb1b5c9"
options: 
  geoip: true

Any help?

Link to comment
Share on other sites

  • 1 month later...
jaycedk

He he you have much to learn, my padowan 🤓

image: 'bagul/goemby_exporter:latest'

If you want to have dev build, then change to this

image: 'bagul/goemby_exporter:dev'

Link to comment
Share on other sites

jaycedk

Question ?

Why did you not ask @Bagulwhen he asked you to test,

In github, I think he does not bite.

Edited by jaycedk
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...