amazon-web-services - 如何使用 helm chart 在 VMWare 的 Kubernetes FluentD Operator 中将 prometheus.enabled 标志设置为 true?

标签 amazon-web-services kubernetes prometheus metrics fluentd

我目前有一个 Kubernetes FluentD 运算符 [1]在我的环境中运行。它使用 Helm 图部署良好,但我需要以某种方式设置 prometheus-enabled部署 helm chart 时标记。
该文档指出以下内容:

usage: config-reloader [<flags>]

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

Flags:
  ...
  --prometheus-enabled          Prometheus metrics enabled (default: false)
我的问题是,我可以在运行 Helm 图时设置这个标志吗? IE。helm upgrade --install kfo <prometheus-enabled=true> \$CHART_URL --namespace \$INSTALL_NAMESPACE -f kfo/config.yaml在哪里 config.yaml由组成 :
---
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
如果没有,我该怎么做才能设置它?
谢谢

链接
  • VMWare 的流利操作符 - https://github.com/vmware/kube-fluentd-operator
  • 最佳答案

    我检查了图表,看来您只需要添加 prometheusEnabled: true给您的config.yaml :

    ---
    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
    

    关于amazon-web-services - 如何使用 helm chart 在 VMWare 的 Kubernetes FluentD Operator 中将 prometheus.enabled 标志设置为 true?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63618451/

    相关文章:

    monitoring - 高标签基数但低指标/标签计数和不频繁采样是否是普罗米修斯可接受的用例?

    prometheus - 普罗米修斯中的增加()有时会将值加倍 : how to avoid?

    amazon-web-services - VPC 澄清中的 AWS Lambda ENI 限制

    Kubernetes 的 http liveness 探针在 pod 负载过重时失败

    docker - 在单台计算机上以独立模式运行 Spark : is it worth splitting it in masters and workers through docker containers (or another way)?

    kubernetes - k8 中的服务级别指标 Prometheus

    amazon-web-services - AWS CDK 中堆栈和构造之间的区别

    amazon-web-services - 当 AWS::Cognito::IdentityPoolRoleAttachment 资源具有 RoleMappings 属性时,AWS Cloudformation 无法创建堆栈

    amazon-web-services - 是否可以在 AWS 上部署 Nuxt SSR 应用程序?

    kubernetes - Kubernetes服务端点健康检查