Code Review
/
salt-formulas
/
elasticsearch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add ES https support for telegraf
[salt-formulas/elasticsearch.git]
/
elasticsearch
/
meta
/
telegraf.yml
diff --git
a/elasticsearch/meta/telegraf.yml
b/elasticsearch/meta/telegraf.yml
index 6ccac3f5886d98ed8d4f8aadb223b1f9cb103b08..d73bb94adcebfec82c25dc208ff4e4f76de558a4 100644
(file)
--- a/
elasticsearch/meta/telegraf.yml
+++ b/
elasticsearch/meta/telegraf.yml
@@
-13,6
+13,12
@@
agent:
cluster_health: false
cluster_stats: true
local: true
cluster_health: false
cluster_stats: true
local: true
+ exec:
+ commands:
+ - "/usr/local/bin/elasticsearch_check_read_only.sh"
+ interval: "30s"
+ timeout: "15s"
+ data_format: "json"
{%- endif %}
{%- if client.get('enabled', False) %}
{%- endif %}
{%- if client.get('enabled', False) %}
@@
-22,7
+28,7
@@
remote_agent:
elasticsearch:
template: elasticsearch/files/telegraf.conf
servers:
elasticsearch:
template: elasticsearch/files/telegraf.conf
servers:
- - "
http
://{{ client.server.host }}:{{ client.server.get('port', 9200) }}"
+ - "
{{ client.server.get('scheme', 'http') }}
://{{ client.server.host }}:{{ client.server.get('port', 9200) }}"
cluster_health: true
cluster_stats: false
local: false
cluster_health: true
cluster_stats: false
local: false