From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 657576036F for ; Wed, 2 Dec 2020 10:21:47 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3628E190D1 for ; Wed, 2 Dec 2020 10:21:17 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 617EB19057 for ; Wed, 2 Dec 2020 10:21:15 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 2A53144A91 for ; Wed, 2 Dec 2020 10:21:15 +0100 (CET) From: Dominik Csapak To: pve-devel@lists.proxmox.com Date: Wed, 2 Dec 2020 10:21:03 +0100 Message-Id: <20201202092113.15911-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.301 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [tools.pm, plugin.pm, metricserver.pm, influxdb.pm, extmetric.pm, config.pm] Subject: [pve-devel] [PATCH common/storage/manager/docs] implement http api for influxdb status plugin X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2020 09:21:47 -0000 this series adds the possibility to write influxdb data via their v2 api. For influxdb 1.x there is a forwards compatible api since 1.8.0 i am not so sure about how i integrated the http api part into the existing influxdb plugin, another alternative would be to have a new InfluxDB2 Plugin that does only http(s). this way i could omit the permanent 'cfg->proto' check, but i am not sure if we want to have a new plugin for this.. manager/storage patches depend on common, but the storage patch is not needed for it to work pve-common: Dominik Csapak (1): tools: add extract_sensitive_params src/PVE/Tools.pm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) pve-storage: Dominik Csapak (1): api: storage/config: use extract_sensitive_params from tools PVE/API2/Storage/Config.pm | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) pve-manager: Dominik Csapak (7): api: cluster/metricserver: prevent simultaneosly setting and deleting of property status/plugin: extend send/_connect/_disconnect/test_connection status/plugin: extend with add/update/delete hooks status/influxdb: implement influxdb 2.x http api status/influxdb: remove unnecessary comment ui: add necessary fields for influxdb http api ui: dc/MetricServerView: add onlineHelp to edit windows PVE/API2/Cluster/MetricServer.pm | 41 ++++- PVE/ExtMetric.pm | 4 +- PVE/Status/InfluxDB.pm | 222 ++++++++++++++++++++++++++-- PVE/Status/Plugin.pm | 38 ++++- www/manager6/dc/MetricServerView.js | 105 ++++++++++++- 5 files changed, 375 insertions(+), 35 deletions(-) pve-docs: Dominik Csapak (1): external metrics server: extend docs to explain http api pve-external-metric-server.adoc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.20.1