You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add a new chart of the number of neighbours for a device. Is the proper way to do that to simply add this to settings.py? Just asking because I'm unsure about the influxdb key and also I want to add it to the existing charts, not replace the defaults.
fromopenwisp_monitoring.monitoring.configurationimportregister_chartneighbors_chart= {
'neighbors': {
'type': 'line',
'title': _('Neighbors count'),
'description': _('Number of IP neighbors detected'),
'unit': 'devices',
'order': 900,
'query': {
'influxdb': (
"SELECT COUNT(neighbors) FROM {key} WHERE time >= '{time}' AND ""content_type = '{content_type}' AND object_id = '{object_id}' ""GROUP BY time(1d)"
),
},
}
}
register_chart('neighbors_chart', neighbors_chart)
The text was updated successfully, but these errors were encountered:
I don't remember we store neighbors in their own "table" (technically in influxdb that's called measurements), so I am not sure neighbors can be queried like that.
I want to add a new chart of the number of neighbours for a device. Is the proper way to do that to simply add this to
settings.py
? Just asking because I'm unsure about the influxdb key and also I want to add it to the existing charts, not replace the defaults.The text was updated successfully, but these errors were encountered: