wymangr / blueiris_exporter

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

Unable to parse log line [BUG] #5

Closed denzelm5 closed 10 months ago

denzelm5 commented 11 months ago

Describe the bug Good Day, i have installed and configure your exported. when i run the tool i get Unable to parse log line command that runs continually

To Reproduce Steps to reproduce the behavior:

  1. installed the .exe on my c:\ drive
  2. opened the command prompt in admin mode.
  3. navigated the to the location were the .exe is located.
  4. ran this line to start : blueiris_exporter-amd64.exe --logpath=C:\BlueIris\log
  5. confirmed log is writing to /metric directory

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image image

Desktop (please complete the following information):

Additional context Even though there is the parse error, the data still writes to my influxdb until the exporter tool times out.

wymangr commented 11 months ago

Hi @denzelm5 thank you for the report! Would you mind sharing a copy of your latest log file in C:\BlueIris\log? I'll dig in and try and get a fix pushed up this week.

denzelm5 commented 11 months ago

Hi @denzelm5 thank you for the report! Would you mind sharing a copy of your latest log file in C:\BlueIris\log? I'll dig in and try and get a fix pushed up this week.

Hi ,

Thanks for your reply. please see log file below.

Regards

202311.zip

wymangr commented 11 months ago

Thanks for the log, it will make things much easier. At initial glance, it looks like Blue Iris has added some additional logging that the exporter doesn't know how to parse. I've been running mine as a Windows service, so I haven't noticed, but now that I look, it's doing the same thing for me. Feel free to install it as a service if you want to ignore it now as well.

Good news is, it should be a somewhat easy fix. I'll work on it a bit this week and should have something for you soon!

wymangr commented 11 months ago

Testing a fix, if all goes well, I'll push it up tomorrow!

wymangr commented 11 months ago

@denzelm5 I've released a fix: https://github.com/wymangr/blueiris_exporter/releases/tag/v1.2.1 as well as a update to the dashboard. Let me know how it goes!

denzelm5 commented 11 months ago

Hi, Thank you very much. I have updated the collector, I dont get the error anymore . As this is the first time running the collector , was it suppose to like the below ? I also need to ask, In the grafana server import dashboard, i see the connection requires a Prometheus datasource ? How do you get this working as im writing the data to a bucket....

image

wymangr commented 11 months ago

@denzelm5 Looking at the output of the command prompt window on the right, that is what it's supposed to look like. As for the powershell script, I'm guessing you are converting the prometheus metrics to influxdb? Unfortunately, I don't use influxdb, so I can't tell you if that's correct.

As for the Grafana dashboard, the one I have included in this repo and the one I maintain is for the Prometheus data source as that was the intended use for this exporter. However, I did have one other person who used influxdb and I did create this dashboard as well:

https://grafana.com/grafana/dashboards/17456-blueiris-influx/

It's out dated, and I don't currently have plans on setting up an influxdb to update it, but it could help as a starting point?

wymangr commented 11 months ago

@denzelm5 Hey, just wanted to check in and make sure everything is working for you?

denzelm5 commented 11 months ago

Hi Garret, Sorry for not providing feedback sooner. The new version worked from BI to Influx, however the Grafana Dashboard for some reason didn't populate all values.

Regards Denzel


From: Garret Wyman @.> Sent: Monday, December 4, 2023 11:12 PM To: wymangr/blueiris_exporter @.> Cc: Denzel Marimuthu @.>; Mention @.> Subject: Re: [wymangr/blueiris_exporter] Unable to parse log line [BUG] (Issue #5)

@denzelm5https://github.com/denzelm5 Hey, just wanted to check in and make sure everything is working for you?

— Reply to this email directly, view it on GitHubhttps://github.com/wymangr/blueiris_exporter/issues/5#issuecomment-1839484548, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANWEXBET7NNL4EXAY557F5LYHY4DNAVCNFSM6AAAAAA7MRMGKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZZGQ4DINJUHA. You are receiving this because you were mentioned.Message ID: @.***>

wymangr commented 11 months ago

@denzelm5, that's good that the exporter is working! Like I said, unfortunately, the dashboard I support is for the Prometheus Data source, so I won't be able to help you much with an Influx dashboard other then the one I provided you. If you end up building a dashboard for influx, let me know and I can share it :)