Skip to content

有没有可以热加载配置的api #326

@Leif160519

Description

@Leif160519

如题,类似alertmanger,prometheus或者blackbox-exporter的那种可以热加载配置的

curl -X POST http://alertmanager:9093/-/reload
curl -X POST http://prometheus:9090/-/reload
curl -X POST http://blackbox-exporter:9115/-/reload

主要是方便在k8s中部署,结合configmap-reload这个镜像,来实现配置的自动更新,无需使用kill -HUP $MAINPID

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions