Hi
i want heartbeat to find every single kubernetes pod and report it to elasticsearch uptime, however all i am able to currentlty get is the kubernetes nodes and my 1x http monitor.
here is my config
data:
heartbeat.yml: |-
heartbeat.autodiscover:
# Autodiscover pods
providers:
- type: kubernetes
resource: pod
scope: cluster
hints.enabled: true
templates:
config:
- type: http
hosts: ["$${data.host}:$${data.port}"]
schedule: "@every 1s"
timeout: 1s
# Autodiscover services
providers:
- type: kubernetes
resource: service
scope: cluster
node: $${NODE_NAME}
hints.enabled: true
# Autodiscover nodes
providers:
- type: kubernetes
resource: node
node: $${NODE_NAME}
scope: cluster
templates:
# Example, check SSH port of all cluster nodes:
- condition: ~
config:
- hosts:
- $${data.host}:22
name: $${data.kubernetes.node.name}
schedule: '@every 10s'
timeout: 5s
type: tcp
processors:
- add_cloud_metadata:
output.elasticsearch:
hosts: ['${ES_HOST}']
username: "elastic"
password: ${ES_PASSWORD}
heartbeat.monitors:
- type: http
schedule: '@every 5s'
urls: ["http://www.google.com"]
service.name: google
id: google
name: google
can anyone see where i am going wrong with the autodiscover resource type pod? the autodiscover node works, but not pods