Skip to content

Pod information are not loaded from Prometheus directly #412

Closed

Description

@madduci

Describe the bug
When running krr against a cluster with Istio Service Mesh (with sidecars) enabled and various Deployment workloads, the pods related to the Deployments could not be found in Prometheus. Instead, Pods are loaded from Kubernetes API.

To Reproduce
Steps to reproduce the behavior:

  1. Having a Cluster with Istio Service Mesh for a namespace enabled, including sidecar injection
  2. Running ./krr simple --kubeconfig KUBECONFIG --namespace NAMESPACE --formatter html --fileoutput results.html --history_duration 60 --show-cluster-name
  3. See WARNING Message
WARNING  Was not able to load any pods for Deployment demis/lifecycle-validation-service-1-1-5/lifecycle-validation-service from Prometheus. Loaded pods from         runner.py:194
                    Kubernetes API instead. 

Expected behavior
Pods should be discovered directly from Prometheus

Screenshots

Image

Container is available in Prometheus:

Image

Are you interested in contributing a fix for this?
Yes, although i have a limited knowledge of Python

Desktop (please complete the following information):

  • OS: Ubuntu 24.04 LTS
  • Browser: Firefox 134
  • Version: KRR 1.22

Activity

  1. changed the title [-]Prometheus metrics are not loaded for pods[/-] [+]Pod information are not loaded from Prometheus directly[/+] on Mar 13, 2025
  2. aantn commented on Mar 13, 2025

    @aantn
    Contributor

    Thanks, can you try it with the branch mentioned here - #276 (comment)

    I believe this is a duplicate of #276 - can you confirm?

  3. madduci commented on Mar 14, 2025

    @madduci
    Author

    yes, same, it works though. i close this issue then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions