[RDK Central Wiki]
Telemetry is the automatic recording and transmission of data from remote or inaccessible sources to an IT system in a different location for monitoring and analysis.
1. Xconf Server
2. Rpi Board with RDK Video image
3. HTTP Server
Processed Data (Metrics)
Rpi board will connect to Xconf Server to get the device configuration information, telemetry profile information and log upload repository (ip address of http server). It will search for the markers (contents mentioned in the permanent profile) in the mentioned log file. If it is found in the log file, it will process those information and create a text file and upload that file in the http server. This way all the critical data related to device health will be available on timely basis in the http server for further analysis.
1. Login to Xconf Server and go to DCM menu item and click on “Formulas” sub menu
2. Click on Create button
3. i) Provide “Name”, “Description”, and build conditions and save the formula.
ii) Verify Percentage and Priority field(normally it displays the sequence number of formula, can be changed to make the formula higher/lower priority) is auto field up with their respective values
iii) Go to “Build condition” section and click on the first empty field to get all the available field displayed there
iv) Select estbMacAddress and provide the MAC address of Rpi board
4. Verify the created formula (ex. RPI_formula22Aug) displayed in the formula list.
5. Click on Edit formula for the created formula (ex. RPI_formula_22Aug).
6. Edit formula page opens.
7. Click on “Create Device Settings” and fill up the fields as displayed in the screen below and click on save button:
8. Click on DCM menu then “Upload repository” submenu and click on “Create” button
9. Provide inputs as mentioned below screen and save the upload repository.
10. Click on Formula and go back to the Edit formula page of the created formula (ex. RPI_formula_22Aug) and click on “Create Log Upload settings” button. Upload repository drop down menu field will show all the upload repositories including the created one (ex. Chennai_22Aug_repo)
11. Provide inputs as mentioned in the screen below:
12. Save the “Edit Formula” page
13. Verify the Formula page for the created formula (ex. RPI_formula_22Aug) where View Settings column displays the “Device” and “LogUpload”
14. Go to Telemetry menu and click on “Permanent Profile”
15. Click on “Create” button to create permanent profile with different markers.
Telemetry profile entries -
First field is “Header” - This is the name for the particular logs collection. This is a custom name and can be decided based on the use case or error condition or any other scenario.
Second field is “Content” - This is the "log message string" that appears in the RDK logs.
Third field is “type” - This is the name of the log file where the above log message string needs to be searched.
Fourth field is “Skip frequency” - This is a skip frequency. It can have values like 0, 1, 2 etc.
0 - This particular log message is never skipped.
1 - Skip every alternate occurrence of this log message.
2 - Skip 2 consecutive log message occurrences and then collect 1 occurrence and then again skip 2 occurrences.
Based on the R-Pi board supported markers available,we have selected few of them as mentioned below:
|Firewall||starting firewall service||FirewallDebug.txt|
|Firewall-1||Inside firewall service_init()||FirewallDebug.txt|
|Wi-Fi||Wifi Agent loaded successfully...||WiFilog.txt.0|
|Armconsole||get_PartnerID - Failed Get factoryPartnerId |
so set it PartnerID as: comcast
|swupdate||image itself not downloaded from TFTP,|
pls check tftp connection!!
16. Save Permanent profile (ex. Perm_Prof_22Aug) and it will display in the Permanent profiles page
17. Click on “Telemetry” and then click on “Targeting Rules”
18. Click on “Create” button, provide Rule name and select different rule parameters and map the Permanent profile with this rule by selecting “Bound profile” drop down menu. Save the Targeting rule.
19. Verify the created Targeting rule displayed on the Targeting rule page
Below steps needed after flashing for the first time:
1. Flash the Telemetry image and load it on RPi board
2. Configure the CLOUDURL parameter and Log Server/Http Server parameter by providing IP address of XConf server in the two mentioned files /etc/include.properties and /etc/dcm.properties respectively.
For ex. In include.properties file:
In dcm.properties file:
3.In device.properties file:
4. In include.properties file:
5. Verify the image version: cat /version.txt
6. Perform reboot: reboot -f
Below steps are to check telemetry log whenever box boots up ( after first time boot ) :
1. Verify http server is running and XConf DCM and Telemetry Permanent profile is configured properly (see Telemetry User manual for XConf side configuration for Telemetry)
2. After reboot, verify Telemetry log: cat /opt/logs/telemetry.log
3. Verify that rtl_json file and zipped log files for all other logs displayed in AWS(http) server(http://188.8.131.52/xconf/upload)