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

View File

@ -24,14 +24,14 @@ heartbeat_services:
name: galera HTTP name: galera HTTP
ports: ports:
- 9200 - 9200
type: tcp type: http
method: HEAD
path: "/"
- group: "{{ groups['galera_all'] }}" - group: "{{ groups['galera_all'] }}"
name: galera TCP name: galera TCP
ports: ports:
- 3306 - 3306
type: http type: tcp
method: HEAD
path: "/"
- group: "{{ groups['repo_all'] }}" - group: "{{ groups['repo_all'] }}"
name: repo git name: repo git
ports: ports:
@ -44,17 +44,10 @@ heartbeat_services:
type: http type: http
method: HEAD method: HEAD
path: "/" path: "/"
- group: "{{ groups['repo_all'] }}"
name: repo cache
ports:
- 3142
type: http
method: HEAD
path: "/"
- group: "{{ groups['repo_all'] }}" - group: "{{ groups['repo_all'] }}"
name: repo acng name: repo acng
ports: ports:
- 80 - 3142
type: http type: http
method: HEAD method: HEAD
path: "/acng-report.html" path: "/acng-report.html"
@ -135,9 +128,7 @@ heartbeat_services:
- 6080 - 6080
- 6082 - 6082
- 6083 - 6083
type: http type: tcp
method: HEAD
path: "/"
- group: "{{ groups['cinder_api'] }}" - group: "{{ groups['cinder_api'] }}"
name: cinder api name: cinder api
ports: ports:
@ -185,7 +176,6 @@ heartbeat_services:
name: rabbitmq management name: rabbitmq management
ports: ports:
- 15672 - 15672
- 15671
type: http type: http
method: HEAD method: HEAD
path: "/" path: "/"
@ -311,6 +301,21 @@ grafana_datasources:
maxConcurrentShardRequests: 256 maxConcurrentShardRequests: 256
timeField: "@timestamp" timeField: "@timestamp"
timeInterval: ">10s" 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" - name: "metricbeat-Elasticsearch"
type: "elasticsearch" type: "elasticsearch"
access: "proxy" access: "proxy"