Skip to content

Commit

Permalink
tedge-configuration-plugin specification (#2097)
Browse files Browse the repository at this point in the history
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
  • Loading branch information
rina23q authored Aug 4, 2023
1 parent 0e8c387 commit ab4e078
Showing 1 changed file with 311 additions and 0 deletions.
311 changes: 311 additions & 0 deletions docs/src/references/tedge-configuration-management.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,311 @@
---
title: New Configuration Management
tags: [Reference, Configuration]
sidebar_position: 7
draft: true
---

# Configuration Management Plugin

Thin-edge provides an operation plugin to manage device configuration files.

* This management is bi-directional:
* A device can act as a reference,
with all the managed files being uploaded to the [tedge file transfer repository](tedge-file-transfer-service.md)
and stored there as a configuration snapshot.
* A configuration update can be pushed from the tedge file transfer repository to any devices of the same type,
i.e. supporting the same kind of configuration files.
* This plugin, combined with a cloud mapper, enables configuration management from the cloud.
* With this operation plugin, the device owner defines the list of files
(usually configuration files, but not necessarily).
* The plugin configuration itself can be managed both locally and from the cloud,
meaning, the device owner can update the list of files to be managed from the cloud using the cloud mapper.
* The configuration files are managed according to their type,
a name chosen by the device owner to categorize each configuration.
By default, the full path of a configuration file on the device is used as its type.
* When files are downloaded from the tedge file transfer repository to the device where the plugin is installed,
__these files are stored in the target path with a temporary name first__.
They are atomically renamed, only after a fully successful download to avoid breaking the system with half-downloaded files.
* When a downloaded file is copied to its target, the Unix user, group and mode are preserved.
* Once an update has been downloaded from the tedge file transfer repository to the target device,
__the plugin publishes an operation status update message on the local thin-edge MQTT bus__.
The device software must subscribe to these messages if any action is required,
such as checking the content of the file, to pre-processing it, or restarting a daemon.
* The configuration plugin can be installed on both the main thin-edge device and the child-device.
* The plugin has a dependency on the `tedge.toml` configuration file to get the MQTT hostname, port, and device identifier.

In summary, the responsibilities of the plugin are:
* to define the list of files under configuration management,
* to notify the local MQTT bus when this list is updated,
* to upload these files to the tedge file transfer repository on demand,
* to download the files pushed from the tedge file transfer repository,
* to ensure that the target files are atomically updated after a successful download,
* to notify the device software when the configuration is updated.

By contrast, the plugin is not responsible for:
* checking that the uploaded files are well-formed,
* restarting the configured processes,
* establishing any direct connection to clouds.

A user-specific component installed on the device
can implement more sophisticated configuration use-cases by:
* listening for configuration updates on the local thin-edge MQTT bus,
* restarting the appropriate processes when needed,
* declaring intermediate files as the managed files,
to have the opportunity to check or update their content
before moving them to the actual targets.

## Installation

As part of this plugin installation:
* On systemd-enabled devices, the service definition file for this plugin is also installed.

Once installed, the `tedge-configuration-plugin` runs as a daemon on the device,
listening to configuration snapshot commands on the `<root>/<identifier>/cmd/config_snapshot/+` [MQTT topic](mqtt-api.md#command-examples)
and to configuration update commands on the `<root>/<identifier>/cmd/config_update/+` [MQTT topic](mqtt-api.md#command-examples).

## Configuration

The `c8y-configuration-plugin` configuration is stored by default under `/etc/tedge/plugins/tedge-configuration-plugin.toml`

This [TOML](https://toml.io/en/) file defines the list of files to be managed by the plugin.
Each configuration file is defined by a record with:
* The full `path` to the file.
* An optional configuration `type`. If not provided, the `path` is used as `type`.
This `type` is used to declare the supported configuration file and then to trigger operations on that file.
All the configuration `type`s are declared as the supported config list to the local MQTT bus on startup
and on changes to the `plugins/tedge-configuration-plugin.toml` file.
* Optional unix file ownership: `user`, `group` and octal `mode`.
These are only used when a configuration file pushed via a `config_update` command doesn't exist on the device,
and a new one is created with these ownership parameters.
When a configuration file is already present on the device,
this plugin preserves its existing ownership, ignoring these parameters.

```toml title="file: /etc/tedge/plugins/tedge-configuration-plugin.toml"
files = [
{ path = '/etc/tedge/tedge.toml', type = 'tedge.toml' },
{ path = '/etc/tedge/mosquitto-conf/c8y-bridge.conf', type = 'c8y-bridge' },
{ path = '/etc/tedge/mosquitto-conf/tedge-mosquitto.conf', type = 'tedge-mosquotto' },
{ path = '/etc/mosquitto/mosquitto.conf', type = 'mosquitto', user = 'mosquitto', group = 'mosquitto', mode = 0o644 }
]
```

On start and whenever this file is updated, the configuration plugin sends
the supported config types declaration message with a retained flag
to the `config_snapshot` and `config_update` command topics
with the set of `type`s listed in that configuration file
(implicitly adding the `tedge-configuration-plugin` type also to that set).
The message can be observed over the MQTT bus of the thin-edge device.

Given that `root.topic` and `device.topic` are set to `te` and `device/main//` for the main device,
the message to declare the supported configuration types is as follows.

```sh te2mqtt
tedge mqtt pub -r 'te/device/main///cmd/config_snapshot' '{
"types": ["tedge-configuration-plugin", "tedge.toml", "/etc/tedge/mosquitto-conf/c8y-bridge.conf", "/etc/tedge/mosquitto-conf/tedge-mosquitto.conf", "mosquitto"]
}'
```

```sh te2mqtt
tedge mqtt pub -r 'te/device/main///cmd/config_update' '{
"types": ["tedge-configuration-plugin", "tedge.toml", "/etc/tedge/mosquitto-conf/c8y-bridge.conf", "/etc/tedge/mosquitto-conf/tedge-mosquitto.conf", "mosquitto"]
}'
```

:::note
* The file `/etc/tedge/plugins/tedge-configuration-plugin.toml` itself doesn't need to be listed.
This is implied, so the list can *always* be configured from the configuration plugin.
The `type` for this self configuration file is `tedge-configuration-plugin`.
* If the file `/etc/tedge/plugins/tedge-configuration-plugin.toml`
is not found, empty, ill-formed or not-readable
then only `tedge-configuration-plugin.toml` is declared as a supported configuration type.
:::

The behavior of the `tedge-configuration-plugin` is also controlled
by the configuration of thin-edge:

* `tedge config get mqtt.bind.address`: the address of the local MQTT bus.
* `tedge config get mqtt.bind.port`: the TCP port of the local MQTT bus.
* `tedge config get root.topic`: the root of the [MQTT topic scheme](mqtt-api.md) to publish and subscribe.
* `tedge config get device.topic`: the identifier of the [MQTT topic scheme](mqtt-api.md) to publish and subscribe.

## Handling config snapshot commands

During a config snapshot operation, the plugin uploads a requested configuration file to the tedge file transfer repository.

The plugin subscribes to config snapshot commands on the `<root>/<identifier>/cmd/config_snapshot/+` MQTT topics.
For example, it subscribes to the following topic for the main device.

```sh te2mqtt
tedge mqtt sub 'te/device/main///cmd/config_snapshot/+'
```

When a new config snapshot command with the ID "1234" is published by another component, it appears as follows.

```sh te2mqtt
tedge mqtt pub -r 'te/device/main///cmd/config_snapshot/1234' '{
"status": "init",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/main/config_snapshot/mosquitto-1234",
"type": "mosquitto"
}'
```

Upon receiving a configuration snapshot command, the plugin performs the following actions:
1. The plugin uses the `type` information (`mosquitto`) to look up the target path from the `tedge-configuration-plugin.toml` file
and retrieves the requested configuration content from the corresponding `path`(`/etc/mosquitto/mosquitto.conf`).
2. It then performs a `PUT` request to the `tedgeUrl` specified in the command's payload to upload the content.

Throughout the process, the plugin updates the command status via MQTT by publishing a retained message
to the same `<root>/<identifier>/cmd/config_snapshot/<id>` topic where the command is received.
The payload contains all the received data along with the `path` information.

When the plugin receives a new config snapshot command, it updates the status to `executing`.
After successfully uploading the file to the file transfer repository,
the plugin updates the status to `successful`.
If any unexpected error occurs, the plugin updates the status to `failed`,
providing a comprehensive `reason` for the failure.

As a result, the operation status update message for the example above looks like this:

```sh te2mqtt
tedge mqtt pub -r 'te/device/main///cmd/config_snapshot/1234' '{
"status": "successful",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/main/config_snapshot/mosquitto-1234",
"type": "mosquitto",
"path": "/etc/mosquitto/mosquitto.conf"
}'
```

### Flow

```mermaid
sequenceDiagram
participant Mapper/others
participant Plugin
participant Tedge Agent
Mapper/others->>Plugin: tedge config_snapshot command (Status: init)
Plugin->>Mapper/others: Status: executing
alt No error
Plugin->>Tedge Agent: File upload [HTTP]
Tedge Agent-->> Plugin: Status OK [HTTP]
Plugin->>Mapper/others: Status: successful
else Any error occurs
Plugin->>Mapper/others: Status: failed
end
```

## Handling config update commands

During a config update operation, the plugin downloads a requested configuration file
from the tedge file transfer repository and moves it to the target path.

The plugin subscribes to config update commands on the `<root>/<identifier>/cmd/config_update/+` MQTT topics.
For example, it subscribes to the following topic for the main device.

```sh te2mqtt
tedge mqtt sub 'te/device/main///cmd/config_update/+'
```

When a new config update command with the ID "1234" is published by another component,
it appears as below.

```sh te2mqtt
tedge mqtt pub -r 'te/device/main///cmd/config_update/1234' '{
"status": "init",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/main/config_update/mosquitto-1234",
"remoteUrl": "http://www.my.url",
"type": "mosquitto"
}'
```

Upon receiving a configuration update command, the plugin performs the following actions:
1. It performs a `GET` request to the `tedgeUrl` specified in the command to retrieve the content.
2. The plugin then uses the `type` information (`mosquitto`) to to look up the target path from the `tedge-configuration-plugin.toml` file
and applies the new configuration content to the corresponding `path`(`/etc/mosquitto/mosquitto.conf`).

Throughout the process, the plugin updates the command status via MQTT
by publishing a retained message to the same `<root>/<identifier>/cmd/config_update/<id>` topic
where the command is received.
The payload contains all the received data along with the `path` information.

Upon receiving a new config update command, the plugin updates the status to `executing`.
After successfully completing all operation steps, the plugin updates the status to `successful`.
If any unexpected error occurs,
the plugin updates the status to `failed` along with a comprehensive `reason` for the failure.

As a result, the operation status update message for the example above looks like this.

```sh te2mqtt
tedge mqtt pub -r 'te/device/main///cmd/config_update/1234' '{
"status": "successful",
"tedgeUrl": "http://127.0.0.1:8000/tedge/file-transfer/main/config_update/mosquitto-1234",
"remoteUrl": "http://www.my.url",
"type": "mosquitto",
"path": "/etc/mosquitto/mosquitto.conf"
}'
```

### Flow

```mermaid
sequenceDiagram
participant Mapper/others
participant Plugin
participant Tedge Agent
Mapper/others->>Tedge Agent: Make a target config file ready
Mapper/others->>Plugin: tedge config_update command (Status: init)
Plugin->>Mapper/others: Status: executing
alt No error
Plugin->>Tedge Agent: GET the config file [HTTP]
Tedge Agent-->>Plugin: Return the content [HTTP]
Plugin->>Plugin: Apply the config
Plugin->>Mapper/others: Status: successful
else Any error occurs
Plugin->>Mapper/others: Status: failed
end
```

## Usage

```sh
tedge-configuration-plugin --help
```

```run command="tedge-configuration-plugin --help" lang="text" title="Output"
Thin-edge device configuration manager
USAGE:
tedge-configuration-plugin [OPTIONS]
OPTIONS:
--config-dir <CONFIG_DIR>
[default: /etc/tedge]
--debug
Turn-on the debug log level.
If off only reports ERROR, WARN, and INFO If on also reports DEBUG and TRACE
-h, --help
Print help information
-V, --version
Print version information
On start, `tedge-configuration-plugin` notifies of its managed configuration files and
sends this list via MQTT.
`tedge-configuration-plugin` subscribes to the topics for the commands `config_snapshot`
and `config_update`.
The thin-edge `CONFIG_DIR` is used:
* to find the `tedge.toml` where the following configs are defined:
** `mqtt.bind.address` and `mqtt.bind.port` to connect to the tedge MQTT broker
** `root.topic` and `device.topic`: for the MQTT topics to publish to and subscribe from
* to find/store the `tedge-configuration-plugin.toml`: the plugin configuration file
```

## Logging

The `tedge-configuration-plugin` reports progress and errors on its `stderr`.

1 comment on commit ab4e078

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
241 0 5 241 100

Passed Tests

Name ⏱️ Duration Suite
Prerequisite Parent 14.41 s Child Conf Mgmt Plugin
Prerequisite Child 0.266 s Child Conf Mgmt Plugin
Child device bootstrapping 12.518 s Child Conf Mgmt Plugin
Snapshot from device 61.562 s Child Conf Mgmt Plugin
Child device config update 62.862 s Child Conf Mgmt Plugin
Configuration types should be detected on file change (without restarting service) 45.303 s Inotify Crate
Check lock file existence in default folder 1.4689999999999999 s Lock File
Check PID number in lock file 2.793 s Lock File
Check PID number in lock file after restarting the services 61.664 s Lock File
Check starting same service twice 1.026 s Lock File
Switch off lock file creation 1.964 s Lock File
Set configuration when file exists 7.07 s Configuration Operation
Set configuration when file does not exist 5.942 s Configuration Operation
Set configuration with broken url 5.338 s Configuration Operation
Get configuration 5.5969999999999995 s Configuration Operation
Get non existent configuration file 5.012 s Configuration Operation
Get non existent configuration type 4.871 s Configuration Operation
Update configuration plugin config via cloud 5.1370000000000005 s Configuration Operation
Modify configuration plugin config via local filesystem modify inplace 3.4 s Configuration Operation
Modify configuration plugin config via local filesystem overwrite 5.716 s Configuration Operation
Update configuration plugin config via local filesystem copy 5.749 s Configuration Operation
Update configuration plugin config via local filesystem move (different directory) 3.872 s Configuration Operation
Update configuration plugin config via local filesystem move (same directory) 2.689 s Configuration Operation
Update the custom operation dynamically 49.921 s Dynamically Reload Operation
Custom operation successful 65.298 s Custom Operation
Custom operation fails 59.918 s Custom Operation
Successful firmware operation 121.659 s Firmware Operation
Install with empty firmware name 54.828 s Firmware Operation
Prerequisite Parent 16.14 s Firmware Operation Child Device
Prerequisite Child 8.131 s Firmware Operation Child Device
Child device firmware update 6.193 s Firmware Operation Child Device
Child device firmware update with cache 3.866 s Firmware Operation Child Device
Firmware plugin supports restart via service manager #1932 4.952 s Firmware Operation Child Device Retry
Update Inventory data via inventory.json 1.09 s Inventory Update
Inventory includes the agent fragment with version information 1.182 s Inventory Update
Retrieve a JWT tokens 32.775 s Jwt Request
Mapper recovers and processes output of ongoing software update request 15.395 s Recover And Publish Software Update Message
Check running collectd 1.111 s Monitor Device Collectd
Is collectd publishing MQTT messages? 2.83 s Monitor Device Collectd
Check thin-edge monitoring 3.685 s Monitor Device Collectd
Check grouping of measurements 8.866 s Monitor Device Collectd
Main device registration 1.6440000000000001 s Device Registration
Child device registration 1.877 s Device Registration
Supports restarting the device 49.425 s Restart Device
Update tedge version from previous using Cumulocity 91.428 s Tedge Self Update
Test if all c8y services are up 39.564 s Service Monitoring
Test if all c8y services are down 47.752 s Service Monitoring
Test if all c8y services are using configured service type 165.195 s Service Monitoring
Test if all c8y services using default service type when service type configured as empty 220.561 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker stop start 20.402 s Service Monitoring
Check health status of tedge-mapper-c8y service on broker restart 22.252 s Service Monitoring
Check health status of child device service 18.907 s Service Monitoring
Successful shell command with output 3.581 s Shell Operation
Check Successful shell command with literal double quotes output 3.221 s Shell Operation
Execute multiline shell command 3.187 s Shell Operation
Failed shell command 3.306 s Shell Operation
Software list should be populated during startup 41.511 s Software
Install software via Cumulocity 51.276 s Software
tedge-agent should terminate on SIGINT while downloading file 46.575 s Software
Software list should only show currently installed software and not candidates 41.196 s Software
Create and publish the tedge agent supported operations on mapper restart 45.338 s Mapper-Publishing-Agent-Supported-Ops
Agent gets the software list request once it comes up 36.894 s Mapper-Publishing-Agent-Supported-Ops
Define Child device 1 ID 0.009 s C8Y Child Alarms Rpi
Normal case when the child device does not exist on c8y cloud 3.916 s C8Y Child Alarms Rpi
Normal case when the child device already exists 0.644 s C8Y Child Alarms Rpi
Reconciliation when the new alarm message arrives, restart the mapper 1.246 s C8Y Child Alarms Rpi
Reconciliation when the alarm that is cleared 65.406 s C8Y Child Alarms Rpi
Child devices support sending simple measurements 1.529 s Child Device Telemetry
Child devices support sending custom measurements 1.201 s Child Device Telemetry
Child devices support sending custom events 1.326 s Child Device Telemetry
Child devices support sending custom events overriding the type 1.45 s Child Device Telemetry
Child devices support sending custom alarms #1699 1.274 s Child Device Telemetry
Child devices support sending inventory data via c8y topic 1.133 s Child Device Telemetry
Child device supports sending custom child device measurements directly to c8y 1.569 s Child Device Telemetry
Check retained alarms 103.297 s Raise Alarms
Thin-edge devices support sending simple measurements 1.501 s Thin-Edge Device Telemetry
Thin-edge devices support sending simple measurements with custom type 1.096 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom measurements 1.094 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events 1.028 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom events overriding the type 1.094 s Thin-Edge Device Telemetry
Thin-edge devices support sending custom alarms #1699 3.3 s Thin-Edge Device Telemetry
Thin-edge device supports sending custom Thin-edge device measurements directly to c8y 1.392 s Thin-Edge Device Telemetry
Thin-edge device support sending inventory data via c8y topic 1.214 s Thin-Edge Device Telemetry
thin-edge components support a custom config-dir location via flags 27.31 s Config Dir
Validate updated data path used by tedge-agent 0.246 s Data Path Config
Validate updated data path used by c8y-firmware-plugin 10.353 s Data Path Config
Validate updated data path used by tedge-agent 0.267 s Log Path Config
Check existence of init directories 1.593 s Tedge Init
Tedge init and check creation of folders 1.819 s Tedge Init
Check ownership of the folders 1.484 s Tedge Init
Change user/group and check the change 1.6400000000000001 s Tedge Init
Tedge init and check if default values are restored 2.134 s Tedge Init
Install thin-edge via apt 37 s Install Apt
Install latest via script (from current branch) 66.136 s Install Tedge
Install specific version via script (from current branch) 54.583 s Install Tedge
Install latest tedge via script (from main branch) 21.969 s Install Tedge
Install then uninstall latest tedge via script (from main branch) 63.24 s Install Tedge
Support starting and stopping services 40.839 s Service-Control
Supports a reconnect 58.454 s Test-Commands
Supports disconnect then connect 38.29 s Test-Commands
Update unknown setting 34.239 s Test-Commands
Update known setting 41.688 s Test-Commands
It checks MQTT messages using a pattern 72.879 s Test-Mqtt
Stop c8y-configuration-plugin 0.083 s Health C8Y-Configuration-Plugin
Update the service file 0.073 s Health C8Y-Configuration-Plugin
Reload systemd files 0.221 s Health C8Y-Configuration-Plugin
Start c8y-configuration-plugin 0.094 s Health C8Y-Configuration-Plugin
Start watchdog service 10.121 s Health C8Y-Configuration-Plugin
Check PID of c8y-configuration-plugin 0.117 s Health C8Y-Configuration-Plugin
Kill the PID 0.279 s Health C8Y-Configuration-Plugin
Recheck PID of c8y-configuration-plugin 6.509 s Health C8Y-Configuration-Plugin
Compare PID change 0.005 s Health C8Y-Configuration-Plugin
Stop watchdog service 0.128 s Health C8Y-Configuration-Plugin
Remove entry from service file 0.148 s Health C8Y-Configuration-Plugin
Stop c8y-log-plugin 0.189 s Health C8Y-Log-Plugin
Update the service file 0.127 s Health C8Y-Log-Plugin
Reload systemd files 0.322 s Health C8Y-Log-Plugin
Start c8y-log-plugin 0.151 s Health C8Y-Log-Plugin
Start watchdog service 10.239 s Health C8Y-Log-Plugin
Check PID of c8y-log-plugin 0.131 s Health C8Y-Log-Plugin
Kill the PID 0.406 s Health C8Y-Log-Plugin
Recheck PID of c8y-log-plugin 6.576 s Health C8Y-Log-Plugin
Compare PID change 0.001 s Health C8Y-Log-Plugin
Stop watchdog service 0.214 s Health C8Y-Log-Plugin
Remove entry from service file 0.105 s Health C8Y-Log-Plugin
Stop tedge-mapper 0.181 s Health Tedge Mapper C8Y
Update the service file 0.207 s Health Tedge Mapper C8Y
Reload systemd files 0.629 s Health Tedge Mapper C8Y
Start tedge-mapper 0.21 s Health Tedge Mapper C8Y
Start watchdog service 10.343 s Health Tedge Mapper C8Y
Check PID of tedge-mapper 0.207 s Health Tedge Mapper C8Y
Kill the PID 0.348 s Health Tedge Mapper C8Y
Recheck PID of tedge-mapper 6.625 s Health Tedge Mapper C8Y
Compare PID change 0.001 s Health Tedge Mapper C8Y
Stop watchdog service 0.286 s Health Tedge Mapper C8Y
Remove entry from service file 0.238 s Health Tedge Mapper C8Y
Stop tedge-agent 0.141 s Health Tedge-Agent
Update the service file 0.13 s Health Tedge-Agent
Reload systemd files 0.299 s Health Tedge-Agent
Start tedge-agent 0.281 s Health Tedge-Agent
Start watchdog service 10.433 s Health Tedge-Agent
Check PID of tedge-mapper 0.071 s Health Tedge-Agent
Kill the PID 0.193 s Health Tedge-Agent
Recheck PID of tedge-agent 6.617 s Health Tedge-Agent
Compare PID change 0.001 s Health Tedge-Agent
Stop watchdog service 0.221 s Health Tedge-Agent
Remove entry from service file 0.16 s Health Tedge-Agent
Stop tedge-mapper-az 0.106 s Health Tedge-Mapper-Az
Update the service file 0.173 s Health Tedge-Mapper-Az
Reload systemd files 0.225 s Health Tedge-Mapper-Az
Start tedge-mapper-az 0.264 s Health Tedge-Mapper-Az
Start watchdog service 10.337 s Health Tedge-Mapper-Az
Check PID of tedge-mapper-az 0.187 s Health Tedge-Mapper-Az
Kill the PID 0.429 s Health Tedge-Mapper-Az
Recheck PID of tedge-agent 6.646 s Health Tedge-Mapper-Az
Compare PID change 0.001 s Health Tedge-Mapper-Az
Stop watchdog service 0.272 s Health Tedge-Mapper-Az
Remove entry from service file 0.325 s Health Tedge-Mapper-Az
Stop tedge-mapper-collectd 0.137 s Health Tedge-Mapper-Collectd
Update the service file 0.14 s Health Tedge-Mapper-Collectd
Reload systemd files 0.417 s Health Tedge-Mapper-Collectd
Start tedge-mapper-collectd 0.205 s Health Tedge-Mapper-Collectd
Start watchdog service 10.206 s Health Tedge-Mapper-Collectd
Check PID of tedge-mapper-collectd 0.209 s Health Tedge-Mapper-Collectd
Kill the PID 0.24 s Health Tedge-Mapper-Collectd
Recheck PID of tedge-mapper-collectd 6.374 s Health Tedge-Mapper-Collectd
Compare PID change 0.004 s Health Tedge-Mapper-Collectd
Stop watchdog service 0.084 s Health Tedge-Mapper-Collectd
Remove entry from service file 0.168 s Health Tedge-Mapper-Collectd
tedge-collectd-mapper health status 6.223 s Health Tedge-Mapper-Collectd
c8y-log-plugin health status 5.665 s MQTT health endpoints
c8y-configuration-plugin health status 5.695 s MQTT health endpoints
Publish on a local insecure broker 0.253 s Basic Pub Sub
Publish on a local secure broker 3.88 s Basic Pub Sub
Publish on a local secure broker with client authentication 3.313 s Basic Pub Sub
Publish events to subscribed topic 0.278 s Custom Sub Topics Tedge-Mapper-Aws
Publish measurements to unsubscribed topic 5.338 s Custom Sub Topics Tedge-Mapper-Aws
Publish measurements to subscribed topic 0.269 s Custom Sub Topics Tedge-Mapper-Az
Publish measurements to unsubscribed topic 5.327 s Custom Sub Topics Tedge-Mapper-Az
Publish events to subscribed topic 0.384 s Custom Sub Topics Tedge-Mapper-C8Y
Publish measurements to unsubscribed topic 5.461 s Custom Sub Topics Tedge-Mapper-C8Y
Check remote mqtt broker #1773 4.102 s Remote Mqtt Broker
Apply name filter 0.203 s Filter Packages List Output
Apply maintainer filter 0.153 s Filter Packages List Output
Apply both filters 0.216 s Filter Packages List Output
No filters 0.283 s Filter Packages List Output
Both filters but name filter as empty string 0.275 s Filter Packages List Output
Both filters but maintainer filter as empty string 0.15 s Filter Packages List Output
Both filters as empty string 0.187 s Filter Packages List Output
Wrong package name 0.253 s Improve Tedge Apt Plugin Error Messages
Wrong version 0.336 s Improve Tedge Apt Plugin Error Messages
Wrong type 0.621 s Improve Tedge Apt Plugin Error Messages
tedge_connect_test_positive 0.508 s Tedge Connect Test
tedge_connect_test_negative 1.5819999999999999 s Tedge Connect Test
tedge_connect_test_sm_services 7.99 s Tedge Connect Test
tedge_disconnect_test_sm_services 0.67 s Tedge Connect Test
Install thin-edge.io 22.606 s Call Tedge
call tedge -V 0.086 s Call Tedge
call tedge -h 0.091 s Call Tedge
call tedge -h -V 0.097 s Call Tedge
call tedge help 0.085 s Call Tedge
tedge config list 0.114 s Call Tedge Config List
tedge config list --all 0.108 s Call Tedge Config List
set/unset device.type 0.692 s Call Tedge Config List
set/unset device.key_path 0.949 s Call Tedge Config List
set/unset device.cert_path 0.625 s Call Tedge Config List
set/unset c8y.root_cert_path 0.778 s Call Tedge Config List
set/unset c8y.smartrest.templates 0.788 s Call Tedge Config List
set/unset c8y.topics 0.686 s Call Tedge Config List
set/unset az.root_cert_path 0.86 s Call Tedge Config List
set/unset az.topics 0.384 s Call Tedge Config List
set/unset aws.topics 0.53 s Call Tedge Config List
set/unset aws.url 0.478 s Call Tedge Config List
set/unset aws.root_cert_path 0.406 s Call Tedge Config List
set/unset aws.mapper.timestamp 0.68 s Call Tedge Config List
set/unset az.mapper.timestamp 0.909 s Call Tedge Config List
set/unset mqtt.bind.address 0.545 s Call Tedge Config List
set/unset mqtt.bind.port 0.562 s Call Tedge Config List
set/unset http.bind.port 0.444 s Call Tedge Config List
set/unset tmp.path 0.288 s Call Tedge Config List
set/unset logs.path 0.355 s Call Tedge Config List
set/unset run.path 0.445 s Call Tedge Config List
set/unset firmware.child.update.timeout 0.367 s Call Tedge Config List
set/unset c8y.url 0.351 s Call Tedge Config List
set/unset az.url 0.287 s Call Tedge Config List
set/unset mqtt.external.bind.port 0.387 s Call Tedge Config List
mqtt.external.bind.address 0.439 s Call Tedge Config List
mqtt.external.bind.interface 0.229 s Call Tedge Config List
set/unset mqtt.external.ca_path 0.22 s Call Tedge Config List
set/unset mqtt.external.cert_file 0.309 s Call Tedge Config List
set/unset mqtt.external.key_file 0.311 s Call Tedge Config List
set/unset software.plugin.default 0.347 s Call Tedge Config List
set/unset apt.name 0.237 s Call Tedge Config List
set/unset apt.maintainer 0.261 s Call Tedge Config List
Get Put Delete 2.039 s Http File Transfer Api
Set keys should return value on stdout 0.057 s Tedge Config Get
Unset keys should not return anything on stdout and warnings on stderr 0.12 s Tedge Config Get
Invalid keys should not return anything on stdout and warnings on stderr 0.125 s Tedge Config Get
Set configuration via environment variables 0.435 s Tedge Config Get
Set configuration via environment variables for topics 0.162 s Tedge Config Get
Set unknown configuration via environment variables 0.063 s Tedge Config Get

Please sign in to comment.