问题:“INVALID” is not a valid start token
报错的配置文件
- job_name: 'jiankong'
scrape_interval: 15s
static_configs:
- targets: ['192.168.17.54:6666']
解决方法:
添加一行代码
metrics_path: '/prometheus'
解决之后的配置文件
- job_name: 'jiankong'
metrics_path: '/prometheus'
scrape_interval: 15s
static_configs:
- targets: ['192.168.17.54:6666']