kubernetes - 通过 Prometheus Server 将自定义指标推送到 CloudWatch
问题描述
我正在研究 CloudWatch 代理,包括 Prometheus。我正在阅读以下教程 https://docs.amazonaws.cn/en_us/AmazonCloudWatch/latest/monitoring/ContainerInsights-Prometheus-Setup-configure.html#ContainerInsights-Prometheus-Setup-new-exporters。我在 prometheus-cwagentconfig 部分添加了一个 metric_declaration,如教程中所述。
"metric_declaration": [
{
"source_labels":[ "Service", "Namespace"],
"label_matcher":"(.*node-exporter.*|.*kube-dns.*);kube-system",
"dimensions":[
["Service", "Namespace"]
],
"metric_selectors":[
"^coredns_dns_request_type_count_total$"
]
}
]
我的问题是如何使用 curl 构建 http Prometheous GW 请求以将指标传递给 cloudwatch?
解决方案
推荐阅读
- javascript - 浏览器未在 OPTIONS 调用中发送“授权”标头
- python - 格式化 y 轴刻度文本图
- grails - 如何将angular5中的输入值发送到grails3?
- php - Flutter 图片上传问题
- c - gcc objdump 汇编调试
- magento2 - 如何在 magento 2 中更改语言后端
- sql-server - SSRS 中的仪表板,每个图表都有过滤器
- javascript - 如何将盒子连续更改为随机颜色
- javascript - addEventListener 未在旧 Chrome 版本中正确处理键
- javascript - element.getText().then(function) 没有被执行