Uwsgi statistics parsing failed with error: unexpected end of JSON input

Did anyone meet the problem?

I add the uwsgi module on metricbeat

My config is :

metricbeat.modules:

  • module: docker
    metricsets:
    • "container"
    • "cpu"
    • "diskio"
    • "healthcheck"
    • "info"
      #- "image"
    • "memory"
    • "network"
      hosts: ["unix:///var/run/docker.sock"]
      period: 10s
      enabled: true
  • module: uwsgi
    metricsets: ["status"]
    enable: true
    period: 10s
    hosts: ["tcp://127.0.0.1:9091"]

monitor metricbeat:
ERROR status/data.go:82 uwsgi statistics parsing failed with error: unexpected end of JSON input

How to solve the problem?
Thanks!

Angelo_Deng,

Can you verify that the status endpoint that uwsgi exposes is working properly? You should be able to access the raw TCP endpoint using nc or uwsgias demonstrated here:
https://uwsgi-docs.readthedocs.io/en/latest/StatsServer.html

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.