# A way to absorb labels from the ingress as part of the metrics?

**URL:** <https://community.traefik.io/t/a-way-to-absorb-labels-from-the-ingress-as-part-of-the-metrics/14073>\
**Category:** Traefik v2\
**Tags:** metrics\
**Created:** [April 7, 2022, 8:54pm UTC](https://community.traefik.io/t/a-way-to-absorb-labels-from-the-ingress-as-part-of-the-metrics/14073 "2022-04-07T20:54:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![feniix](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/feniix/32/4952_2.png) [@feniix](https://community.traefik.io/u/feniix)\
**Post date:** [April 7, 2022, 8:54pm UTC](https://community.traefik.io/t/a-way-to-absorb-labels-from-the-ingress-as-part-of-the-metrics/14073/1 "2022-04-07T20:54:59Z")

</div>

currently the metrics look like this:

```auto
traefik_service_requests_total{app_kubernetes_io_component="metrics", app_kubernetes_io_name="traefik", code="200", container="traefik", exported_service="servicename-50051@kubernetes", job="traefik-metrics", method="POST", namespace="traefik-v2", protocol="http", service="traefik-metrics"}

```

We would like to at least get

exported\_namespace and the ingress name it belongs to?

ideal world, we want to be able to absorb all the labels that are applied to the ingress / service

our current config contains

```auto
        - --metrics.prometheus=true
        - --metrics.prometheus.entrypoint=metrics
        - --metrics.prometheus.addrouterslabels=true
        - --metrics.prometheus.addserviceslabels=true
        - --metrics.prometheus.addentrypointslabels=true

```

---

<div class="post-metadata">

**Author:** ![js-timbirkett](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/js-timbirkett/32/5109_2.png) [@js-timbirkett](https://community.traefik.io/u/js-timbirkett)\
**Post date:** [April 14, 2022, 11:04am UTC](https://community.traefik.io/t/a-way-to-absorb-labels-from-the-ingress-as-part-of-the-metrics/14073/2 "2022-04-14T11:04:22Z")

</div>

A join to the Ingress related metrics that `kube-state-metrics` collects: [kube-state-metrics/ingress-metrics.md at master · kubernetes/kube-state-metrics · GitHub](https://github.com/kubernetes/kube-state-metrics/blob/master/docs/ingress-metrics.md) might be what you're looking for 🙂
