Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

[metricbeat] Fix default configuration for kubernetes module #251

Merged
merged 1 commit into from
Aug 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion metricbeat/examples/default/test/goss-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ http:
timeout: 2000
body:
- 'metricbeat-7.3.0'
http://elasticsearch-master:9200/_search?q=metricset.name:state_deployment:

'http://elasticsearch-master:9200/_search?q=metricset.name:state_container%20AND%20kubernetes.container.name:metricbeat':
status: 200
timeout: 2000
body:
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/examples/default/test/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ http:
timeout: 2000
body:
- 'metricbeat-7.3.0'
http://elasticsearch-master:9200/_search?q=metricset.name:container:
'http://elasticsearch-master:9200/_search?q=metricset.name:container%20AND%20kubernetes.container.name:metricbeat':
status: 200
timeout: 2000
body:
Expand Down
3 changes: 2 additions & 1 deletion metricbeat/examples/security/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ metricbeatConfig:
- system
- volume
period: 10s
hosts: ["localhost:10255"]
host: "${NODE_NAME}"
hosts: ["${NODE_NAME}:10255"]
processors:
- add_kubernetes_metadata:
in_cluster: true
Expand Down
4 changes: 4 additions & 0 deletions metricbeat/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
{{- if .Values.extraEnvs }}
{{ toYaml .Values.extraEnvs | indent 8 }}
{{- end }}
Expand Down
3 changes: 2 additions & 1 deletion metricbeat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ metricbeatConfig:
- system
- volume
period: 10s
hosts: ["localhost:10255"]
host: "${NODE_NAME}"
hosts: ["${NODE_NAME}:10255"]
processors:
- add_kubernetes_metadata:
in_cluster: true
Expand Down