Bagul 182 Posted April 21, 2023 Author Posted April 21, 2023 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 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
dylan62370 6 Posted April 21, 2023 Posted April 21, 2023 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
Neminem 1518 Posted April 21, 2023 Posted April 21, 2023 token: "this is the api token from emby" userID: "Here i used my admin user"
Bagul 182 Posted April 21, 2023 Author Posted April 21, 2023 (edited) 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 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 April 21, 2023 by Bagul
dylan62370 6 Posted April 21, 2023 Posted April 21, 2023 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 ?
Bagul 182 Posted April 21, 2023 Author Posted April 21, 2023 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 ? Don't you have this?
Neminem 1518 Posted April 21, 2023 Posted April 21, 2023 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. 1
dylan62370 6 Posted April 21, 2023 Posted April 21, 2023 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.
dylan62370 6 Posted April 21, 2023 Posted April 21, 2023 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
dylan62370 6 Posted April 21, 2023 Posted April 21, 2023 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 ! 2
dylan62370 6 Posted April 22, 2023 Posted April 22, 2023 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%.
dylan62370 6 Posted April 27, 2023 Posted April 27, 2023 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!
cochize1 55 Posted August 12, 2023 Posted August 12, 2023 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?
Neminem 1518 Posted September 22, 2023 Posted September 22, 2023 @Bagul Great work on the new Dev build Emby Theater - Direct play Firefox - Transcode
cochize1 55 Posted September 22, 2023 Posted September 22, 2023 How to get ahold of this? Will my docker pull command do it: image: 'bagul/goemby_exporter:latest'
Neminem 1518 Posted September 22, 2023 Posted September 22, 2023 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'
Neminem 1518 Posted September 22, 2023 Posted September 22, 2023 It goes like this Developer/application:development_branch In this case 'bagul/goemby_exporter:dev' 1
Neminem 1518 Posted September 22, 2023 Posted September 22, 2023 (edited) Question ? Why did you not ask @Bagulwhen he asked you to test, In github, I think he does not bite. Edited September 22, 2023 by jaycedk
cochize1 55 Posted September 22, 2023 Posted September 22, 2023 tbh, it was like 2 am and I went to bed just to forget about it the next day
Neminem 1518 Posted September 22, 2023 Posted September 22, 2023 Ohhh wow... You are in for trouble, if you do not learn. Its you server, and you responsibility !!
cochize1 55 Posted September 22, 2023 Posted September 22, 2023 And with great server comes great responsibility 1
Neminem 1518 Posted September 22, 2023 Posted September 22, 2023 Here you go Overview of the get started guide | Docker Docs Have a great weekend
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now