summaryrefslogtreecommitdiffstats
path: root/monitor/config
diff options
context:
space:
mode:
authorYang (Gabriel) Yu <Gabriel.yuyang@huawei.com>2018-05-24 14:37:06 +0800
committerYang (Gabriel) Yu <Gabriel.yuyang@huawei.com>2018-05-25 12:52:21 +0800
commitb1b458428b644e0df7957e3137bc75d658d68ab1 (patch)
treee79baabd1d31b9942ba4e8d636454f5477aa17d1 /monitor/config
parent265d35dd56247e855002c05cc4f11b39514700c5 (diff)
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 <Gabriel.yuyang@huawei.com>
Diffstat (limited to 'monitor/config')
-rw-r--r--monitor/config/barometer_client.conf2
-rw-r--r--monitor/config/barometer_server.conf2
-rw-r--r--monitor/config/openstack_exporter.conf12
-rw-r--r--monitor/config/prometheus.yaml8
4 files changed, 22 insertions, 2 deletions
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
</Plugin>
<Plugin ovs_stats>
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
</Plugin>
<Plugin ovs_stats>
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']