wymangr / blueiris_exporter

Prometheus Exporter for Blue Iris
MIT License
17 stars 2 forks source link

[Question] Is this still maintained? #4

Closed BananaHammock743 closed 1 year ago

BananaHammock743 commented 1 year ago

Will this project be maintained going forward?

wymangr commented 1 year ago

I'm happy to provide enhancements and bug fixes upon request, but I don't have anything planned out for this going forward. It's serving the purpose for me personally, and there hasn't been much interest.

BananaHammock743 commented 1 year ago

Thanks for the reply. I love it (just reinstalled on my new BI rig). It's great to see a summary of BI instead of twarling through Logs. You should post it (again?) on r/blueiris with the corresponding Grafana dashboard, I'm sure you'd get a few more people using.

One question: The AI section of the Grafana dashboard doesn't seem to be populating with CodeProject AI, should it be or is it only setup for DeepStack? Happy to make a new issue for CPAI, post logs, etc if needed

image

Blue Iris: 5.7.6.8 x64 (19/05/23) CPAI: 1.2.9 BETA

wymangr commented 1 year ago

I'm glad to hear you like it @BananaHammock743!

It should work with both DeepStack and CodeProject AI (That's what I'm currently using). How did you setup the exporter? As a service or running from the command line? Are any other areas of the dashboard working? If you edit one of the panels, can you make sure that the data source is pointed to the correct Prometheus instance that is scraping the metrics? Can you view the metrics page in a web browser?

BananaHammock743 commented 1 year ago

Details below. Yell out if you need any further detail

2 days of logs.txt metrics endpoint.txt dashbaord screen1 dashbaord screen2 dashbaord screen3 dashbaord screen4

wymangr commented 1 year ago

Thanks for the info @BananaHammock743 I'm looking into it and i'll get back to you when I figure it out :)

wymangr commented 1 year ago

@BananaHammock743

Hmm.. so I was able to run it successfuly with the log file you provided without any issues. The AI panels in Grafana are created off of the blueiris_ai_duration_distinct metric which will only show up on the /metrics page once per alert and will only show up again when a new alert comes in. I did confirm that that metric did populate and that they came back when I added a new alert at the bottom of your log file.

See attached metrics: metrics.txt

For next troubleshooting steps, I would remove the executable from the startup fold and instead:

  1. open a command prompt
  2. change directory to where you saved the .exe file (ex: cd c:\Users\USER\Downloads)
  3. run the file, making sure that if your log directory is not C:\BlueIris\log\ that you specify the correct log path. (blueiris_exporter-amd64.exe --logpath=C:\Some\Different\BlueIris\log)

When you start it, don't go to the metrics page right away, let Prometheus do the first scrape. Once it does, check the Grafana dashboard. If it worked, you should see each camera's last analysis in the AI panels. If you still don't, check the command prompt window to see if there are any errors on the screen. If still nothing, try opening up the Explore page in Grafana and just query the blueiris_ai_duration_distinct metric. Maybe it's an issue with the Grafana dashboard?

wymangr commented 1 year ago

@BananaHammock743 Were you able to get it working?

wymangr commented 1 year ago

@BananaHammock743 Just wanted to follow up to see if you need anything else.

wymangr commented 1 year ago

@BananaHammock743 I think I found the issue. There is a problem with the dashboard I uploaded.

There is an incorrect variable set to a version of the exporter that I had setup for testing. If you go to the dashboard, click on the dashboard settings, navigate to variables, and edit the "type" variable. Change the query to label_values(blueiris_ai_duration, type)

Edit: I added a new revision to the dashboard with the fix: https://grafana.com/api/dashboards/17432/revisions/4/download

wymangr commented 1 year ago

Closing issue, as this should be resolved.