bagratte
(Bagrat Lazaryan)
October 31, 2018, 10:58am
1
I can't seem to be able to use lists in pod annotations. This doesn't work at all (i. e. no metrics are being collected at all by logstash module):
annotations:
co.elastic.metrics/module: logstash
co.elastic.metrics/metricsets: '["node", "node_stats"]'
co.elastic.metrics/hosts: '["logstash-logging-0.logstash-logging-discovery:9600", "logstash-logging-1.logstash-logging-discovery:9600"]'
co.elastic.metrics/period: 10s
Whereas this works fine:
annotations:
co.elastic.metrics/module: logstash
co.elastic.metrics/metricsets: node
co.elastic.metrics/hosts: logstash-logging-0.logstash-logging-discovery:9600
co.elastic.metrics/period: 10s
Can we not put lists in those annotations?
jsoriano
(Jaime Soriano)
October 31, 2018, 2:22pm
2
Hi @bagratte and welcome
You should be able to use comma-separated lists in metricsets and hosts annotations:
annotations:
co.elastic.metrics/module: logstash
co.elastic.metrics/metricsets: 'node,node_stats'
co.elastic.metrics/hosts: 'logstash-logging-0.logstash-logging-discovery:9600,logstash-logging-1.logstash-logging-discovery:9600'
co.elastic.metrics/period: 10s
bagratte
(Bagrat Lazaryan)
November 2, 2018, 7:05am
3
Yeah, that worked. Thank you very much!
1 Like
system
(system)
Closed
November 30, 2018, 7:05am
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.