lstrojny / homebridge-prometheus-exporter

Prometheus metrics exporter for homebridge accessories
Apache License 2.0
39 stars 1 forks source link

Prometheus Timestamps Error reported #683

Open DEEJCUK opened 3 months ago

DEEJCUK commented 3 months ago

Describe The Bug: Prometheus reports an error with timestamps

To Reproduce: configure prometheus to scrape, view logs

Expected behaviour: no errors in logs

Logs:

ts=2024-07-12T17:35:48.375Z caller=scrape.go:1744 level=warn component="scrape manager" scrape_pool=homebridge-exporter target=http://xxx.xxx.xxx.xxx:36123/metrics msg="Error on ingesting samples with different value but same timestamp" num_dropped=18

Plugin Config:

        {
            "pin": "123-12-123",
            "debug": false,
            "prefix": "homebridge",
            "port": 36123,
            "interface": "::",
            "refresh_interval": 30,
            "request_timeout": 10,
            "discovery_timeout": 20,
            "platform": "PrometheusExporter"
        },

Screenshots: N/A

Environment:

simono41 commented 2 months ago

I have the same problem, I'll see if Prometheus can somehow ignore it.