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

Don't display down status for inactive receivers #22

Open
pyrog opened this issue Dec 1, 2016 · 0 comments
Open

Don't display down status for inactive receivers #22

pyrog opened this issue Dec 1, 2016 · 0 comments

Comments

@pyrog
Copy link
Contributor

pyrog commented Dec 1, 2016

Status "Up" or "Down" from APRSC server is precious for receivers in "production".
But for inactive receivers, the "Down" status is a bit confusing.

Current request to OGNRange doesn't return any data for them.

To get the last date of activity (during the last 2 years), we could use Grafana datas or OGN Range stats.

Grafana

{
  "start": 946684800,
  "queries":[
    {
      "metric":"cpu",
      "aggregator":"max",
      "downsample":"12h-max",
      "tags":{"receiver":"AireVille"}
    }
  ],
  "msResolution":false,
  "globalAnnotations":true
}
  • Receive
[
  {
    "aggregateTags": [], 
    "dps": {
      "1439629067": 0.7, 

      "1462438667": 0.1
    }, 
    "metric": "cpu", 
    "tags": {
      "receiver": "AireVille"
    }
  }
]

AireVille receiver was active from 15 Aug 2015 08:57:47 to 05 May 2016 08:57:47

OGN Range

{
  "stats": [
    {"c": 0, "g": 0, "la": 0.0, "p": 0, "t": "2016-05-04 18:35", "temp": 0}, 

    {"c": 0, "g": 0, "la": 0.0, "p": 0, "t": "2016-05-04 05:05", "temp": 0}
  ]
}

AireVille receiver was active to 04 May 2016 05:05:00

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