docs
docs copied to clipboard
Support k8s address resolution
File: /master/tidb-lightning/monitor-tidb-lightning.md
For the scrape_configs mentioned in the doc, scrape_configs:
- job_name: 'tidb-lightning'
static_configs:
- targets: ['192.168.20.10:8289'] currently I don’t have a static ip for the pod since it’s running in the k8s, can I use k8s service name as the target? Ans: It is fine to use k8s address. Just make sure DNS will translate the k8s address to the correct ip address.
@sunzhaoyang Could you please take a look? Thanks~
/cc @Ehco1996 PTAL
@lrvgz yes you can use a k8s svc as an endpoint but make sure your svc config is correct