Skip to content

HTTP server randomly closes, offers vague reason, refuses to elaborate further #1000

@grepwood

Description

@grepwood

Describe the bug
I'm running nginx-prometheus-exporter as a container sitting next to my nginx container. The container with NPE randomly dies for no reason. It just logs:

{"time": actual time,"level":"INFO","source":"exporter.go:217","msg":"shutting down"}
{"time": actual time,"level":"INFO","source":"exporter.go:208","msg":"HTTP server closed","error":"http: server closed"}

Despite the fact that NPE was started with --log.level=debug, there's really nothing elaborated on why the HTTP server shut down.

To reproduce
Steps to reproduce the behavior:

  1. Deploy NPE with --log.level=debug.
  2. Wait 4 minutes, or 4 hours, or 12 hours.

Expected behavior
NPE should explain why it shut down so that I actually fix it.

Your environment

  • Version of the Prometheus exporter - 1.4.1
  • Version of Docker/Kubernetes - not relevant
  • [if applicable] Kubernetes platform (e.g. Mini-kube or GCP): Mirantis
  • Using NGINX or NGINX Plus: NGINX

Metadata

Metadata

Assignees

No one assigned

    Labels

    communityIssues or PRs opened by an external contributorwaiting for responseWaiting for author's response

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions