Skip to content

targetPort on cortex proxy should be 'http' not 'metrics' #98

Description

@rdvhoorn

Bug description

the cortex-proxy-metrics svc targets pods has the following spec:

spec:
  ports:
    - name: metrics
      port: 8080
      protocol: TCP
      targetPort: metrics
  selector:
      app.kubernetes.io/instance: <can be custom> 
      app.kubernetes.io/name: cortex-proxy

The cortex proxy pods do not define this port, and only define the an http port and a health port.

Expected behavior

By default, the cortex proxy svc should target the right port on the pod.

Additional context

For my current setup, i patched the svc, after which it worked fine.

I've installed the cortex proxy as follows:

helm upgrade --install mimir-proxy oci://ghcr.io/projectcapsule/charts/cortex-proxy   --namespace observability   -f cluster/observability/values/tenancy-proxy/mimir-proxy-values.yaml

With the following values:

config:
  backend:
    # Mimir remote_write endpoint is exposed via mimir-gateway.
    # The distributed chart usually supports Prometheus remote_write at /api/v1/push on the gateway.
    url: "http://mimir-gateway.observability.svc.cluster.local/api/v1/push"

  tenant:
    # Route by this label found in incoming timeseries.
    labels:
      - "namespace"

    default: admin

args:
  logLevel: 5

Activity

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions