Tag Archives: FQA records

Prometheus Error: “INVALID“ is not a valid start token [How to Solve]

Error: “INVALID” is not a valid start token

The configuration file that reports the error:

  - job_name: 'jiankong'
    scrape_interval: 15s
    static_configs:
    - targets: ['192.168.17.54:6666']

Solution:

add a line of code

metrics_path: '/prometheus'

configuration file after solution

  - job_name: 'jiankong'
    metrics_path: '/prometheus'
    scrape_interval: 15s
    static_configs:
    - targets: ['192.168.17.54:6666']

Reason for error reporting: this problem is caused by incorrect data format, which can be solved by specifying the pulled data format