# Proxy config for Kubernetes synthetic metric adapter

**URL:** <https://community.dynatrace.com/t/proxy-config-for-kubernetes-synthetic-metric-adapter/48122>\
**Category:** Synthetic Monitoring\
**Tags:** kubernetes, synthetic-monitoring, private-synthetic-locations\
**Created:** [October 3, 2024, 1:32pm UTC](https://community.dynatrace.com/t/proxy-config-for-kubernetes-synthetic-metric-adapter/48122 "2024-10-03T13:32:26Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enrico\_F](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/enrico_f/32/23774_2.png) [@Enrico\_F](https://community.dynatrace.com/u/Enrico_F)\
**Post date:** [October 3, 2024, 1:32pm UTC](https://community.dynatrace.com/t/proxy-config-for-kubernetes-synthetic-metric-adapter/48122/1 "2024-10-03T13:32:26Z")

</div>

Has anybody had any success with deploying containerized, **auto-scalable** private synthetic locations in “air-gapped” K8s namespaces where egress to the Dynatrace SaaS cloud is only possible via HTTP proxy?

I’m asking because it seems there are no instructions about how to configure a proxy with the **metrics adapter** template - only for the **location** template.

I’m referring to this documentation:

> **[Containerized, auto-scalable private Synthetic locations on Kubernetes in...](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/private-synthetic-locations/containerized-locations)**
>
> Deploy and manage containerized, auto-scalable private Synthetic locations on Kubernetes/RedHat OpenShift.

As per the generated [metric adapter template](https://docs.dynatrace.com/docs/platform-modules/digital-experience/synthetic-monitoring/private-synthetic-locations/containerized-locations#deploy-adapter) the deployment “dynatrace-metrics-apiserver” obviously wants to communicate with the public API endpoint on SaaS configured via env var BASE\_URL:

```markup
apiVersion: apps/v1
kind: Deployment
metadata:
  ...
spec:
  ...
  template:
    ...
    spec:
      ...
      containers:
        - name: dynatrace-metrics-apiserver
          image: dynatrace/dynatrace-synthetic-adapter:latest
          env:
            - name: BASE_URL
              value: "https://abcdef.live.dynatrace.com/e/abcdef"
          imagePullPolicy: Always
          args:
            - --secure-port=6443
            - --cert-dir=/tmp
          ports:
            - name: https
              containerPort: 6443
          volumeMounts:
            - name: temp-vol
              mountPath: /tmp
            - name: dynametric
              mountPath: /var/lib/dynatrace/secrets/dynametric
              readOnly: true
          ...
      ...

```

On our k8s cluster this will not work as direct egress is not allowed.

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [October 3, 2024, 2:00pm UTC](https://community.dynatrace.com/t/proxy-config-for-kubernetes-synthetic-metric-adapter/48122/2 "2024-10-03T14:00:56Z")

</div>

I don’t believe that it is currently possible to add proxy settings for the metric adapter. I’m checking into it

---

<div class="post-metadata">

**Author:** ![Enrico\_F](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/enrico_f/32/23774_2.png) [@Enrico\_F](https://community.dynatrace.com/u/Enrico_F)\
**Post date:** [October 3, 2024, 2:15pm UTC](https://community.dynatrace.com/t/proxy-config-for-kubernetes-synthetic-metric-adapter/48122/3 "2024-10-03T14:15:30Z")

</div>

Hi [@HannahM](https://community.dynatrace.com/user/1433)

Thanks for looking into this - appreciated!

If a proxy config is not currently supported the other option would be to connect to an internal API endpoint on one of our ActiveGates that is reachable directly from the namespace, but that would require either allowing insecure TLS comms or the configuration of a custom CA in the trust store (since our AG’s use a server cert that is signed by a private CA).

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 8, 2024, 11:43am UTC](https://community.dynatrace.com/t/proxy-config-for-kubernetes-synthetic-metric-adapter/48122/4 "2024-10-08T11:43:23Z")

</div>

Hi&nbsp;[@Enrico\_F](https://community.dynatrace.com/user/7040)

have you checked customizing proxy configurations in Dynakube.yaml on the K8s cluster.

 ![2024-10-08_15h40_39.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/1/c17e5dadb42a3812627fc26e71cc3ed5fbc027bd.png)

BR,

Peter.

---

<div class="post-metadata">

**Author:** ![Enrico\_F](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/enrico_f/32/23774_2.png) [@Enrico\_F](https://community.dynatrace.com/u/Enrico_F)\
**Post date:** [October 8, 2024, 11:59am UTC](https://community.dynatrace.com/t/proxy-config-for-kubernetes-synthetic-metric-adapter/48122/5 "2024-10-08T11:59:52Z")

</div>

No, because

1. our expectation is that containerized, auto-scalable private synthetic locations must be completely decoupled from the Dynatrace operator namespace.
2. I don’t see why that would have any effect&nbsp;as there is no requirement/dependency mentioned with regards to the Dynatrace operator in the documentation.
3. we don’t have direct access to the Dynatrace operator namespace (it’s part of the OpenShift PaaS)

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 8, 2024, 12:37pm UTC](https://community.dynatrace.com/t/proxy-config-for-kubernetes-synthetic-metric-adapter/48122/6 "2024-10-08T12:37:11Z")

</div>

Hello&nbsp;[@Enrico\_F](https://community.dynatrace.com/user/7040)

You can check the attached configurations:&nbsp;[Configuration properties and parameters of ActiveGate — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/sgw-configure#synth_mod)

 ![2024-10-08_16h32_09.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/3/7383cfec6e70dafd129f0dae93690144423531c1.png)

 ![2024-10-08_16h34_55.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/7/07ac8973837307315b8177f08e0b670e5942d256.png)

Hoping it adds value.

BR,

Peter.

---

<div class="post-metadata">

**Author:** ![Enrico\_F](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/enrico_f/32/23774_2.png) [@Enrico\_F](https://community.dynatrace.com/u/Enrico_F)\
**Post date:** [October 8, 2024, 1:01pm UTC](https://community.dynatrace.com/t/proxy-config-for-kubernetes-synthetic-metric-adapter/48122/7 "2024-10-08T13:01:24Z")

</div>

Thanks. I’m already familiar with the ActivGate properties but IMO this is not really relevant here as my question is not specifically about the ActiveGate itself but rather about the [synthetic (metric) adapter](https://hub.docker.com/r/dynatrace/dynatrace-synthetic-adapter) component that’s required for auto-scaling containerized private locations on K8s.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 8, 2024, 1:08pm UTC](https://community.dynatrace.com/t/proxy-config-for-kubernetes-synthetic-metric-adapter/48122/8 "2024-10-08T13:08:06Z")

</div>

Thanks&nbsp;[@Enrico\_F](https://community.dynatrace.com/user/7040)&nbsp;for feedback.

what about checking this section&nbsp;[Proxy for ActiveGate — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/sgw-proxy-authentication#advanced)

Regards,

---

<div class="post-metadata">

**Author:** ![Enrico\_F](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/enrico_f/32/23774_2.png) [@Enrico\_F](https://community.dynatrace.com/u/Enrico_F)\
**Post date:** [October 8, 2024, 1:48pm UTC](https://community.dynatrace.com/t/proxy-config-for-kubernetes-synthetic-metric-adapter/48122/9 "2024-10-08T13:48:20Z")

</div>

Already checked - none of that applies to the [synthetic adapter](https://hub.docker.com/r/dynatrace/dynatrace-synthetic-adapter)&nbsp;component. But thanks anyway.

---

<div class="post-metadata">

**Author:** ![Enrico\_F](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/enrico_f/32/23774_2.png) [@Enrico\_F](https://community.dynatrace.com/u/Enrico_F)\
**Post date:** [October 17, 2024, 9:28am UTC](https://community.dynatrace.com/t/proxy-config-for-kubernetes-synthetic-metric-adapter/48122/10 "2024-10-17T09:28:48Z")

</div>

FWIW: In the meantime this was acknowledged by support as something that got missed during initial design and will be addressed in sprint 305 (expected for late January 2025).

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 17, 2024, 10:17am UTC](https://community.dynatrace.com/t/proxy-config-for-kubernetes-synthetic-metric-adapter/48122/11 "2024-10-17T10:17:13Z")

</div>

Thanks&nbsp;[@Enrico\_F](https://community.dynatrace.com/user/7040)&nbsp;for the update.

BR,

Peter

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [November 5, 2024, 9:29am UTC](https://community.dynatrace.com/t/proxy-config-for-kubernetes-synthetic-metric-adapter/48122/12 "2024-11-05T09:29:30Z")

</div>

Some good news on this one, the fix has been backported to the 303 ActiveGate. So should be available in the next couple of weeks.&nbsp;:party\_cat:

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [November 5, 2024, 9:57am UTC](https://community.dynatrace.com/t/proxy-config-for-kubernetes-synthetic-metric-adapter/48122/13 "2024-11-05T09:57:57Z")

</div>

Thanks&nbsp;[@HannahM](https://community.dynatrace.com/user/1433)&nbsp;for the good news&nbsp;:rolled\_up\_newspaper::dynaspin:😊
