# Support for custom annotations in Helm Chart

**URL:** <https://discuss.dgraph.io/t/support-for-custom-annotations-in-helm-chart/15091>\
**Category:** Dgraph\
**Tags:** kind:enhancement\
**Created:** [July 26, 2021, 4:27pm UTC](https://discuss.dgraph.io/t/support-for-custom-annotations-in-helm-chart/15091 "2021-07-26T16:27:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjpitz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/mjpitz/32/8339_2.png) [@mjpitz](https://discuss.dgraph.io/u/mjpitz)\
**Post date:** [July 26, 2021, 4:27pm UTC](https://discuss.dgraph.io/t/support-for-custom-annotations-in-helm-chart/15091/1 "2021-07-26T16:27:10Z")

</div>

## Experience Report for Feature Request

As an operator of dgraph, I’d like to monitor the system using the tools and technologies that my company currently supports. The dgraph helm chart comes prepackaged with prometheus annotations. However, some companies use solutions like Datadog as their defacto monitoring solution. Allowing consumers to specify custom annotations will allow them to leverage their monitoring tool of choice.

### What you wanted to do

Add a `podAnnotations` field to the `alpha` and `zero` configuration blocks to allow consumers to plug in their own custom annotations.

### What you actually did

I have not yet implemented this, but it appears to be rather straightforward to do.

### Why that wasn’t great, with examples

N/A

### Any external references to support your case

N/A

---

<div class="post-metadata">

**Author:** ![mjpitz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/mjpitz/32/8339_2.png) [@mjpitz](https://discuss.dgraph.io/u/mjpitz)\
**Post date:** [July 26, 2021, 4:45pm UTC](https://discuss.dgraph.io/t/support-for-custom-annotations-in-helm-chart/15091/2 "2021-07-26T16:45:18Z")

</div>

From some of my digging…

It looks like Datadog’s agent can be configured to use the prometheus annotations: [https://docs.datadoghq.com/agent/kubernetes/prometheus/](https://docs.datadoghq.com/agent/kubernetes/prometheus/)

It would still be useful to use the autodiscovery annotations for some processes rather than opting the entire cluster into it.

---

<div class="post-metadata">

**Author:** ![dmai](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/dmai/32/1254_2.png) [@dmai](https://discuss.dgraph.io/u/dmai)\
**Post date:** [July 27, 2021, 12:26am UTC](https://discuss.dgraph.io/t/support-for-custom-annotations-in-helm-chart/15091/3 "2021-07-27T00:26:41Z")

</div>

We’ve added config support for `alpha.extraAnnotations`, `zero.extraAnnotations`, and `ratel.extraAnnotations` in this PR:

> <https://github.com/dgraph-io/charts/pull/71>
>
> This adds support for deploy and sts template annotations. This will allow for …annotations that allow services to inject side-cars containers, such as linkerd proxy-injection.
> 
> This changes were added:
> 
> \* ratel.extraAnnotations for deploy template annotations
> \* alpha.extraAnnotations and zero.extraAnnotations for sts template annotations
> \* updated README for new value and missing metrics.enabled value
> \* provided example linkerd.yaml 
> 
> This was tested with the following values file:
> 
> \`\`\`yaml
> alpha:
> extraAnnotations:
> config.linkerd.io/skip-inbound-ports: 7080
> config.linkerd.io/skip-outbound-ports: 7080
> linkerd.io/inject: enabled
> zero:
> extraAnnotations:
> config.linkerd.io/skip-inbound-ports: 5080
> config.linkerd.io/skip-outbound-ports: 5080
> linkerd.io/inject: enabled
> ratel:
> enabled: true
> extraAnnotations:
> linkerd.io/inject: enabled
> \`\`\`
> 
> 
> \---
> This change is \[\<img src="https://reviewable.io/review\_button.svg" height="34" align="absmiddle" alt="Reviewable"/\>\](https://reviewable.io/reviews/dgraph-io/charts/71)

I hope that fits your use case @mjpitz. We’ll release this new chart version publicly this week.

---

<div class="post-metadata">

**Author:** ![dmai](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/dmai/32/1254_2.png) [@dmai](https://discuss.dgraph.io/u/dmai)\
**Post date:** [July 28, 2021, 8:24pm UTC](https://discuss.dgraph.io/t/support-for-custom-annotations-in-helm-chart/15091/4 "2021-07-28T20:24:56Z")

</div>

@mjpitz The v0.0.18 Helm chart has been published. You can update to the latest helm chart to use the extraAnnotations config. I hope that helps with your monitoring setup.

---

<div class="post-metadata">

**Author:** ![mjpitz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/mjpitz/32/8339_2.png) [@mjpitz](https://discuss.dgraph.io/u/mjpitz)\
**Post date:** [August 3, 2021, 9:48pm UTC](https://discuss.dgraph.io/t/support-for-custom-annotations-in-helm-chart/15091/5 "2021-08-03T21:48:38Z")

</div>

Thanks for following up! I got this all going. Thanks 🙂
