晚睡早起是什么原因| 声讨是什么意思| 癣是什么| 怀孕初期不能吃什么| 瓜蒌根为什么叫天花粉| 党参长什么样子| 牙龈萎缩是什么原因引起的| 中天是什么意思| 口字五行属什么| 梦字五行属什么| 1939年属什么| 床上放什么可以驱虫| 口腔黏膜挂什么科| 最大的荔枝是什么品种| 肚子长痘痘是什么原因| 肺炎吃什么消炎药| 被隐翅虫咬了涂什么药| 为什么身上痒一抓就起疙瘩| 天津市市长什么级别| 资生堂属于什么档次| 藏红花的功效是什么| 香菇炒什么好吃| 4月10号是什么星座| 总是困是什么原因| 消化酶缺乏是什么症状| 笑点低的人说明什么| 十点多是什么时辰| 总蛋白高是什么原因| 睡觉喜欢流口水是什么原因| 属羊什么命| 脸部出油多是什么原因| 隐翅虫咬了用什么药膏| 巨大的什么| 排尿少是什么原因| 为什么喝纯牛奶会拉肚子| 眼睛像什么| 滑膜炎用什么膏药好| 性格内敛是什么意思| 嗜的意思是什么| 为什么一个月来两次姨妈| 627是什么意思| 夏天水肿的原因是什么| 痱子长什么样| 落枕吃什么药| 拉肚子吃什么药最有效果| 字什么意思| 浑身乏力什么病的前兆| 吃多了拉肚子是什么原因| 抹布是什么意思| 猫怕什么声音| 男士175是什么码| 厘清是什么意思| cmn是什么意思| alp是什么意思| 妈妈的姐姐叫什么| 为什么金生水| 吃姜对身体有什么好处| 脸色发黄是什么原因| 白事的礼金叫什么| 汗蒸和桑拿有什么区别| 如履薄冰什么意思| 孕妇贫血有什么症状| 什么时候开始暑伏| DNA是什么意思啊| 大梁是什么朝代| 一什么羊| 菊花茶为什么会变绿色| 低gi是什么意思| 无性恋是什么| 黑眼袋是什么原因引起的| 路上遇到蛇是什么征兆| 30年婚姻是什么婚| 尿液检查能查出什么病| 宋江的绰号是什么| 人各有命是什么意思| 为什么拍照脸是歪的| 临幸是什么意思| 乏了是什么意思| 西瓜和什么食物相克| 早餐吃什么有营养| 2月7号什么星座| 房性早搏吃什么药| 什么大什么功| 辞海是什么书| 缺镁吃什么药| 生理需要是什么意思| 孕妇忌吃什么| 尿液发黄是什么病| 冰箱为什么不制冷了| 雨露均沾什么意思| 韭菜花炒什么好吃| 饿了么什么时候成立的| moss是什么意思| 白头发吃什么可以变黑| 贝珠是什么| 胎儿顶臀长是什么意思| cnm是什么意思| 老人经常头晕是什么原因引起的| 伤情鉴定需要什么材料| 吃完饭打嗝是什么原因| 什么体质的人戴银变黑| r车标是什么牌子| 秉承是什么意思| 白事的礼金叫什么| alt医学上是什么意思| mw是什么单位| 免疫固定电泳查什么的| 腊月初八是什么日子| 什么路最窄打一生肖| 颈椎病最怕干什么活| 知了长什么样| 宝宝dha什么时候吃最好| 静脉曲张有什么症状| 双肺散在纤维灶是什么意思| 桑榆未晚是什么意思| apm是什么意思| 梦见输钱是什么预兆| 悉心栽培什么意思| 刚产下的蚕卵是什么颜色| 攀龙附凤是什么生肖| sk是什么牌子| 八月十五什么星座| 破窗效应是什么意思| 什么样的春天| 五戒十善是什么| 早上吃什么减肥| 感情洁癖什么意思| 普洱茶什么季节喝好| 为情所困是什么意思| 宝宝消化不良吃什么| ochirly是什么品牌| 诙谐幽默是什么意思| 酒后第二天吃什么| 卦不走空是什么意思| 金不换是什么| 风湿性关节炎用什么药| 子宫增大是什么原因| 五月二十九是什么星座| 白电油对人体有什么危害| 七子饼茶是什么意思| 鼾症是什么病| 上眼皮痒是什么原因| 做梦流产了是什么意思| 卵巢囊肿吃什么药好得最快| 复方丹参片治什么病| 肉沫炒什么好吃| 昱读什么| 英短蓝猫吃什么猫粮好| 九月十五是什么星座的| 手指甲上有白点是什么原因| 早上的太阳叫什么| 啐是什么意思| 滴虫病女性有什么症状| sec是什么意思| 0是什么意思网络语言| 蜂蜜吃了有什么好处| 鱼胶是鱼的什么部位| 责成是什么意思| 一度是什么意思| 斗破苍穹什么时候出的| 肝癌是什么症状| 7月5日是什么日子| 海参几头是什么意思| 胃疼为什么后背也疼| 猫最喜欢吃什么| ofs是什么意思| 无限极是干什么的| 额头和下巴长痘痘是什么原因| 夜间睡觉流口水是什么原因| 国家为什么不承认鬼神| 叶子发黄是什么原因| 口腔溃疡吃什么好的快| n是什么| 痔疮为什么会出血| 文艺兵是干什么的| 1985年出生是什么命| 子癫是什么病| 好嘛是什么意思| 外阴长什么样| 胆摘除对身体有什么影响| 下肢动脉闭塞吃什么药| 科目二学什么| 真菌感染皮肤病用什么药最好| 为什么会抽筋| 外阴又疼又痒用什么药| 胃胀吃什么药最有效| hib疫苗是什么意思| 景色奇异的异是什么意思| 飞马是什么意思| 八珍胶囊适合什么人吃| 精尽人亡是什么意思| 高项是什么| 肝脏低回声意味着什么| 青海是什么省| 吞咽困难是什么原因造成的| 弯了是什么意思| 青提是什么| otc是什么意思| 8.11是什么星座| ovs是什么品牌| tpa是什么意思| 胃在什么位置| 什么叫肾病综合征| 腿上起水泡是什么原因| 母胎solo是什么意思| 2010年什么年| 三月是什么生肖| 重孙是什么意思| 八仙桌是什么生肖| 缺钾吃什么好| 乳房疼痛应该挂什么科| 末法时期是什么意思| rh因子阳性是什么意思| 指甲长的快是什么原因| 四月二号是什么星座| 马克笔什么牌子好| 眼睛周围长脂肪粒是什么原因| 肝岛是什么意思| 辽国是现在的什么地方| 肛门跳动是什么原因| 有什么树| ga是什么意思| 低烧是什么病的前兆| 窦性心动过缓吃什么药| 为什么爱放屁| 护士是什么专业| 什么的鸟儿| 摇呼啦圈有什么好处| 在什么情况下需要做肠镜| 自闭症是什么原因引起| 筋膜炎吃什么药好| 金多水浊什么意思| 男人身体怕冷是什么原因如何调理| 阳痿早泄是什么原因| 呕气是什么意思| 夜明珠代表什么生肖| 什么时候会怀孕| 什么情况需要割包皮| math是什么意思| 狐媚子是什么意思| 灰什么| 喝枸杞水有什么好处| 什么止痛药效果最好| 生忌是什么意思| 从来不吃窝边草是什么生肖| 冶游史是什么意思| 知了为什么叫| dep是什么意思| 跑步后脸红是什么原因| 胳膊疼是什么病的前兆| 烀是什么意思| 漠河什么时候可以看到极光| 11.18是什么星座| 12月9号是什么星座| 尿液臭味很重什么原因| 6月28日是什么日子| 螃蟹的什么部位不能吃| 前胸后背疼是什么病| 官官相护是什么意思| 拔牙后能吃什么| 肺气囊是什么病| 世界上最大的鱼是什么鱼| 发际线长痘痘是什么原因| 左边偏头痛什么原因| 百度

北京一高校食堂用墩布洗碗?原来是个误会(图)

百度 此可决为晋代纸也。

This page describes best practices for Grafana dashboards at Wikimedia. This page was previously maintained as part of Performance Team guides and SRE Observability guidelines.

High-level approach

The USE Method

This method focuses on Utilization, Saturation, and Errors (USE). This is most effective to quickly diagnose any system performance issue. To quote Brendan Gregg's guide to USE:

For every resource, check utilization, saturation, and errors.

The Host overview dashboard is example of this method applied to server-level metrics about a single host. Resources (CPU, network, etc) are placed in rows, the left column is used for the resource's utilization, while the right column displays saturation or errors, as applicable.

Recommendations:

  • Y-axis should be zero-based.
  • For most graphs, use a line without fill (Fill opacity: 0), unless the graph is stacked.

Four golden signals (4GS)

This method is described in detail in Google's SRE book and focuses on the system's user-impacting metrics. Specifically it can be used as a basis for alerting and diagnosis of ongoing problems.

This method can be seen applied to Swift, Sessionstore, and other dashboards in the "Service" Grafana folder.

Dashboard layout

Legend

Star your dashboard with a legend. For good examples, refer to the ResourceLoader, Backend Pageview Time, and MediaWiki Static dashboards.

  • Create a "Text" panel, and leave it at the very top of the dashboard without a row. Set the panel title to "Legend".
  • Describe the subject of the dashboard in one sentence (e.g. What does the service do for end-users? What interaction does it instrument?)
  • Summarise in a sentence or two the flow of the data from the instrumentation source to the Grafana screen, mentioning any meaningful transformations it goes through along the way (e.g. Statsd counter incremented during cache misses in the backend, aggregated via mtail, pool size is measured every few minutes).
  • Link to high-level docs on Wikitech about the service, and/or link to the Phabricator tracking task about launching the instrumentation/campaign.
  • Considering naming or linking the source repo or source file of the instrumentation, especially if the metrics are not built-in to the program being measured (e.g. a dedicated background process that measures something).

Dashboard settings

General settings

  • Editable: Yes.
  • Preferred timezone: UTC.
  • Preferred range: Last N days for most dashboards. Last N hours for alert dashboards.
  • Auto refresh: Provide options for 5min and 15min. If on by default, use 5min as the default interval. Avoid smaller intervals due to unnecessary load on metric database. If you need to be notified, consider using an alert instead.
  • Graph tooltip: Enable the shared crosshair.

Annotations

Manual annotations

You can create annotations within Grafana for any moment or range of time. These can then be associated with one or more tags. On each dashboard you can decide which tags you'd like to query for shared annotations. For example, most Performance-team dashboards query "mediawiki", "performance", and "operations". Which means an annotation created by anyone from any dashboard with one of these tags will be shown in the panels on that dashboard.

  • Edit the default "Annotations & Alerts" annotation.
  • Leave the default settings (Enabled: Yes, Hidden: Yes, Color: Blue / Cyan).
  • Filter by: Tags.
  • Match: "any".
  • Tags: (insert one or more globally shared tags).

MediaWiki deployments

If the service or instrumentation may be affected by MediaWiki deployments, enable one or both of the following annotations:

All MediaWiki deployments:

  • Name: MW deploy. Data source: graphite.
  • Enabled: No. Hidden: No. Color: Orange.
  • Query: exclude(aliasByNode(deploy.*.count,-2),"all")

Only full branch promotions part of the Train:

  • Name: Train deploy. Data source: graphite.
  • Enabled: Yes (this is the default state for the dashboard). Hidden: No (this means the control is shown and you can enable it ad-hoc when you need it).
  • Color: Orange.
  • Query: exclude(aliasByNode(deploy.sync-wikiversions.count,-2),"all")

Graph panels

Keep your graph focused

When creating a graph, keep in mind what question you want the graph to answer. If possible, focus on a single metric only.

Ideally no more than 4 lines in a single graph. More than 3 metrics may a indicate you are trying to answer too many questions at once. This may cause it to be unable to accurately answer any of the questions involved, for example due to axes having to span a wide range of values, or due to it being difficult to correlate which of the many colors and lines belong to which labels.

One case where you do want to consider many metrics in one graph, is when wanting to understand the relationship between quantities and their distribution. See #Graph with many metrics below.

Draw mode

When plotting metrics that represent a quantity per interval, use a bar chart (e.g. rate counter, CPU usage percentage, bytes gauge for memory or disk).

For timing metrics, use a line chart.

Metrics:

  • Remember to use .rate, when querying Statsd counters from Graphite. Never use count or sum. (Why: Graphite#Extended properties.)
  • Preferred scale for counters is per second, and otherwise per minute.
  • For timing metrics, prefer plotting the max (Statsd: upper). Otherwise, consider p99 or p75. Avoid lower percentiles, medians, or mean averages. (Why: Measuring load times.)
  • Prefer minimal or no aggregations in queries. If aggregation is applied, be sure to clearly indicate this in the legend. You can use the alias function to describe how the value is produced. For example, frontend.navtiming2.responseStart.mobile.p75 | movingAverage (24h) | alias("responseStart.mobile.p75 | movingAverage (24h)"). Notice how the movingAverage is specified both as actual query function and as text for the alias function.

Axes:

  • Always include a Left Y-axis on graph panels.
  • Unit: Set this correctly for timing metrics and percentages. For counters, we typically use the "short" notation.
  • Label: Use this to document the scale of counting metrics (e.g. "rate per minute"). The label is usually left blank for timing metrics.
  • Min/Max: Usually left to auto. For percentage graphs that can't exceed 100%, do set a max of 100% to avoid the automatic margin expansion to 120%.

Display:

  • Draw Mode: Bars or Lines.
  • Line width: 1. Line fill: 1.
  • Tooltip: All series. If the graph contains more than a dozen metrics, use Single instead.
  • Null value: null. (Setting this to Continuous or Zero almost always causes issues, eventually.)

Graph with many metrics

When plotting more than a dozen metrics with the intent to understand distribution, it is recommended to create a stacked bar chart (not a line graph). Like so:

  • Display: Set Drawing mode to Bars, and enable Stacking mode. Ensure the hover value is stacked "individually".
  • Legend: Hide the legend (its too crowded). Alternatively, show as a scrollable table to the right.

Alert rules

  • Evaluate every: 15 min.
  • Query condition: Range for last 15min or 1h, until now-5min.
  • If no data or all nulls: Alerting. (This helps detect when the underlying service may be down or broken. We used to ignore this due to a bug in Graphite, but as of January 2019 we're trying it again.)
  • If error or timeout: Keep Last State. (Graphite often times out; when using Prometheus consider Alerting on errors.)

See also

舌炎吃什么药 小孩几天不大便是什么原因怎么办 头晕想吐是什么原因 左胳膊发麻是什么原因 什么是黑茶
一个口一个麦念什么 睾丸大是什么原因 医生属于什么编制 同房是什么意思 4级残疾证有什么优惠政策
杨颖是什么脸型 酝酿是什么意思 行为艺术是什么意思 鸽子拉水便是什么原因 得过且过是什么意思
宫颈炎和阴道炎有什么区别 95年的属什么 自媒体是什么 黄芪搭配什么不上火 什么样的人做什么样的事
胃不舒服吃什么水果好hcv8jop5ns6r.cn 隐翅虫是什么hcv8jop4ns0r.cn 唠嗑是什么意思hcv8jop7ns5r.cn 百鸟归巢什么意思hcv8jop1ns2r.cn 鹅喜欢吃什么食物hcv7jop9ns1r.cn
怀孕了吃什么药可以打掉hcv8jop3ns9r.cn ut是什么意思hcv8jop7ns3r.cn 每天拉肚子是什么原因引起的hcv8jop1ns8r.cn 蜜蜂蜇人后为什么会死去hcv8jop7ns7r.cn maxco是什么牌子zhongyiyatai.com
口腔医学和口腔医学技术有什么区别hcv8jop0ns6r.cn 腮腺炎的症状是什么hcv7jop6ns1r.cn cheese什么意思qingzhougame.com 普洱在云南什么位置ff14chat.com 柠檬酸是什么shenchushe.com
新生儿黄疸吃什么药hcv9jop4ns8r.cn 全身酸痛失眠什么原因hcv9jop6ns6r.cn 小肠是干什么的imcecn.com 激情什么意思hcv9jop5ns4r.cn 胚根发育成什么hcv8jop8ns0r.cn
百度