Skip to content

How to scrap metrics from multiple containers of same pod exposing metrics at different paths and different ports ? #2139

@sjethvani

Description

@sjethvani

I have django application pod having 3/4 containers. Out of them 2/3 are exposing metrics (one being uswgi exporter , another being django exporter) . I want to use annotation autodiscovery feature for scrapping metrics & visualizing it in grafana.

I want to know how can I use k8s.grafana.com/metrics... annotations on pod to scrap metrics from multiple containers of it exposing metrics on different paths (like /uwsgi/metrics , /django/metrics) & ports (like 9117 , 9118) etc ?

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