<p>I currently have a Kubernetes FluentD operator<a href="https://github.com/vmware/kube-fluentd-operator" rel="nofollow noreferrer">[1]</a> running in my environment. It deploys fine using the helm chart but I need to somehow set the <code>prometheus-enabled</code> flag when deploying the helm chart.</p>
<p>The documentation states the following :</p>
<pre><code>usage: config-reloader [&lt;flags&gt;]

Regenerates Fluentd configs based Kubernetes namespace annotations against templates, reloading
Fluentd if necessary

Flags:
  ...
  --prometheus-enabled          Prometheus metrics enabled (default: false)
</code></pre>
<p>My question is, can I set this flag when I run the helm chart? ie.</p>
<p><code>helm upgrade --install kfo &lt;prometheus-enabled=true&gt; \$CHART_URL --namespace \$INSTALL_NAMESPACE -f kfo/config.yaml</code></p>
<p>where <code>config.yaml</code> consists of :</p>
<pre><code>---
meta:
  key: metadata
  values:
    region: ${AWS_REGION}
    env: ${ENV}
    cluster: ${KUBERNETES_CLUSTER_TYPE}
rbac:
  create: true
image:
  repository: vmware/kube-fluentd-operator
  tag: v1.12.0
fluentd:
  extraVolumeMounts:
    - name: fluentd-template-mapping
      mountPath: /templates
extraVolumes:
  - name: fluentd-template-mapping
    configMap:
      defaultMode: 420
      name: fluentd-template-mapping
</code></pre>
<p>If not, what can I do to set it?</p>
<p>Thanks</p>
<hr />
<h2>Links</h2>
<ol>
<li>VMWare's fluentd operator - <a href="https://github.com/vmware/kube-fluentd-operator" rel="nofollow noreferrer">https://github.com/vmware/kube-fluentd-operator</a></li>
</ol>

<p>I checked the chart and it appears you just need to add <code>prometheusEnabled: true</code> to your <code>config.yaml</code>:</p>
<pre><code>---
meta:
  key: metadata
  values:
    region: ${AWS_REGION}
    env: ${ENV}
    cluster: ${KUBERNETES_CLUSTER_TYPE}
rbac:
  create: true
image:
  repository: vmware/kube-fluentd-operator
  tag: v1.12.0
fluentd:
  extraVolumeMounts:
    - name: fluentd-template-mapping
      mountPath: /templates
extraVolumes:
  - name: fluentd-template-mapping
    configMap:
      defaultMode: 420
      name: fluentd-template-mapping
prometheusEnabled: true
</code></pre>
