Skip to content

prometheus新增自定义规则失败 #2299

@luckyboysmith

Description

@luckyboysmith

What happened:
希望在tke安装的prometheus中新增自定义规则,
但是 编辑configmap prometheus-k8s-rulefiles-0后,发现新增的内容并未保存,
通过docker exec命令进入prometheus pod,并在/etc/prometheus/rules/目录新增 myrule.yaml后,
通过curl方式 调用 prometheus的 /reload发现不生效,
希望得到帮助
What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • TKE version:1.7
  • Global or business cluster:1.19.7
  • Kubernetes version (use kubectl version):
  • Install addons:
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions