labgrid icon indicating copy to clipboard operation
labgrid copied to clipboard

create a labgrid-client to list the available exporters

Open spark5 opened this issue 6 years ago • 6 comments

Hi!

I would be helpful when checking exporters healthiness to have a labgrid-client command that is able to list the available exporters. What do you think?

spark5 avatar Sep 11 '19 13:09 spark5

This kind of already exists in labgrid-client resources where each resource is prefixed with the exporter name. labgrid-client resources | awk -F "/" '{ print $1 }' | uniq should print all available exporters.

Emantor avatar Sep 20 '19 07:09 Emantor

Nevertheless, for a quick check a labgrid-client exporters would be nice. It could show the list of exporters, with the number of exported groups and resources as columns.

jluebbe avatar Sep 20 '19 09:09 jluebbe

What I imagined this command to look like was to list the available exporters like status = up/down I know that crossbar has internal heartbeats so you can rely on the fact that once an exporter is down, you save the exporter status in coordinator's resources.yaml.

What do you think?

spark5 avatar Sep 20 '19 10:09 spark5

Currently the coordinator does not track the exporter information, this would mean that any exporter which was once connected to the coordinator will show up as unavailable. Not a problem in fixed setups, but might be unintuitive in setups where developer computers may sometimes be in the system and other times not.

Emantor avatar Sep 20 '19 13:09 Emantor

Alright! I've missed the case of developer exporter not being available all the time. So I guess just a snapshot of the current exporters will be enough.

spark5 avatar Sep 20 '19 13:09 spark5

Yes, this sounds useful. We should also keep track of some statistics in the coordinator and report those as well (such as: uptime, event count, number of resources).

jluebbe avatar Jan 10 '20 15:01 jluebbe