Skip to content

Metrics endpoint is giving 500 error #2891

@necipakca

Description

@necipakca

After upgrading the operator to v0.30.0, we lost the Prometheus metrics.
I investigated a bit and found a problematic VulnerabilityReport.
I’m attaching the report to the issue, but I’m not sure which part of it is causing the error.
Also, I can’t see any logs related to the metrics endpoint.

vul-metrics-corrupted.yml

In Pod :

/ $ wget -O - localhost:8080/metrics
Connecting to localhost:8080 ([::1]:8080)
wget: server returned error: HTTP/1.1 500 Internal Server Error

I think the problem is there is magical three dot under the title field.

  - fixedVersion: 2.56.1-9.amzn2.0.8
    installedVersion: 2.56.1-9.amzn2.0.6
    lastModifiedDate: "2024-11-21T05:27:19Z"
    links: []
    packagePURL: pkg:rpm/amazon/glib2@2.56.1-9.amzn2.0.6?arch=x86_64&distro=amazon-2+%28Karoo%29
    primaryLink: https://avd.aquasec.com/nvd/cve-2020-35457
    publishedDate: "2020-12-14T23:15:12Z"
    resource: glib2
    score: 7.8
    severity: HIGH
    target: ""
    title: GNOME GLib before 2.65.3 has an integer overflow, that might lead to a
      ...
    vulnerabilityID: CVE-2020-35457

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions