Skip to content

Conversation

danielmoore
Copy link
Contributor

@danielmoore danielmoore commented Apr 29, 2024

I noticed that PM 0.1, 2.5, and 1.0 data on my AirGradient ONE was being reported by /measures/current but not /metrcis. This MR brings those two endpoints better into parity.

I also noticed a comma went missing causing Prometheus to no longer be able to parse the metrics. Fixed that, too.

As a side note, I notice that the logic for handling a measurement seems to be duplicated between AgValue.cpp and OpenMetrics.cpp. I suspect we'll keep seeing this kind of disparity between these endpoints until that logic is unified.

@pnt325 pnt325 changed the base branch from master to develop April 29, 2024 02:39
@pnt325 pnt325 changed the base branch from develop to master April 29, 2024 02:43
@pnt325 pnt325 merged commit 3efba24 into airgradienthq:master Apr 29, 2024
@pnt325
Copy link
Contributor

pnt325 commented Apr 29, 2024

Hi @danielmoore
Thank for your PR, and also the notes, we will check the code and also our side.

Phat

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

Successfully merging this pull request may close these issues.

2 participants