summaryrefslogtreecommitdiffstats
path: root/collectors/xenstat.plugin
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 13:19:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-03-09 13:20:02 +0000
commit58daab21cd043e1dc37024a7f99b396788372918 (patch)
tree96771e43bb69f7c1c2b0b4f7374cb74d7866d0cb /collectors/xenstat.plugin
parentReleasing debian version 1.43.2-1. (diff)
downloadnetdata-58daab21cd043e1dc37024a7f99b396788372918.tar.xz
netdata-58daab21cd043e1dc37024a7f99b396788372918.zip
Merging upstream version 1.44.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors/xenstat.plugin')
l---------collectors/xenstat.plugin/README.md2
-rw-r--r--collectors/xenstat.plugin/integrations/xen_xcp-ng.md (renamed from collectors/xenstat.plugin/integrations/xen-xcp-ng.md)9
-rw-r--r--collectors/xenstat.plugin/metadata.yaml2
-rw-r--r--collectors/xenstat.plugin/xenstat_plugin.c12
4 files changed, 9 insertions, 16 deletions
diff --git a/collectors/xenstat.plugin/README.md b/collectors/xenstat.plugin/README.md
index 826e18e41..32fe4d213 120000
--- a/collectors/xenstat.plugin/README.md
+++ b/collectors/xenstat.plugin/README.md
@@ -1 +1 @@
-integrations/xen-xcp-ng.md \ No newline at end of file
+integrations/xen_xcp-ng.md \ No newline at end of file
diff --git a/collectors/xenstat.plugin/integrations/xen-xcp-ng.md b/collectors/xenstat.plugin/integrations/xen_xcp-ng.md
index e4aea6fee..17dc8d785 100644
--- a/collectors/xenstat.plugin/integrations/xen-xcp-ng.md
+++ b/collectors/xenstat.plugin/integrations/xen_xcp-ng.md
@@ -1,13 +1,14 @@
<!--startmeta
custom_edit_url: "https://github.com/netdata/netdata/edit/master/collectors/xenstat.plugin/README.md"
meta_yaml: "https://github.com/netdata/netdata/edit/master/collectors/xenstat.plugin/metadata.yaml"
-sidebar_label: "Xen/XCP-ng"
+sidebar_label: "Xen XCP-ng"
learn_status: "Published"
learn_rel_path: "Data Collection/Containers and VMs"
+most_popular: False
message: "DO NOT EDIT THIS FILE DIRECTLY, IT IS GENERATED BY THE COLLECTOR'S metadata.yaml FILE"
endmeta-->
-# Xen/XCP-ng
+# Xen XCP-ng
<img src="https://netdata.cloud/img/xen.png" width="150"/>
@@ -53,7 +54,7 @@ The scope defines the instance that the metric belongs to. An instance is unique
-### Per Xen/XCP-ng instance
+### Per Xen XCP-ng instance
These metrics refer to the entire monitored application.
@@ -165,7 +166,7 @@ sudo ./edit-config netdata.conf
| Name | Description | Default | Required |
|:----|:-----------|:-------|:--------:|
-| update every | Data collection frequency. | 1 | False |
+| update every | Data collection frequency. | 1 | no |
</details>
diff --git a/collectors/xenstat.plugin/metadata.yaml b/collectors/xenstat.plugin/metadata.yaml
index 493183694..e5527dbb1 100644
--- a/collectors/xenstat.plugin/metadata.yaml
+++ b/collectors/xenstat.plugin/metadata.yaml
@@ -4,7 +4,7 @@ modules:
plugin_name: xenstat.plugin
module_name: xenstat.plugin
monitored_instance:
- name: Xen/XCP-ng
+ name: Xen XCP-ng
link: "https://xenproject.org/"
categories:
- data-collection.containers-and-vms
diff --git a/collectors/xenstat.plugin/xenstat_plugin.c b/collectors/xenstat.plugin/xenstat_plugin.c
index c05d5e298..319396d43 100644
--- a/collectors/xenstat.plugin/xenstat_plugin.c
+++ b/collectors/xenstat.plugin/xenstat_plugin.c
@@ -920,22 +920,14 @@ static void xenstat_send_domain_metrics() {
}
int main(int argc, char **argv) {
- stderror = stderr;
clocks_init();
// ------------------------------------------------------------------------
// initialization of netdata plugin
- program_name = "xenstat.plugin";
+ program_name = PLUGIN_XENSTAT_NAME;
- // disable syslog
- error_log_syslog = 0;
-
- // set errors flood protection to 100 logs per hour
- error_log_errors_per_period = 100;
- error_log_throttle_period = 3600;
-
- log_set_global_severity_for_external_plugins();
+ nd_log_initialize_for_external_plugins(PLUGIN_XENSTAT_NAME);
// ------------------------------------------------------------------------
// parse command line parameters