夜莺-Nightingale
          
            
                
                
                夜莺V8
                  
    
      前言必读
    
     
  
  
                      
                        
  
    
      安装
    
     
  
  
                      
                        
  
    
      采集器
    
     
  
  
                      
                        
  
    
      快速体验
    
     
  
  
                      
                        
  
    
      监控实践
    
     
  
  
                      
                        
  
    
      功能详解
    
     
  
  
                      
                        
  
    
      说明文档
    
     
  
  
                      
                  夜莺V7
                  
                      
                        
  
  
    
      项目介绍
    
  
                      
                        
  
  
    
      功能概览
    
  
                      
                        
  
    
      
  
                      
                        
  
  
    
      API
    
  
                      
                        
  
  
    
      FAQ
    
  
                      
                  
                
    
      部署升级
    
     
  
  
                      
                        
  
    
      数据接入
    
     
  
  
                      
                        
  
    
      告警管理
    
     
  
  
                      
                        
  
    
      数据查看
    
     
  
  
                      
                        
  
    
      功能介绍
    
     
  
  
    
      告警管理
    
     
  
  
    
      
  
    
      通知管理
    
     
  
  
    
      
  
  
    
      通知规则介绍
    
  
    
      
  
  
    
      阿里云短信
    
  
    
      
  
  
    
      Relabel 事件处理
    
  
    
      
  
  
    
      Event Drop 事件处理
    
  
    
      
  
  
    
      Event Update 事件处理
    
  
    
      
  
  
    
      Callback 事件处理
    
  
    
      
  
  
    
      Script 事件处理
    
  
    
      
  
  
    
      Label Enrich 事件处理
    
  
    
      
  
  
    
      AI Summary 事件处理
    
  
    
      
  
  
    
      模板函数
    
  
    
      
  
  
    
      
    
  
    
      
  
  
    
      
    
  
    
  
    
      
  
    
      仪表盘
    
     
  
  
    
      
  
    
      数据源
    
     
  
  
    
      
  
    
      时序指标
    
     
  
  
    
      
  
    
      日志分析
    
     
  
  
    
      
  
    
      告警自愈
    
     
  
  
    
      
  
    
      基础设施
    
     
  
  
    
      
  
    
      集成中心
    
     
  
  
    
      
  
    
      人员组织
    
     
  
  
    
      
  
    
      系统配置
    
     
  
  
    
  夜莺V6
                  
                      
                        
  
  
    
      项目介绍
    
  
                      
                        
  
  
    
      架构介绍
    
  
                      
                        
  
                
    
      快速开始
    
     
  
  
                      
                        
  
  
    
      黄埔营
    
  
                      
                        
  
    
      安装部署
    
     
  
  
                      
                        
  
  
    
      升级
    
  
                      
                        
  
    
      采集器
    
     
  
  
                      
                        
  
    
      使用手册
    
     
  
  
                      
                        
  
    
      API
    
     
  
  
                      
                        
  
    
      数据库表结构
    
     
  
  
    
      
  
  
    
      users
    
  
    
      
  
  
    
      notify_tpl
    
  
    
      
  
  
    
      board
    
  
    
      
  
  
    
      users
    
  
    
      
  
  
    
      target
    
  
    
      
  
  
    
      target
    
  
    
      
  
  
    
      user_group
    
  
    
      
  
  
    
      user_group_member
    
  
    
      
  
  
    
      task_tpl
    
  
    
      
  
  
    
      task_tpl_host
    
  
    
      
  
  
    
      task_record
    
  
    
      
  
  
    
      sso_config
    
  
    
      
  
  
    
      role
    
  
    
      
  
  
    
      role_operation
    
  
    
      
  
  
    
      recording_rule
    
  
    
      
  
  
    
      notify_tpl
    
  
    
      
  
  
    
      metric_view
    
  
    
      
  
  
    
      datasource
    
  
    
      
  
  
    
      configs
    
  
    
      
  
  
    
      chart_share
    
  
    
      
  
  
    
      busi_group
    
  
    
      
  
  
    
      busi_group_member
    
  
    
      
  
  
    
      builtin_cate
    
  
    
      
  
  
    
      builtin_cate
    
  
    
      
  
  
    
      builtin_cate
    
  
    
      
  
  
    
      builtin_cate
    
  
    
      
  
  
    
      board
    
  
    
      
  
  
    
      board_payload
    
  
    
      
  
  
    
      alerting_engines
    
  
    
      
  
  
    
      alert_subscribe
    
  
    
      
  
  
    
      alert_rule
    
  
    
      
  
  
    
      alert_mute
    
  
    
      
  
  
    
      alert_his_event
    
  
    
      
  
  
    
      alert_cur_event
    
  
    
      
  
  
    
      alert_aggr_view
    
  
    
  
                      
                        
  
    
      FAQ
    
     
  
  
    
      
  
  
    
      转发数据给多个时序库
    
  
    
      
  
  
    
      机器列表数据异常
    
  
    
      
  
  
    
      数据流图
    
  
    
      
  
  
    
      监控数据时有时无
    
  
    
      
  
  
    
      查询原始监控数据
    
  
    
      
  
  
    
      快捷视图详解
    
  
    
      
  
  
    
      告警自愈模块使用
    
  
    
      
  
  
    
      仪表盘里只展示我的机器
    
  
    
      
  
  
    
      仪表盘里图表数据缺失
    
  
    
      
  
  
    
      设置自定义告警通知方式
    
  
    
      
  
  
    
      target_up指标的问题
    
  
    
      
  
  
    
      夜莺可以监控 x 么
    
  
    
      
  
  
    
      夜莺告警常见问题排查思路
    
  
    
      
  
  
    
      告警和恢复的判断逻辑
    
  
    
      
  
  
    
      容量规划问题
    
  
    
      
  
  
    
      connection refused
    
  
    
      
  
  
    
      登录与认证
    
  
    
      
  
  
    
      数据采集器Categraf
    
  
    
      
  
  
    
      日志写到`/var/log/messages`
    
  
    
      
  
  
    
      告警规则&告警模板如何引用变量
    
  
    
      
  
  
    
      采集到的数据是字符串怎么处理
    
  
    
      
  
  
    
      管理员密码忘记了
    
  
    
      
  
  
    
      制作大盘如何添加图片
    
  
    
      
  
  
    
      添加loki数据源报错
    
  
    
      
  
  
    
      v6小版本升级有什么 sql 要执行吗
    
  
    
      
  
  
    
      机器列表有展示,但采集数据查询不到
    
  
    
      
  
  
    
      n9e 启动异常报错
    
  
    
      
  
  
    
      n9e集群部署配置修改
    
  
    
      
  
  
    
      推送 Promethus 报错 OOO
    
  
    
      
  
  
    
      机器列表怎么忽略云资源
    
  
    
      
  
  
    
      告警规则仅在本业务组生效失败
    
  
    
      
  
  
    
      categraf 启动 oracle 插件报错
    
  
    
      
  
  
    
      告警自愈不生效
    
  
    
      
  
  
    
      n9e查询时序库EOF报错
    
  
    
      
  
  
    
      手动编译项目报错
    
  
    
      
  
  
    
      promQL 使用函数标签信息丢失
    
  
    
      
  
  
    
      内存使用率+可用率不等于100
    
  
    
      
  
  
    
      夜莺仪表盘有哪些内置变量
    
  
    
      
  
  
    
      categraf配置文件支持热加载吗
    
  
    
      
  
  
    
      导入 Grafana 仪表盘无效数据源
    
  
    
      
  
  
    
      如何查看报错消息
    
  
    
  
                      
                  采集器-Categraf
          
          
          
          
        
          
          
          
        
          
          
          
        
          
          
          
        
          
          
          
        
          
          
          
        
          
          
          
        
          
          插件配置
            
                
                  
  
  
    
      插件综述
    
  
                
                  
  
  
    
      基础指标采集插件
    
  
                
                  
  
  
    
      netstat采集插件
    
  
                
                  
  
  
    
      netstat_filter采集插件
    
  
                
                  
  
  
    
      procstat采集插件
    
  
                
                  
  
  
    
      http_response
    
  
                
                  
  
  
    
      mysql插件
    
  
                
                  
  
  
    
      redis插件
    
  
                
                  
  
  
    
      snmp插件
    
  
                
                  
  
  
    
      ipmi采集插件
    
  
                
                  
  
  
    
      dns_query插件
    
  
                
                  
  
  
    
      dcgm插件
    
  
                
                  
  
  
    
      nvidia_smi插件
    
  
                
                  
  
  
    
      cadvisor采集插件
    
  
                
                  
  
  
    
      sshd采集插件
    
  
                
                  
  
  
    
      systemd采集插件
    
  
                
                  
  
  
    
      smart采集插件
    
  
                
                  
  
  
    
      postgresql插件
    
  
                
                  
  
  
    
      mongodb插件
    
  
                
                  
  
  
    
      elasticsearch采集插件
    
  
                
                  
  
  
    
      exec采集插件
    
  
                
                  
  
  
    
      emqx采集插件
    
  
                
                  
  
  
    
      阿里云指标采集插件
    
  
                
                  
  
  
    
      Zabbix 指标转换插件
    
  
                
                  
  
  
    
      cloudwatch指标采集插件
    
  
                
                  
  
  
    
      google cloud指标采集插件
    
  
                
                  
  
  
    
      mtail插件
    
  
                
                  
  
  
    
      prometheus采集插件
    
  
                
                  
  
  
    
      页面配置采集插件
    
  
                
            
          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
    
     
  
  
                  
                    
  
  
    
      参考资料
    
  
                  
              netstat采集插件
netstat采集插件
设置disable_summary_stats=false时,会采集/proc/net/sockstat 生成以下指标(内核版本不同,指标可能会有差异)
netstat_sockets_used # 所有类型的socket数量
netstat_tcp_inuse # tcp 正在使用的tcp数量
netstat_tcp_orphan # tcp 孤儿连接数量(已经不占有fd)等待销毁
netstat_tcp_tw # tcp timewait 连接数量
netstat_tcp_alloc # tcp 各个状态的连接总数量
netstat_tcp_mem # tcp 连接已分配的内存(内存页)
netstat_udp_inuse # 正在使用的udp数量
netstat_udp_mem # udp 已经分配的内存(内存页)
netstat_udplite_inuse # 正在使用的udp lite数量
netstat_raw_inuse #  正在使用的raw socket数量 
netstat_frag_inuse # ip fragement数量
netstat_frag_memory # ip fragement 已经分配的内存(byte)
设置disable_connection_stats=false时,会采集/proc/net/{tcp,tcp6,udp,udp6,unix...} 生成以下指标(内核版本不同,指标可能会有差异)
连接数多的场景下,这类指标计算很消耗cpu, 建议不要开启 /proc/下获取所有pid ,然后 读取/proc/{pid}/fd 所有socket类型的inode 然后读取/proc/net/{tcp,tcp6,udp,udp6,unix…} 每个inode都要计算一遍
netstat_udp_socket
netstat_tcp_established
netstat_tcp_syn_sent
netstat_tcp_fin_wait1
netstat_tcp_time_wait
netstat_tcp_last_ack
netstat_tcp_none
netstat_tcp_syn_recv
netstat_tcp_fin_wait2
netstat_tcp_close
netstat_tcp_close_wait
netstat_tcp_listen
netstat_tcp_closing
设置tcp_ext=true 从 /proc/net/netstat中采集TcpExt以下指标(内核版本不同,指标可能会有差异)
netstat_tcpext_TCPPureAcks
netstat_tcpext_TCPRenoRecoveryFail
netstat_tcpext_TCPRetransFail
netstat_tcpext_TCPHystartTrainDetect
netstat_tcpext_ListenDrops
netstat_tcpext_TCPHPAcks
netstat_tcpext_TCPFullUndo
netstat_tcpext_TCPOFOQueue
netstat_tcpext_TCPFastOpenPassive
netstat_tcpext_TCPFastOpenBlackhole
netstat_tcpext_DelayedACKLocked
netstat_tcpext_TCPACKSkippedSynRecv
netstat_tcpext_TCPOFOMerge
netstat_tcpext_TCPHPHits
netstat_tcpext_TCPLostRetransmit
netstat_tcpext_TCPFastOpenListenOverflow
netstat_tcpext_TCPFastOpenCookieReqd
netstat_tcpext_TCPWantZeroWindowAdv
netstat_tcpext_TCPSynRetrans
netstat_tcpext_TCPACKSkippedSeq
netstat_tcpext_SyncookiesFailed
netstat_tcpext_PAWSActive
netstat_tcpext_TCPSackRecovery
netstat_tcpext_TCPLossProbeRecovery
netstat_tcpext_TCPDSACKRecv
netstat_tcpext_TCPFromZeroWindowAdv
netstat_tcpext_OfoPruned
netstat_tcpext_ListenOverflows
netstat_tcpext_TCPDSACKUndo
netstat_tcpext_IPReversePathFilter
netstat_tcpext_SyncookiesSent
netstat_tcpext_TCPSackRecoveryFail
netstat_tcpext_TCPRcvCollapsed
netstat_tcpext_TCPChallengeACK
netstat_tcpext_TCPFastRetrans
netstat_tcpext_TCPRenoReorder
netstat_tcpext_TCPLossFailures
netstat_tcpext_TCPTimeouts
netstat_tcpext_TCPOFODrop
netstat_tcpext_BusyPollRxPackets
netstat_tcpext_TCPToZeroWindowAdv
netstat_tcpext_PAWSEstab
netstat_tcpext_ArpFilter
netstat_tcpext_TWRecycled
netstat_tcpext_DelayedACKs
netstat_tcpext_TCPKeepAlive
netstat_tcpext_TCPWqueueTooBig
netstat_tcpext_RcvPruned
netstat_tcpext_TCPLossProbes
netstat_tcpext_TCPRcvCoalesce
netstat_tcpext_TCPFastOpenActive
netstat_tcpext_TCPPartialUndo
netstat_tcpext_PruneCalled
netstat_tcpext_TCPTSReorder
netstat_tcpext_TCPDSACKOldSent
netstat_tcpext_TCPDSACKOfoSent
netstat_tcpext_TCPReqQFullDrop
netstat_tcpext_TCPHystartDelayCwnd
netstat_tcpext_TCPACKSkippedPAWS
netstat_tcpext_EmbryonicRsts
netstat_tcpext_TCPACKSkippedChallenge
netstat_tcpext_TCPMTUPFail
netstat_tcpext_TCPACKSkippedTimeWait
netstat_tcpext_TCPSACKReneging
netstat_tcpext_TCPSackFailures
netstat_tcpext_TCPSlowStartRetrans
netstat_tcpext_TCPTimeWaitOverflow
netstat_tcpext_TCPHystartTrainCwnd
netstat_tcpext_TCPMTUPSuccess
netstat_tcpext_SyncookiesRecv
netstat_tcpext_DelayedACKLost
netstat_tcpext_TCPSACKReorder
netstat_tcpext_TCPLossUndo
netstat_tcpext_TCPDeferAcceptDrop
netstat_tcpext_TCPAutoCorking
netstat_tcpext_LockDroppedIcmps
netstat_tcpext_TCPRenoFailures
netstat_tcpext_TCPDSACKOfoRecv
netstat_tcpext_TCPAbortOnData
netstat_tcpext_TCPAbortOnClose
netstat_tcpext_TCPReqQFullDoCookies
netstat_tcpext_TCPFastOpenActiveFail
netstat_tcpext_OutOfWindowIcmps
netstat_tcpext_TCPFastOpenPassiveFail
netstat_tcpext_TCPSpuriousRtxHostQueues
netstat_tcpext_TCPOrigDataSent
netstat_tcpext_TCPHystartDelayDetect
netstat_tcpext_TCPWinProbe
netstat_tcpext_TCPRenoRecovery
netstat_tcpext_TWKilled
netstat_tcpext_TCPSYNChallenge
netstat_tcpext_TCPACKSkippedFinWait2
netstat_tcpext_TW
设置ip_ext=true 从 /proc/net/netstat中采集IpExt,生成以下指标(内核版本不同,指标可能会有差异)
netstat_ipext_InNoRoutes
netstat_ipext_OutMcastOctets
netstat_ipext_InBcastOctets
netstat_ipext_InECT1Pkts
netstat_ipext_InMcastOctets
netstat_ipext_InNoECTPkts
netstat_ipext_InMcastPkts
netstat_ipext_OutMcastPkts
netstat_ipext_InBcastPkts
netstat_ipext_OutBcastPkts
netstat_ipext_InOctets
netstat_ipext_OutBcastOctets
netstat_ipext_InECT0Pkts
netstat_ipext_InCEPkts
netstat_ipext_ReasmOverlaps
netstat_ipext_InTruncatedPkts
netstat_ipext_OutOctets
netstat_ipext_InCsumErrors
 
			 
					