Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate homematic_error_set #64

Open
fbrnc opened this issue Jan 5, 2025 · 0 comments
Open

Duplicate homematic_error_set #64

fbrnc opened this issue Jan 5, 2025 · 0 comments

Comments

@fbrnc
Copy link

fbrnc commented Jan 5, 2025

Prometheus started showing this in the log:

ts=2025-01-05T14:50:53.478Z caller=scrape.go:1820 level=warn component="scrape manager" scrape_pool=homematic-exporter target=http://homematic-exporter:8010/metrics msg="Error on ingesting samples with different value but same timestamp" num_dropped=5

And indeed the exporter contains duplicate lines:

curl -s localhost:8010/metrics | grep homematic_error_set
# HELP homematic_error_set Metrics for ERROR
# TYPE homematic_error_set gauge
homematic_error_set{ccu="192.168.1.171",device="...:1",device_type="SHUTTER_CONTACT",homematic_error_set="NO_ERROR",mapped_name="Haustuer",parent_device_type="HM-Sec-SCo"} 1.0
homematic_error_set{ccu="192.168.1.171",device="...:1",device_type="SHUTTER_CONTACT",homematic_error_set="",mapped_name="Haustuer",parent_device_type="HM-Sec-SCo"} 0.0
homematic_error_set{ccu="192.168.1.171",device="...:1",device_type="SHUTTER_CONTACT",homematic_error_set="",mapped_name="Haustuer",parent_device_type="HM-Sec-SCo"} 0.0
homematic_error_set{ccu="192.168.1.171",device="...:1",device_type="SHUTTER_CONTACT",homematic_error_set="",mapped_name="Haustuer",parent_device_type="HM-Sec-SCo"} 0.0
homematic_error_set{ccu="192.168.1.171",device="...:1",device_type="SHUTTER_CONTACT",homematic_error_set="",mapped_name="Haustuer",parent_device_type="HM-Sec-SCo"} 0.0
homematic_error_set{ccu="192.168.1.171",device="...:1",device_type="SHUTTER_CONTACT",homematic_error_set="",mapped_name="Haustuer",parent_device_type="HM-Sec-SCo"} 0.0
homematic_error_set{ccu="192.168.1.171",device="...:1",device_type="SHUTTER_CONTACT",homematic_error_set="",mapped_name="Haustuer",parent_device_type="HM-Sec-SCo"} 0.0
homematic_error_set{ccu="192.168.1.171",device="...:1",device_type="SHUTTER_CONTACT",homematic_error_set="SABOTAGE",mapped_name="Haustuer",parent_device_type="HM-Sec-SCo"} 0.0

I'm not sure what's causing this and I couldn't figure out how the homematic_error_set is written in the exporter.py file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant