grafana

PromQL query to find the duration of each firing alert

给你一囗甜甜゛ 提交于 2020-12-15 06:09:34
问题 I am creating a Grafana dashboard to see the total alert count for each firing alert and the duration ( means it should capture how long alerts have been firing state). PromQL query used to capture the total alert count is as follows, count by (alertname,customerName) (changes(customer_ALERTS[24h])) Idea is to add two more column in the Grafana table panel having the alert count and the duration Now i need to get the query to capture the duration for each alerts. Can somebody please share

PromQL query to find the duration of each firing alert

佐手、 提交于 2020-12-15 06:09:27
问题 I am creating a Grafana dashboard to see the total alert count for each firing alert and the duration ( means it should capture how long alerts have been firing state). PromQL query used to capture the total alert count is as follows, count by (alertname,customerName) (changes(customer_ALERTS[24h])) Idea is to add two more column in the Grafana table panel having the alert count and the duration Now i need to get the query to capture the duration for each alerts. Can somebody please share

K6 InfluxDB + Grafana Docker : How to preload a dashboard

醉酒当歌 提交于 2020-12-14 09:37:53
问题 I am using K6 for Load Testing. I have cloned the K6, Grafana, InfluxDB docker-compose set up from here: https://github.com/loadimpact/k6 Each time I start Grafana, I have to manually import the dashboard I want to use ('Import' - ID2587 - Load). I am new to Docker (and Grafana!)....is there anyway to have this dashboard preloaded in the container so I don't have to manually add it each time? 回答1: mount your dashboard and datasources into grafana container when running docker-compose up -d

K6 InfluxDB + Grafana Docker : How to preload a dashboard

送分小仙女□ 提交于 2020-12-14 09:32:42
问题 I am using K6 for Load Testing. I have cloned the K6, Grafana, InfluxDB docker-compose set up from here: https://github.com/loadimpact/k6 Each time I start Grafana, I have to manually import the dashboard I want to use ('Import' - ID2587 - Load). I am new to Docker (and Grafana!)....is there anyway to have this dashboard preloaded in the container so I don't have to manually add it each time? 回答1: mount your dashboard and datasources into grafana container when running docker-compose up -d

Prometheus queries to get CPU and Memory usage in kubernetes pods

♀尐吖头ヾ 提交于 2020-12-12 04:03:05
问题 I need to get CPU and Memory usage in kubernetes pods with prometheus queries. Can someone plz help? 回答1: Do you use prometheus-operator to collect data from kubernetes? If yes, you can use something like this: sum(container_memory_usage_bytes) sum(container_cpu_usage_seconds_total) Just for example. 回答2: For CPU percentage avg((sum (rate (container_cpu_usage_seconds_total {container_name!="" ,pod="<Pod name>" } [5m])) by (namespace , pod, container ) / on (container , pod , namespace) ((kube

Prometheus queries to get CPU and Memory usage in kubernetes pods

坚强是说给别人听的谎言 提交于 2020-12-12 04:02:46
问题 I need to get CPU and Memory usage in kubernetes pods with prometheus queries. Can someone plz help? 回答1: Do you use prometheus-operator to collect data from kubernetes? If yes, you can use something like this: sum(container_memory_usage_bytes) sum(container_cpu_usage_seconds_total) Just for example. 回答2: For CPU percentage avg((sum (rate (container_cpu_usage_seconds_total {container_name!="" ,pod="<Pod name>" } [5m])) by (namespace , pod, container ) / on (container , pod , namespace) ((kube

Prometheus queries to get CPU and Memory usage in kubernetes pods

六眼飞鱼酱① 提交于 2020-12-12 04:01:03
问题 I need to get CPU and Memory usage in kubernetes pods with prometheus queries. Can someone plz help? 回答1: Do you use prometheus-operator to collect data from kubernetes? If yes, you can use something like this: sum(container_memory_usage_bytes) sum(container_cpu_usage_seconds_total) Just for example. 回答2: For CPU percentage avg((sum (rate (container_cpu_usage_seconds_total {container_name!="" ,pod="<Pod name>" } [5m])) by (namespace , pod, container ) / on (container , pod , namespace) ((kube

美图全链路监控实战,成本低还能直接落地

只愿长相守 提交于 2020-12-11 11:38:15
一、摘要 本文内容分为3部分,首先简单介绍了美图的业务背景和监控体系,然后是两个美图的监控实践——基于Grafana FlowCharting插件的「监控大盘」实战和基于GrafanaImageRender+企业微信机器人的「图文告警」实战。 这两个监控实战都是非常容易落地的,基本是开箱即用,中间只涉及到非常少量的代码工作。本文除了介绍我们做相关技术选型时的一些考量,同时给出了两个实战完整的“step by step”的操作步骤,对于涉及到的少量代码工作,文中也给出了代码样例。希望这两个案例对于大家做监控大盘和富文本告警的工作可以有所参考。 二、美图监控的整体架构 1、 业务背景 在展开技术实战部分的讲解之前,我们先简单了解下美图公司的业务场景和规模。美图公司的业务主要分为 ToC 和 ToB 两类,以「消费者社区」为核心,在「影像美化」、「美妆平台」、「皮肤管理」几个垂直领域均有面向终端用户和面向企业的产品或解决方案。 美图的产品线覆盖社区、美颜、美妆、短视频、直播等领域,比较知名的C端APP有美图秀秀、美颜相机、美妆相机、美拍等。此外,美图拥有大量的海外用户,知名的产品有 BeautyPlus、AirBrush 等。围绕这些 APP 同时建设有大量的支撑服务,比如基础架构、大数据、AI开放平台、商业化生态等。 美图的产品线众多、业务形态丰富、ToC和ToB的服务并存

道旅:使用ARMS做业务监控数据清洗

你说的曾经没有我的故事 提交于 2020-12-08 16:56:02
作者:折松,阿里云解决方案架构师 深圳市道旅旅游科技股份有限公司(简称:道旅)是一家总部位于中国的全球酒店资源批发商。自2012年成立以来,道旅凭借其全球优质的直签产品和丰富的第三方产品,以及顶尖的技术实力,赢得了包括OTA、差旅管理公司、航空公司、旅行社等超过23,000家客户的信赖和支持。在资源端,道旅不仅有超过30,000+具有竞争力的直签酒店资源,并且拥有来自于 600+ 全球供应商的 70 万家酒店,资源覆盖了全球超过200个国家或地区。 道旅从未停下脚步,始终专注于为同业提供可靠的服务和有竞争力的资源,并加速在直签资源的布局,让同业伙伴的旅游生意更好做!道旅一路走过,收获喜人: • 2018年单日交易额突破1000万,获得深创投,国隆资本联合投资。 • 2019年单日交易额突破1800万,荣膺2019深圳500强企业。 • 2020年获得广东省旅行社百强第二名。 新的需求: 道旅需要构建一个全面的指标监控系统,既包括系统的业务指标:如各类业务类型的请求数变化,不同供应商信息的变化,客户请求的明细大盘,各酒店请求量的排名变化,不同城市的订单转换率分析报表等;也包括系统的运行指标:如服务器请求响应时间, 带宽使用情况;在选型上主要考虑点有: 1 . 指标监控系统的挑战主要有请求量大,集群和监控类别多。 2 .指标监控系统需要实时性,配置简单,可以让业务部门去做定义报表; 3

道旅:使用ARMS做业务监控数据清洗

萝らか妹 提交于 2020-12-08 13:56:37
深圳市道旅旅游科技股份有限公司(简称:道旅)是一家总部位于中国的全球酒店资源批发商。自2012年成立以来,道旅凭借其全球优质的直签产品和丰富的第三方产品,以及顶尖的技术实力,赢得了包括OTA、差旅管理公司、航空公司、旅行社等超过23,000家客户的信赖和支持。在资源端,道旅不仅有超过30,000+具有竞争力的直签酒店资源,并且拥有来自于 600+ 全球供应商的 70 万家酒店,资源覆盖了全球超过200个国家或地区。 道旅从未停下脚步,始终专注于为同业提供可靠的服务和有竞争力的资源,并加速在直签资源的布局,让同业伙伴的旅游生意更好做!道旅一路走过,收获喜人: • 2018年单日交易额突破1000万,获得深创投,国隆资本联合投资。 • 2019年单日交易额突破1800万,荣膺2019深圳500强企业。 • 2020年获得广东省旅行社百强第二名。 新的需求: 道旅需要构建一个全面的指标监控系统,既包括系统的业务指标:如各类业务类型的请求数变化,不同供应商信息的变化,客户请求的明细大盘,各酒店请求量的排名变化,不同城市的订单转换率分析报表等;也包括系统的运行指标:如服务器请求响应时间, 带宽使用情况;在选型上主要考虑点有: 1 . 指标监控系统的挑战主要有请求量大,集群和监控类别多。 2 .指标监控系统需要实时性,配置简单,可以让业务部门去做定义报表; 3 .指标监控系统构建简单