Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metrics missing since upgrade to 3.7.0 from 3.6.1 at the /metrics endpoint with the prometheus plugin #14275

Open
mlindes opened this issue Feb 13, 2025 · 3 comments
Labels
pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc...

Comments

@mlindes
Copy link

mlindes commented Feb 13, 2025

Discussed in #14272

Originally posted by mlindes February 12, 2025
Since upgrading to 3.7.1, I no longer see kong_http_requests_total kong_kong_latency* or many of the metrics that should be visible at the /metrics endpoint with the following config:

  "plugins": [
    {
      "name": "prometheus",
      "config": {
        "bandwidth_metrics": true,
        "latency_metrics": true,
        "per_consumer": true,
        "status_code_metrics": true,
        "upstream_health_metrics": true
      },
      "enabled": true,
      "protocols": [
        "grpc",
        "grpcs",
        "http",
        "https"
      ]
    }
  ]
}

The only metrics visible at that endpoint are:

kong_data_plane_cluster_cert_expiry_timestamp
kong_datastore_reachable
kong_memory*
kong_nginx_*

This is not an enterprise installation.. it's the OSS branch, so no workspaces are enabled. I see workspaces are now a default tag on metrics and I'm wondering if that has anything to do with this issue.

Anyone have similar?

@xianghai2
Copy link

Recommend to use Kong-EE enterprise version.

@ProBrian
Copy link
Contributor

@mlindes , could you try latest version 3.9.0? I tried 3.9.0 locally with the same prometheus plugin like yours, and could successfully got kong_http_requests_total and kong_kong_latency* metrics with the /metrics endpoint.

@ProBrian
Copy link
Contributor

By the way, what's your deployment mode, and what's the version of kong that worked in your machine?

@nowNick nowNick added the pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc...
Projects
None yet
Development

No branches or pull requests

4 participants