My kibana setup uses
SERVER_PUBLICBASEURL = http://www.example.com/kibana
SERVER_BASEPATH = /kibana
SERVER_REWRITEBASEPATH = "true"
My metricbeat autodiscovery for the kibana module uses:
- condition:
contains:
kubernetes.annotations.app: kibana
config:
- module: kibana
hosts: ["https://${data.host}:5601/kibana"]
But I am getting this in my metricbeat logs:
Error fetching data for metricset kibana.cluster_rules: invalid character '<' looking for beginning of value
As if metricbeat is hitting some HTML.
I can curl
https://www.example.com/kibana/api/status just fine.
I can also curl the pods ip directly from inside the cluster:
https://elastic:elastic@10.150.1.22:5601/kibana/api/status
Before modifying the Kibana path, metricbeats was pulling Kibana metrics normally.