夜莺-Nightingale
采集器-Categraf
夜莺V6
项目介绍
架构介绍
快速开始
黄埔营
安装部署
升级
采集器
使用手册
API
数据库表结构
alert_aggr_view
alert_cur_event
alert_his_event
alert_mute
alert_rule
alert_subscribe
alerting_engines
board
board_payload
builtin_cate
busi_group
busi_group_member
chart_share
configs
datasource
metric_view
notify_tpl
recording_rule
role
role_operation
sso_config
target
task_record
task_tpl
task_tpl_host
user_group
user_group_member
users
FAQ
夜莺V5
夜莺专业版
企业版-Flashcat
智能告警插件
开源生态
Telegraf
Prometheus
版权声明
第1章:天降奇兵
第2章:探索PromQL
开篇
理解时间序列
Metrics类型
初识PromQL
PromQL操作符
PromQL聚合操作
PromQL内置函数
在HTTP API中使用PromQL
最佳实践:4个黄金指标和USE方法
小结
第3章:Prometheus告警处理
开篇
Prometheus告警简介
自定义Prometheus告警规则
部署Alertmanager
Alertmanager配置概述
基于标签的告警处理路由
使用Receiver接收告警信息
告警模板详解
屏蔽告警通知
使用Recoding Rules优化性能
小结
第4章:Exporter详解
第5章:数据与可视化
第6章:集群与高可用
第7章:Prometheus服务发现
第8章:监控Kubernetes
开篇
初识Kubernetes
在Kubernetes下部署Prometheus
Kubernetes下的服务发现
使用Prometheus监控Kubernetes集群
基于Prometheus的弹性伸缩
小结
第9章:Prometheus Operator
参考资料
google cloud指标采集插件
请使用 v0.3.10 及以上版本的categraf
授权
需要至少 monitoring.read
权限
```toml
https://www.googleapis.com/auth/monitoring.read
配置
#采集周期,建议 >= 1分钟
interval=60
[[instances]]
#配置 project_id
project_id="your-project-id"
#配置认证的key文件
credentials_file="/path/to/your/key.json"
#或者配置认证的JSON
credentials_json="xxx"
# 指标的end time = now - delay
#delay="2m"
# 指标的start time = now - deley - period
#period="1m"
# filter,filter 列表见:https://cloud.google.com/monitoring/api/metrics_gcp
#filter="metric.type=\"compute.googleapis.com/instance/cpu/utilization\" AND resource.labels.zone=\"asia-northeast1-a\""
# 请求超时时间
#timeout="5s"
# 指标列表的缓存时长 ,filter为空时 启用
#cache_ttl="1h"
# 给gce的instance_name 取个别名,放到label中
#gce_host_tag="xxx"
# 每次最多有多少请求同时发起
# request_inflight 取值(0,100]
#request_inflight=30
# 想配置更大的值 ,前提是你知道你在做什么
force_request_inflight= 200
注: 授权配置当前支持credentials_file
和 credentials_json
两种方式
credentials_file
在使用本地配置时使用credentials_json
支持远程分发配置,也支持本地配置