iobroker.influxdb 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/io-package.json +13 -13
- package/lib/DatabaseInfluxDB1x.js +9 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -353,6 +353,9 @@ sendTo('influxdb.0', 'getEnabledDPs', {}, function (result) {
|
|
|
353
353
|
-->
|
|
354
354
|
|
|
355
355
|
## Changelog
|
|
356
|
+
### 2.6.1 (2022-02-28)
|
|
357
|
+
* (Excodibur) Address issue with updating retention policy for influxDB 1
|
|
358
|
+
|
|
356
359
|
### 2.6.0 (2022-02-24)
|
|
357
360
|
* (Excodibur) Make request timeout configurable - defaults to 30s
|
|
358
361
|
* (Apollon77) Add option to also accept self signed ssl certificates for InfluxDB 2.x
|
package/io-package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"pl": "Logowanie stanów do InfluxDB",
|
|
14
14
|
"zh-cn": "将状态记录到InfluxDB中"
|
|
15
15
|
},
|
|
16
|
-
"version": "2.6.
|
|
16
|
+
"version": "2.6.1",
|
|
17
17
|
"title": "Logging data with InfluxDB",
|
|
18
18
|
"titleLang": {
|
|
19
19
|
"en": "Logging data with InfluxDB",
|
|
@@ -28,6 +28,18 @@
|
|
|
28
28
|
"zh-cn": "使用InfluxDB记录数据"
|
|
29
29
|
},
|
|
30
30
|
"news": {
|
|
31
|
+
"2.6.1": {
|
|
32
|
+
"en": "Address issue with updating retention policy for influxDB 1",
|
|
33
|
+
"de": "Beheben Sie ein Problem mit der Aktualisierung der Aufbewahrungsrichtlinie für influxDB 1",
|
|
34
|
+
"ru": "Устранить проблему с обновлением политики хранения для influxDB 1.",
|
|
35
|
+
"pt": "Resolva o problema com a atualização da política de retenção para o influxDB 1",
|
|
36
|
+
"nl": "Probleem oplossen met het bijwerken van het bewaarbeleid voor influxDB 1",
|
|
37
|
+
"fr": "Résoudre le problème de mise à jour de la stratégie de rétention pour influxDB 1",
|
|
38
|
+
"it": "Risoluzione del problema con l'aggiornamento del criterio di conservazione per influxDB 1",
|
|
39
|
+
"es": "Solucionar el problema con la actualización de la política de retención para influxDB 1",
|
|
40
|
+
"pl": "Rozwiąż problem z aktualizacją zasad przechowywania dla influxDB 1",
|
|
41
|
+
"zh-cn": "解决更新 influxDB 1 保留策略的问题"
|
|
42
|
+
},
|
|
31
43
|
"2.6.0": {
|
|
32
44
|
"en": "Make request timeout configurable - defaults to 30s\nAdd option to also accept self signed ssl certificates for InfluxDB 2.x",
|
|
33
45
|
"de": "Anforderungs-Timeout konfigurierbar machen – standardmäßig 30 Sekunden\nOption hinzugefügt, um auch selbstsignierte SSL-Zertifikate für InfluxDB 2.x zu akzeptieren",
|
|
@@ -99,18 +111,6 @@
|
|
|
99
111
|
"es": "Admite solo `js.controller`> = 3.3.x\nSistema usado / vista personalizada para recolectar los objetos.\nOpción implementada para ignorar valores cero o inferiores a cero",
|
|
100
112
|
"pl": "Obsługuje tylko `js.controller` >= 3.3.x\nUżywany system/widok niestandardowy do zbierania obiektów\nZaimplementowana opcja ignorowania wartości zerowych lub/i poniżej zera",
|
|
101
113
|
"zh-cn": "仅支持 `js.controller` >= 3.3.x\n用于收集对象的系统/自定义视图\n已实现忽略零或/和低于零值的选项"
|
|
102
|
-
},
|
|
103
|
-
"2.2.0": {
|
|
104
|
-
"en": "Added option to store metadata (q, ack, from) as tags instead of fields for Influx 2.x - see README!\nFailure to update/set retention policy will now cause warning instead of error/restart, to support more restrictive DB setups\n(Excodibur/Apollon77) Bug fixes and adjustments",
|
|
105
|
-
"de": "Option zum Speichern von Metadaten (q, ack, from) als Tags anstelle von Feldern für Influx 2.x hinzugefügt - siehe README!\nWenn die Aufbewahrungsrichtlinie nicht aktualisiert/festgelegt wird, führt dies jetzt zu einer Warnung anstelle eines Fehlers/Neustarts, um restriktivere DB-Setups zu unterstützen\n(Excodibur/Apollon77) Fehlerbehebungen und Anpassungen",
|
|
106
|
-
"ru": "Добавлена возможность хранить метаданные (q, ack, from) в виде тегов вместо полей для Influx 2.x - см. README!\nНевозможность обновить / установить политику хранения теперь будет вызывать предупреждение вместо ошибки / перезапуска для поддержки более строгих настроек БД.\n(Excodibur / Apollon77) Исправления и корректировки.",
|
|
107
|
-
"pt": "Adicionada opção para armazenar metadados (q, ack, from) como tags em vez de campos para o Influx 2.x - veja README!\nA falha em atualizar / definir a política de retenção agora causará um aviso em vez de erro / reinicialização, para oferecer suporte a configurações de banco de dados mais restritivas\n(Excodibur / Apollon77) Correções e ajustes de bugs",
|
|
108
|
-
"nl": "Optie toegevoegd om metadata (q, ack, from) op te slaan als tags in plaats van velden voor Influx 2.x - zie README!\nAls het bewaarbeleid niet wordt bijgewerkt/ingesteld, wordt er nu een waarschuwing gegeven in plaats van een fout/herstart, om restrictievere DB-instellingen te ondersteunen\n(Excodibur/Apollon77) Bugfixes en aanpassingen",
|
|
109
|
-
"fr": "Ajout d'une option pour stocker les métadonnées (q, ack, from) sous forme de balises au lieu de champs pour Influx 2.x - voir README !\nL'échec de la mise à jour/définition de la politique de rétention entraînera désormais un avertissement au lieu d'une erreur/redémarrage, pour prendre en charge des configurations de base de données plus restrictives\n(Excodibur/Apollon77) Corrections de bugs et ajustements",
|
|
110
|
-
"it": "Aggiunta l'opzione per memorizzare i metadati (q, ack, from) come tag invece dei campi per Influx 2.x - vedi README!\nIl mancato aggiornamento/impostazione della politica di conservazione ora causerà un avviso anziché un errore/riavvio, per supportare configurazioni DB più restrittive\n(Excodibur/Apollon77) Correzioni di bug e aggiustamenti",
|
|
111
|
-
"es": "Opción agregada para almacenar metadatos (q, ack, from) como etiquetas en lugar de campos para Influx 2.x - ¡vea README!\nSi no se actualiza / establece la política de retención, ahora se generará una advertencia en lugar de un error / reinicio, para admitir configuraciones de base de datos más restrictivas\n(Excodibur / Apollon77) Corrección de errores y ajustes",
|
|
112
|
-
"pl": "Dodano opcję przechowywania metadanych (q, ack, from) jako tagów zamiast pól dla Influx 2.x - zobacz README!\nNiepowodzenie aktualizacji/ustawienia zasad przechowywania spowoduje teraz ostrzeżenie zamiast błędu/ponownego uruchomienia, aby obsługiwać bardziej restrykcyjne konfiguracje bazy danych\n(Excodibur/Apollon77) Poprawki i poprawki",
|
|
113
|
-
"zh-cn": "添加了将元数据(q、ack、from)存储为标签而不是 Influx 2.x 的字段的选项 - 请参阅自述文件!\n更新/设置保留策略失败现在将导致警告而不是错误/重启,以支持更严格的数据库设置\n(Excodibur/Apollon77) 错误修复和调整"
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
"mode": "daemon",
|
|
@@ -56,9 +56,10 @@ class DatabaseInfluxDB1x extends Database {
|
|
|
56
56
|
rows[0].forEach(row => {
|
|
57
57
|
if (row.default) {
|
|
58
58
|
const regMatch = row.duration.match(regex);
|
|
59
|
-
const retHours = parseInt(regMatch[1]);
|
|
60
|
-
const retMinutes = parseInt(regMatch[2]);
|
|
61
|
-
const retSeconds = parseInt(regMatch[3]);
|
|
59
|
+
const retHours = parseInt(regMatch[1]) || 0;
|
|
60
|
+
const retMinutes = parseInt(regMatch[2]) || 0;
|
|
61
|
+
const retSeconds = parseInt(regMatch[3]) || 0;
|
|
62
|
+
this.log.debug ("Extracted retention time for " + dbname + " - Hours: "+ retHours + " Minutes: " + retMinutes + " Seconds: " + retSeconds);
|
|
62
63
|
retentionTime = retHours * 60 * 60 + retMinutes * 60 + retSeconds;
|
|
63
64
|
retentionName = row.name;
|
|
64
65
|
}
|
|
@@ -86,8 +87,12 @@ class DatabaseInfluxDB1x extends Database {
|
|
|
86
87
|
const shardDuration = this.calculateShardGroupDuration(retention);
|
|
87
88
|
|
|
88
89
|
// Get name of currently active default policy first, to update only it.
|
|
90
|
+
// Excodibur: As for new DBs Influx 1 creates "autogen" policy by default, is is unlikely that there is a scenario
|
|
91
|
+
// where the policy needs to be CREATEd from scratch, since there is always one set. Just keeping it in
|
|
92
|
+
// here for perhaps unknown config-scenarios.
|
|
93
|
+
const command = oldRetention.name ? 'ALTER' : 'CREATE';
|
|
94
|
+
this.log.debug("Retention policy will be " + command + "ed");
|
|
89
95
|
|
|
90
|
-
const command = oldRetention.time ? 'ALTER' : 'CREATE';
|
|
91
96
|
const retentionName = oldRetention.name ? oldRetention.name : 'global';
|
|
92
97
|
|
|
93
98
|
this.log.info(`Applying retention policy (${retentionName}) for ${dbname} to ${retention === 0 ? 'infinity' : retention + ' seconds'}. Shard Duration: ${shardDuration} seconds`);
|