Promtail reloads discovery files when they are updated. The below excerpt of Promtail's configuration show a file_sd_configs that is used to scrape `apt` and `dpkg`'s logs. ```yaml scrape_configs: - job_name: apt-dpkg file_sd_configs: - files: - /etc/promtail/dpkg-apt.yaml ...
kubernetes_sd_configskubernetes_sd_configspromtail 一、为什么要使用Prometheus服务发现之前我们讲过通过配置prometheus-operator的CRD ServiceMonitor来达到K8S集群相关组件和微服务的监控的目的,可以在ServiceMonitor的配置文件中以手动方式通过match lable和想要监控的Service进行匹配(这里相当于是手动进行服务注册和服务发现的作...