grafana

Possible to use IF in a query?

拈花ヽ惹草 提交于 2021-02-11 12:47:14
问题 I'm using Grafana to plot data from a MySQL datasource. Is it possible to, in a panel's query editor, use an IF ... THEN ... type statement. I would like to create a variable that I could put in the IF. I want the variable to be a condition, not necessarily to be used directly in the query. For example: //IN THE DATA SOURCE: CREATE TABLE Example (Id INT, ANIMALS VARCHAR(15)); INSERT INTO Example VALUES (1,'Dog'), (2,'Fish'), (3,'Cat'), (4,'Lizard') For a variable Test with values "Mammal',

Spring Webflux + Grafana : NettyServerCustomizer "This query results in more than 1000000 samples.Try applying more filters or reduce time range.”

纵然是瞬间 提交于 2021-02-11 12:29:29
问题 Small question regarding some metrics exposed in a Spring Webflux 2.4.2 application and the use in Grafana. In my Spring Webflux application, I have the following bean: @Bean public NettyServerCustomizer nettyServerCustomizer() { return httpServer -> httpServer.metrics(true, () -> new MicrometerChannelMetricsRecorder("myservice", "myservice")); } And this bean is doing its job great I would say. It is generating those metrics, among other metrics. m__myservice_data_sent_bytes_sum{remote

Spring Webflux + Grafana : NettyServerCustomizer "This query results in more than 1000000 samples.Try applying more filters or reduce time range.”

谁都会走 提交于 2021-02-11 12:27:16
问题 Small question regarding some metrics exposed in a Spring Webflux 2.4.2 application and the use in Grafana. In my Spring Webflux application, I have the following bean: @Bean public NettyServerCustomizer nettyServerCustomizer() { return httpServer -> httpServer.metrics(true, () -> new MicrometerChannelMetricsRecorder("myservice", "myservice")); } And this bean is doing its job great I would say. It is generating those metrics, among other metrics. m__myservice_data_sent_bytes_sum{remote

Service Mesh对比:Istio与Linkerd

纵饮孤独 提交于 2021-02-11 05:39:28
根据CNCF的最新年度调查,很多组织对Service Mesh表现出很高的兴趣,并且有一部分已经在生产环境中使用它们。你可能不知道Linkerd是市场上第一个Service Mesh,但是Istio使Service Mesh更受欢迎。这两个项目都是最前沿的项目,而且竞争非常激烈,因此很难选择一个项目。 在本篇文章中,我们将和你一起了解Istio和Linkerd架构,组件,并比较它们的产品以帮助你做出明智的决定。 Service Mesh简介 在过去的几年中,微服务架构已成为软件设计中流行的样式。在这种架构中,我们将应用程序分解为可独立部署的服务。这些服务通常是轻量级的,多语言的,并且通常由各种职能团队进行开发部署。 当某些服务数量增加,难以管理且越来越复杂时,微服务架构将一直有效。但这也在管理安全性,网络流量控制和可观察性等各个方面带来了挑战。 Service Mesh可以很好地帮助应对这些挑战。 Service Mesh 用于描述组成应用程序的微服务及其之间的交互。随着服务数量的增加和复杂性的增加,扩展和管理变得越来越困难。Service Mesh可以为微服务架构提供服务发现,负载均衡,故障恢复,指标和监视。 Service Mesh 通常还能够满足更复杂的需求,例如A/B测试,金丝雀发布,速率限制,访问控制和端到端身份验证。 Service Mesh

Grafana email does not have the right url when root_url is set to '%(protocol)s://%(domain)s:%(http_port)s/grafana'

橙三吉。 提交于 2021-02-11 04:21:37
问题 I am setting up Grafana Smtp for email invitations. I am using grafana helm chart and my configuration looks like this - grafana.ini: smtp: enabled: true host: smtp.sendemail.com:587 user: 'someuser' password: 'somepassword' from_address: join-grafana@somewhere.com from_name: Join Us At Grafana server: root_url: '%(protocol)s://%(domain)s:%(http_port)s/grafana' serve_from_sub_path: true When I send email invitations, email has the link to http://localhost:3000/grafana/... not the domain name

centos 6.8 安装percona pmm(监控神器)

馋奶兔 提交于 2021-02-10 17:55:35
centos 6.8 安装percona pmm(监控神器) sql1101 关注 0人评论 15005人阅读 2018-12-07 13:47:59 背景: 完善的监控对系统的稳定性,运维,调优,故障定位都起着非常重要的作用,监控在整个运维体系中有着举着轻重的作用,所以有一个完善的监控平台非常重要,下面就要介绍一个percona的Pmm监控平台,非常强大,强大非常 一,安装pmm server yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum install docker-io 1,查看docker 版本: 2,启动docker service docker start 3,创建Pmm 容器 docker create \ -v /opt/prometheus/data \ -v /opt/consul-data \ -v /var/lib/mysql \ -v /var/lib/grafana \ --name pmm-data \ percona/pmm-server:1.1.1 /bin/true 4,运行这个容器 docker run -d \ -p 80:80 \ --volumes-from pmm-data \ --name pmm

Spring Cloud Data Flow Grafana Prometheus not showing stream data

江枫思渺然 提交于 2021-02-08 15:12:38
问题 I launch Spring cloud data flow with docker-compose base on this website. https://dataflow.spring.io/docs/installation/local/docker/ I created 3 apps, Source, Processor & Sink. I ran export STREAM_APPS_URI=https://dataflow.spring.io/Einstein-BUILD-SNAPSHOT-stream-applications-kafka-maven When I run docker-compose -f ./docker-compose.yml -f ./docker-compose-prometheus.yml up, all my containers start up as specified in the docker-compose.yml and docker-compose-prometheus.yml. I proceed to

Spring Cloud Data Flow Grafana Prometheus not showing stream data

情到浓时终转凉″ 提交于 2021-02-08 15:12:06
问题 I launch Spring cloud data flow with docker-compose base on this website. https://dataflow.spring.io/docs/installation/local/docker/ I created 3 apps, Source, Processor & Sink. I ran export STREAM_APPS_URI=https://dataflow.spring.io/Einstein-BUILD-SNAPSHOT-stream-applications-kafka-maven When I run docker-compose -f ./docker-compose.yml -f ./docker-compose-prometheus.yml up, all my containers start up as specified in the docker-compose.yml and docker-compose-prometheus.yml. I proceed to

Grafana自定义alert的实现过程

不问归期 提交于 2021-02-08 12:27:00
前言 grafana自带的alert功能是有限的,比如只能对某个query 配置alert,而不能对具体分类,当然我们也可以通过代码来实现定制化的alert 因要定时监控grafana的数据变化情况,所以本篇文章使用 easyswoole的定时器 来做讲解。 生成key key为调用grafana http api 所需的验证信息 分析要请求的api和传递的参数 当然你可以去grafana官方文档去翻一番http api 章节 Install easyswoole的http-client组件 easyswoole\http-client composer require easyswoole\http - client easyswoole 定时器 定时器 代码实现 <?php namespace EasySwoole \ EasySwoole ; use EasySwoole \ Component \ Timer ; use EasySwoole \ EasySwoole \ Swoole \ EventRegister ; use EasySwoole \ EasySwoole \ AbstractInterface \ Event ; use EasySwoole \ HttpClient \ HttpClient ; class EasySwooleEvent

Grafana worldmap panel with Influxdb doesn't show points

 ̄綄美尐妖づ 提交于 2021-02-08 02:04:44
问题 I installed Worldmap Panel for Grafana but I cannot display points on Worldmap Panel. I looked at Grafana worldmap: table datasource and other links but didn't find answer. I tried to use countries.json : Added screenshot I don't have reputation 10 so I cannot add more than 2 links. I tried also create table : points,key=AL,name=Alabama,latitude=32.7990 longitude=-86.8073 and in Worldmap selected for Location Data : table , for Table Label Field : points but still cannot see points. Could you