Jump to content

Emby Metrics Exporter


Bagul

Recommended Posts

  • 2 months later...
jaycedk

That depends on your setup of the exporter.

The default port is 9210

Here is my prometheus setup snip

- job_name: 'emby-exporter'
  
    scrape_interval: 15s
    
    static_configs:
      - targets: ["192.168.1.4:9210"]

 

Link to comment
Share on other sites

cochize1

yeah, I just copied mine assuming it was default but I must have chenged it along the way. Either way, 8096 is Emby's default hence I figure that the port was the problem.

Link to comment
Share on other sites

jaycedk

@beta666can you post your docker compose.

Because port 8096 is the http port of Emby, not the exporter.

If you use that port for both dockers, then you will end up with conflicts.  

Link to comment
Share on other sites

5 minutes ago, jaycedk said:

@beta666can you post your docker compose.

Because port 8096 is the http port of Emby, not the exporter.

If you use that port for both dockers, then you will end up with conflicts.  

I only use Windows, no Docker, just Prometheus.

Link to comment
Share on other sites

Hello,

I have to admit that I don't really have any information.

Could you share (hiding private information) your configuration file for the exporter.

Link to comment
Share on other sites

1 hour ago, beta666 said:

Even with an IP address it doesn't work strangely

 

image.thumb.png.15a9de494b63db57b8537fbc2bd35ce6.pngimage.png.e9abd0713ad661a648a76e5ae94fb237.png

 

image.thumb.png.dda73eb1149bc317ef68c34dad06e1a2.png

What have you installed to obtain these metrics? Why does it point to port 8096?

 

I have the impression that you are using an exporter that has nothing to do with this thread. But maybe I'm wrong

Edited by Bagul
Link to comment
Share on other sites

Here are the metrics you should have with the tool proposed on this thread.

I know there was a plugin for Emby to export metrics. If I have the time, I'd like to transpose my project into an Emby plugin, but for the moment I don't have one.

image.png

  • Thanks 1
Link to comment
Share on other sites

2 hours ago, Bagul said:

Hier sind die Metriken, die Sie mit dem in diesem Thread vorgeschlagenen Tool haben sollten.

Ich weiß, dass es ein Plugin für Emby gab, um Metriken zu exportieren. Wenn ich Zeit habe, möchte ich mein Projekt in ein Emby-Plugin umsetzen, aber im Moment habe ich keins.

Bild.png

I'm using a plugin to display metrics data, but how can I link that to Prometheus without Docker?

I've tried all possible variations with job_name: "emby_exporter" and scrape_interval: 5s, using the correct IP address and port, but nothing seems to work."

image.png

image.png

image.png

image.png

Edited by beta666
Link to comment
Share on other sites

jaycedk

Uhhhh where did you find that plugin ?

This thread is not a plugin its a seppret docker that pulls metrics from emby.

And passes it on to Prometheus, so we can use that in Grafana.

Link to comment
Share on other sites

1 minute ago, jaycedk said:

If you found it here 

 

then support questions should be directed there.

That's right, I was going to send the link, but you were quicker than me ahah.

I think the best thing to do is to open a new thread to describe your problem. This thread unfortunately has nothing to do with this plugin. 

But I'll be happy to help you, just send me the link by mp to the thread you've opened.

Link to comment
Share on other sites

And since we're talking about the plugin, the exporter's next step is to transpose it into a plugin for greater simplicity. If anyone knows how to make an Emby plugin, I'd be happy to learn.

Link to comment
Share on other sites

7 minutes ago, jaycedk said:

Uhhhh where did you find that plugin ?

This thread is not a plugin its a seppret docker that pulls metrics from emby.

And passes it on to Prometheus, so we can use that in Grafana.

Emby.Metrics.dll   I found it in the Emby forum, trying to connect it, unfortunately, it's not working

 

 

 

Edited by beta666
Link to comment
Share on other sites

2 minutes ago, beta666 said:

Emby.Metrics.dll 10.5 kB · 0 downloads    I found it in the Emby forum, trying to connect it, unfortunately, it's not working

The only thing I can offer you on this thread is to try my exporter: 
https://github.com/TOomaAh/emby_exporter_go

You can download the executable (in the releases on the right) and read the readme on the same link.

Edited by Bagul
Link to comment
Share on other sites

26 minutes ago, beta666 said:

 

Sorry, I'm a beginner in this matter. I downloaded it from Github. What's the next step?

 

 

image.png.0f09cf510b23aa85ef6faf6f04258ebe.png

1. Go to this link https://github.com/TOomaAh/emby_exporter_go/releases/tag/v1.0.8
2. Download the version that corresponds to your operating system (in your case, Windows: emby_exporter_go_1.0.8_windows_amd64.tar.gz if it's a 64-bit Windows).
3. There's a system for geolocating ip addresses. Either you disable it (I'll come back to this later) or you must:
 a.  Go to this site: https://www.maxmind.com/en/home
 b. Create an account (it's a well-known, trusted site that doesn't send out newsletters)
 c. Download the GeoLite2 City database
 d. Unzip it
 e. Move the file with the .mmdb extension next to the executable.
 f. Rename the .mmdb file to "geoip.mmdb"

4. Next to the executable, create a "config.yml" file

5. Use this template and write it to the config.yml file (Indentation must be respected):

server:
  url: "http://<ip|domain name>"
  port: 8096
  token: "your token"
  userID: "your userID"
options: # optional
  geoip: true # optional : default false

6. Replace the requested information with your own. (for the token it's in the token section in the emby parameters) for the userId: https://github.com/TOomaAh/emby_exporter_go?tab=readme-ov-file#how-to-get-your-userid

 

Then open a cmd/powershell and run the executable from it

Edited by Bagul
  • Like 1
Link to comment
Share on other sites

1 hour ago, Bagul said:

1. Go to this link https://github.com/TOomaAh/emby_exporter_go/releases/tag/v1.0.8
2. Download the version that corresponds to your operating system (in your case, Windows: emby_exporter_go_1.0.8_windows_amd64.tar.gz if it's a 64-bit Windows).
3. There's a system for geolocating ip addresses. Either you disable it (I'll come back to this later) or you must:
 a.  Go to this site: https://www.maxmind.com/en/home
 b. Create an account (it's a well-known, trusted site that doesn't send out newsletters)
 c. Download the GeoLite2 City database
 d. Unzip it
 e. Move the file with the .mmdb extension next to the executable.
 f. Rename the .mmdb file to "geoip.mmdb"

4. Next to the executable, create a "config.yml" file

5. Use this template and write it to the config.yml file (Indentation must be respected):

server:
  url: "http://<ip|domain name>"
  port: 8096
  token: "your token"
  userID: "your userID"
options: # optional
  geoip: true # optional : default false

6. Replace the requested information with your own. (for the token it's in the token section in the emby parameters) for the userId: https://github.com/TOomaAh/emby_exporter_go?tab=readme-ov-file#how-to-get-your-userid

 

Then open a cmd/powershell and run the executable from it

image.png.30b74fc468daf39f2063bdee3ee920dc.png

Edited by beta666
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...