This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
app-notes:status-sdk-influxdb [2023/11/06 20:47] – [Netmodule router] dodenhoeft | app-notes:status-sdk-influxdb [2025/01/13 19:58] (current) – [status2influx script] dodenhoeft | ||
---|---|---|---|
Line 13: | Line 13: | ||
===== Concept ===== | ===== Concept ===== | ||
+ | {{: | ||
Netmodule routers provide several service status values via cli. We are going to send those informations to the external influxdb. For this usecase we want to use the REST-API and the line protocol by influxdb. Our SDK functionality has different kind of netmodule specific functions to do HTTP request. The status value can attached to the HEADER of the HTTP request and going to get send via TLS/SSL connection to the database. | Netmodule routers provide several service status values via cli. We are going to send those informations to the external influxdb. For this usecase we want to use the REST-API and the line protocol by influxdb. Our SDK functionality has different kind of netmodule specific functions to do HTTP request. The status value can attached to the HEADER of the HTTP request and going to get send via TLS/SSL connection to the database. | ||
+ | |||
+ | ===== SDK scripting ===== | ||
+ | All information about SDK can be found [[sdk: | ||
===== InfluxDB ===== | ===== InfluxDB ===== | ||
Line 62: | Line 66: | ||
==== status2influx script ==== | ==== status2influx script ==== | ||
<code c status2influx.are> | <code c status2influx.are> | ||
- | */ DESC: This script is sendinf | + | /* DESC: This script is sending |
* created by [TD] 24.9.2023 | * created by [TD] 24.9.2023 | ||
- | */ Copyright (C) 2013-2022) NetModule AG, Switzerland | + | * Copyright (C) (2013-2024) NetModule AG, Switzerland |
+ | */ | ||
url = " | url = " | ||
Line 79: | Line 84: | ||
- | //define header with text/plain WORKS | + | //define header with valid influx API Token |
header = " | header = " | ||