Skip to content

Can't expose port for git-sync metrics #62592

@jeff-cook

Description

@jeff-cook

Official Helm Chart version

1.19.0 (latest released)

Apache Airflow version

1.3.7

Kubernetes Version

v1.33.7-eks-ac2d5a0

Helm Chart configuration

I have enabled metrics on the git-sync containers. However there is no option to expose the port to collect the metrics.

dags:
  gitSync:
      env:
        - name: GITSYNC_HTTP_BIND
          value: ":1234"
        - name: GITSYNC_HTTP_METRICS
          value: "true"

Docker Image customizations

None

What happened

I have enabled metrics on the git-sync containers. However there is no option to expose the port to collect the metrics.

What you think should happen instead

Can we add ports section to the gitSync config?

dags:
  gitSync: 
    ports: []

How to reproduce

Enable gitSync and add the following.

dags:
  gitSync:
      env:
        - name: GITSYNC_HTTP_BIND
          value: ":1234"
        - name: GITSYNC_HTTP_METRICS
          value: "true"

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:helm-chartAirflow Helm Chartkind:bugThis is a clearly a bugkind:featureFeature Requestsneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions