什么是警报规则以通知有关docker(容器运行时)重启的信息?

时间:2019-06-18 10:47:56

标签: prometheus prometheus-alertmanager prometheus-operator prometheus-node-exporter

我想设置P8s警报,该警报将在每次docker在任何节点上重新启动时触发

我对kubelet有类似的设置-

// Add CSP meta tag that will block cross-origin AJAX
var cspMetaTag = document.createElement('meta');
cspMetaTag.setAttribute('http-equiv', 'Content-Security-Policy');
cspMetaTag.setAttribute('content', "connect-src 'self';");
document.querySelector('head').appendChild(cspMetaTag);

fetch('http://router.project-osrm.org/trip/v1/driving/-43.20940000000002,-22.911;-48.84870000000001,-26.3045?overview=false')
    .then(response => {
        return response.json()
    })
    .then(data => {
        // Work with JSON data here
        console.log(data)
    })
    .catch(err => {
        // Do something for an error here
        console.log(err.toString());
    });

是否有类似于Docker重新启动的警报?

0 个答案:

没有答案