-
Notifications
You must be signed in to change notification settings - Fork 0
Add /mon/nsfrb/timing and /mon/nsfrb/packets to influx/grafana #320
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
Comments
Pretty sure that data structure won't work with the current implementation. Each node will have to publish it's monitor data under an etcd key. In this case, like so: /mon/nsfrbtiming/1 '0' is special as it represents all nodes(for commands so the index starts at 1). Similar for: /mon/nsfrbpackets/1 Each of the data structures should include the name of the node. For antennas, this was 'ant_num'. For correlator nodes, you could use: 'corr_num' as was done for /mon/corr As for dashboard creation you are likely on your own assuming everyone can create a dashboard. |
@rh-codebase Sorry for the delay, thanks for the clarification; I've revised the timing keys to match the format you sent:
I made a separate key for the search time since that will only have one value, not a value per corr node:
|
The following influx tables should be created once data to the above keys are seen in etcd: /mon/nsfrbtiming => nsfrbtiming (tag: corr_num) In grafana, you want to construct queries against these tables(ie. select tx_time from nsfrbtiming group by corr_num) Something like that. Give a shout if needed. |
Thanks for your help! I'm having some trouble with the query, e.g. for the nsfrbsearchtiming query I currently have this:
I confirmed that the field is populated in etcd:
But I also see there's no corresponding field in influx
Is there something I need to do after populating the etcd key with ETCD.put_dict to make it show up in influx? |
@rh-codebase Just following up on this, still no luck querying from grafana. I did some digging and maybe I'm not using the correct configuration file for ETCD? I believe the default file is this: etcdConfig.yml, is that still correct? |
@rh-codebase Here's a few other examples; @caseyjlaw mentioned I should still have a number at the end of the nsfrbsearchtiming and nsfrbpackets keys, so I tried
And does the format and query for the nsfrbtiming key look correct? Here's the python query:
and the influx query in grafana:
|
I'd like to add two keys to Influx/Grafana for the nsfrb search pipeline. If possible, it'd be most convenient to have these on a new grafana dashboard, but if that's not possible I understand. The keys will be formatted as below:
/mon/nsfrb/timing: {0: {
image_time: float,
tx_time: float,
ISOT: str},
...
15: {
image_time: float,
tx_time: float,
ISOT: str},
search_time: float}
/mon/nsfrb/packets: {dropped: int}
For /mon/nsfrb/timing, there's a separate key for each correlator node (0 to 15) which points to a dictionary with the time required for imaging and transmitting fast visibility data and the timestamp. The other key is the time for searching, which will just be one value for the full bandwidth.
For /mon/nsfrb/packets, the only key is `dropped' which reports the number of dropped packets as an integer between 0 - 16.
Let me know if more info is needed; the realtime system isn't deployed yet, but I'm working on benchmarking tests, so it'd be helpful to view these on grafana. Thanks!
The text was updated successfully, but these errors were encountered: