Add: collect haproxy stats
Change-Id: If93339e7007c6d279128bc080ab7db2c5389870b (cherry picked from commit 49900d09eb798afbfa22a884c05f9f5e28f8e320)
This commit is contained in:
parent
87c73dceec
commit
1a3a1d55cb
@ -4,7 +4,7 @@
|
||||
%global pypi_name timmy
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 1.23.6
|
||||
Version: 1.23.7
|
||||
Release: 1%{?dist}~mos0
|
||||
Summary: Log collector tool for OpenStack Fuel
|
||||
|
||||
@ -104,6 +104,9 @@ popd
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Dec 5 2016 Dmitry Sutyagin <dsutyagin@mirantis.com> - 1.23.7
|
||||
- Add: collect haproxy stats
|
||||
|
||||
* Wed Nov 30 2016 Dmitry Sutyagin <dstuaygin@mirantis.com> - 1.23.6
|
||||
- Fix: Fuel not skipped when shell mode used
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
# under the License.
|
||||
|
||||
project_name = 'timmy'
|
||||
version = '1.23.6'
|
||||
version = '1.23.7'
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
|
@ -94,7 +94,7 @@ scripts:
|
||||
rabbitmqctl-cluster-status, crm-resource-status, pcs-status, ovs-dump-flows, neutron-agent-list,
|
||||
mysql-status, ceph-mon-status, ovs-ofctl-show-bridges, rabbitmqctl-list-connections,
|
||||
ovs-vsctl-show, rabbitmqctl-report, mysql-size, rabbitmqctl-status, crm-resource-list,
|
||||
cinder-manage]
|
||||
cinder-manage, haproxy-stats-html, haproxy-stats-show-info, haproxy-stats-show-stat, haproxy-stats-show-errors, haproxy-stats-show-sess]
|
||||
mongo: [mongo-replication-status, ipa, mongo-replica-conf, mongo-status, ovs-vsctl-show]
|
||||
once_by_roles:
|
||||
ceph-osd: [ceph-df, ceph-osd-status, ceph-osd-tree, ceph-pg-dump, ovs-vsctl-show,
|
||||
|
5
timmy_data/rq/scripts/haproxy-stats-html
Normal file
5
timmy_data/rq/scripts/haproxy-stats-html
Normal file
@ -0,0 +1,5 @@
|
||||
ip=$(grep -Ir 'bind' /etc/haproxy/* | perl -n -e '/bind (\d+\.\d+\.\d+\.\d+):10000/ && print $1')
|
||||
if [ -n "$ip" ]
|
||||
then
|
||||
curl http://$ip:10000/
|
||||
fi
|
1
timmy_data/rq/scripts/haproxy-stats-show-errors
Normal file
1
timmy_data/rq/scripts/haproxy-stats-show-errors
Normal file
@ -0,0 +1 @@
|
||||
echo "show errors" | socat unix-connect:///var/lib/haproxy/stats stdio
|
1
timmy_data/rq/scripts/haproxy-stats-show-info
Normal file
1
timmy_data/rq/scripts/haproxy-stats-show-info
Normal file
@ -0,0 +1 @@
|
||||
echo "show info" | socat unix-connect:///var/lib/haproxy/stats stdio
|
1
timmy_data/rq/scripts/haproxy-stats-show-sess
Normal file
1
timmy_data/rq/scripts/haproxy-stats-show-sess
Normal file
@ -0,0 +1 @@
|
||||
echo "show sess" | socat unix-connect:///var/lib/haproxy/stats stdio
|
1
timmy_data/rq/scripts/haproxy-stats-show-stat
Normal file
1
timmy_data/rq/scripts/haproxy-stats-show-stat
Normal file
@ -0,0 +1 @@
|
||||
echo "show stat" | socat unix-connect:///var/lib/haproxy/stats stdio
|
Loading…
x
Reference in New Issue
Block a user