dolittle-obsolete / Studio

MIT License
0 stars 0 forks source link

Auto provisioning of Edge Agent configuration and reporting of non-numeric node status #32

Closed jakhog closed 5 years ago

jakhog commented 5 years ago

This pull-request consist of two things - to keep it in line with the latest changes of https://github.com/dolittle-edge/Agent.

Firstly, it enables automatic provisioning of the configuration for an Edge Agent. When an Edge Agent starts without a configuration - it will post a request to api/Provisioning/Get with system information coded in the BIOS of the node. If a node configuration is found for the provided node serial number, it is served to the Edge Agent which will use this configuration going forward. The Edge Agent will also periodically check if the configuration has changed in by sending it's node id and a hash of the current configuration, if a change is detected the new configuration will be served to the Agent which will replace the current configuration and persisted.

Secondly, a change from Telemetry samples to Metric, and the addition and Info samples is introduced to allow the Edge Agent to send non-numeric information to the cloud. E.g. IP-addresses.

┆Issue is synchronized with this Asana task