From b1b458428b644e0df7957e3137bc75d658d68ab1 Mon Sep 17 00:00:00 2001 From: "Yang (Gabriel) Yu" Date: Thu, 24 May 2018 14:37:06 +0800 Subject: add openstack-export support add openstack-exporter and enable ovs plugin in Barometer Changes: 1. Add openstack-exporter docker 2. Add opnestack grafana dashboard Change-Id: Ifd3416ad1dc48075e98c190b2048c7760f686bcb Signed-off-by: Yang (Gabriel) Yu --- monitor/config/barometer_client.conf | 2 +- monitor/config/barometer_server.conf | 2 +- monitor/config/openstack_exporter.conf | 12 ++++++++++++ monitor/config/prometheus.yaml | 8 ++++++++ 4 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 monitor/config/openstack_exporter.conf (limited to 'monitor/config') diff --git a/monitor/config/barometer_client.conf b/monitor/config/barometer_client.conf index 54db3889..a7481f17 100644 --- a/monitor/config/barometer_client.conf +++ b/monitor/config/barometer_client.conf @@ -155,7 +155,7 @@ LoadPlugin write_http Socket "/var/run/openvswitch/db.sock" Interfaces "br0" "veth0" SendNotification true - DispatchValues false + DispatchValues true diff --git a/monitor/config/barometer_server.conf b/monitor/config/barometer_server.conf index 55ff96e0..0d85db38 100644 --- a/monitor/config/barometer_server.conf +++ b/monitor/config/barometer_server.conf @@ -155,7 +155,7 @@ LoadPlugin write_http Socket "/var/run/openvswitch/db.sock" Interfaces "br0" "veth0" SendNotification true - DispatchValues false + DispatchValues true diff --git a/monitor/config/openstack_exporter.conf b/monitor/config/openstack_exporter.conf new file mode 100644 index 00000000..54a9cba8 --- /dev/null +++ b/monitor/config/openstack_exporter.conf @@ -0,0 +1,12 @@ +OS_AUTH_URL=https://192.16.1.222:5000/v3 +OS_PASSWORD=e5748a478dcfe05e9eaf7 +OS_PROJECT_NAME=admin +OS_USERNAME=admin +OS_USER_DOMAIN_NAME=Default +OS_REGION_NAME=RegionOne +TIMEOUT_SECONDS=20 +OS_POLLING_INTERVAL=60 +OS_RETRIES=0 +LISTEN_PORT=9104 +OS_CPU_OC_RATIO=1.5 +OS_RAM_OC_RATIO=1 diff --git a/monitor/config/prometheus.yaml b/monitor/config/prometheus.yaml index b218711d..4ece441a 100644 --- a/monitor/config/prometheus.yaml +++ b/monitor/config/prometheus.yaml @@ -50,3 +50,11 @@ scrape_configs: static_configs: - targets: ['192.168.114.2:9100'] + + - job_name: 'openstack' + + # Override the global default and scrape targets from this job every 5 seconds. + scrape_interval: 5s + + static_configs: + - targets: ['192.168.114.2:9104'] -- cgit 1.2.3-korg