cleanup heartbeat config

Change-Id: Iea30a4187e93fce252c603d4e188b2e475672b32
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
Kevin Carter 2018-04-27 17:08:10 -05:00
parent 26dd0b7a2e
commit 49f63cabae
No known key found for this signature in database
GPG Key ID: 9443251A787B9FB3
2 changed files with 25 additions and 16 deletions

View File

@ -74,6 +74,7 @@ heartbeat.monitors:
{% set _ = hosts.extend([backend_host + ":" + (port | string)]) %}
{% endfor %}
{% endfor %}
{% if hosts | length > 0 %}
- type: tcp # monitor type `tcp`. Connect via TCP and optionally verify endpoint
# by sending/receiving a custom payload
@ -146,6 +147,7 @@ heartbeat.monitors:
# Required TLS protocols
#supported_protocols: ["TLSv1.0", "TLSv1.1", "TLSv1.2"]
{% endif %}
{% elif item.type == 'http' %}
{% set hosts = [] %}
{% for port in item.ports | default([]) %}
@ -154,6 +156,7 @@ heartbeat.monitors:
{% set _ = hosts.extend(["http://" + backend_host + ":" + (port | string) + item.path]) %}
{% endfor %}
{% endfor %}
{% if hosts | length > 0 %}
- type: http # monitor type `http`. Connect via HTTP an optionally verify response
# Monitor name used for job name and document type
@ -226,6 +229,7 @@ heartbeat.monitors:
#body:
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
heartbeat.scheduler:

View File

@ -24,14 +24,14 @@ heartbeat_services:
name: galera HTTP
ports:
- 9200
type: tcp
type: http
method: HEAD
path: "/"
- group: "{{ groups['galera_all'] }}"
name: galera TCP
ports:
- 3306
type: http
method: HEAD
path: "/"
type: tcp
- group: "{{ groups['repo_all'] }}"
name: repo git
ports:
@ -44,17 +44,10 @@ heartbeat_services:
type: http
method: HEAD
path: "/"
- group: "{{ groups['repo_all'] }}"
name: repo cache
ports:
- 3142
type: http
method: HEAD
path: "/"
- group: "{{ groups['repo_all'] }}"
name: repo acng
ports:
- 80
- 3142
type: http
method: HEAD
path: "/acng-report.html"
@ -135,9 +128,7 @@ heartbeat_services:
- 6080
- 6082
- 6083
type: http
method: HEAD
path: "/"
type: tcp
- group: "{{ groups['cinder_api'] }}"
name: cinder api
ports:
@ -185,7 +176,6 @@ heartbeat_services:
name: rabbitmq management
ports:
- 15672
- 15671
type: http
method: HEAD
path: "/"
@ -311,6 +301,21 @@ grafana_datasources:
maxConcurrentShardRequests: 256
timeField: "@timestamp"
timeInterval: ">10s"
- name: "heartbeat-Elasticsearch"
type: "elasticsearch"
access: "proxy"
url: "http://{{ internal_lb_vip_address | default(hostvars[groups['elastic-logstash'][0]]['ansible_host']) }}:{{ elastic_hap_port }}"
basicAuth: false
basicAuthUser: ""
basicAuthPassword: ""
isDefault: false
database: "heartbeat-*"
jsonData:
esVersion: 56
keepCookies: []
maxConcurrentShardRequests: 256
timeField: "@timestamp"
timeInterval: ">10s"
- name: "metricbeat-Elasticsearch"
type: "elasticsearch"
access: "proxy"