Render Custom Content Overlay

POST {{baseUrl}}/services/:serviceID/overlays/custom-content/render

Request Body

{"overlay_template_type"=>"go", "template"=>"[{{.labels.severity}}] {{.labels.alertname}}{{if .annotations.summary}} {{.annotations.summary}}{{end}}", "payload"=>"{\"annotations\":{\"message\":\"64% throttling of CPU in namespace kube-system for container autoscaler in pod calico-typha-horizontal-autoscaler-5ff7f558cc-qlm2t.\",\"runbook_url\":\"https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#alert-name-cputhrottlinghigh\"},\"endsAt\":\"0001-01-01T00:00:00Z\",\"generatorURL\":\"http://monitoring-prometheus-oper-prometheus.monitoring:9090/graph?g0.expr=100+%2A+sum+by%28container_name%2C+pod_name%2C+namespace%29+%28increase%28container_cpu_cfs_throttled_periods_total%7Bcontainer_name%21%3D%22%22%7D%5B5m%5D%29%29+%2F+sum+by%28container_name%2C+pod_name%2C+namespace%29+%28increase%28container_cpu_cfs_periods_total%5B5m%5D%29%29+%3E+25&g0.tab=1\",\"labels\":{\"alertname\":\"CPUThrottlingHigh\",\"container_name\":\"autoscaler\",\"namespace\":\"kube-system\",\"pod_name\":\"calico-typha-horizontal-autoscaler-5ff7f558cc-qlm2t\",\"prometheus\":\"monitoring/monitoring-prometheus-oper-prometheus\",\"severity\":\"warning\"},\"startsAt\":\"2019-08-26T21:04:11.918918491Z\",\"status\":\"firing\"}"}

RESPONSES

status: OK

{"data":"Alert Source: prometheus Deplyment Statusfailed for Example Service"}