grafana

How to import custom dashboards to grafana using helm

陌路散爱 提交于 2020-06-25 10:06:22
问题 I'm trying to understand helm and I wonder if someone could ELI5 to me something or help me with something. So i did run below: helm repo add coreos https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/ Then I installed kube-prometheus by using below: helm install coreos/kube-prometheus --name kube-prometheus -f values.yaml --namespace monitoringtest Everything works fine but I'm trying to add some custom dashboards from json files and I'm struggling to understand how to do it. I was

Grafana: Panel with time of last result

杀马特。学长 韩版系。学妹 提交于 2020-06-01 05:51:07
问题 I have an elasticsearch instance that receives logs from multiple backup routines. I'd like to query ES for these logs from Grafana and set up a panel that shows the last time for the different backups. Ideally I would also like to be able to show this in color if the time is longer than a certain threshold. Basically the idea is to have a display that shows, for instance, green if a certain backup has been completed in the last 24 hours, and red if it hasn't. How would I do this in Grafana

How do you setcap in Ubuntu 16.04.6 to allow Grafana to bind to port 80?

江枫思渺然 提交于 2020-06-01 05:08:18
问题 The Grafana config docs state that "To use port 80 you need to ... give the Grafana binary permission." When I run the instructed command sudo setcap 'cap_net_bind_service=+ep' /usr/sbin/grafana-server I get Failed to set capabilities on file `/usr/sbin/grafana-server' (Invalid argument) The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file When I run sudo setcap ‘cap_net_bind_service=+ep’ /usr/sbin/grafana-server I get fatal error:

How to setup Nginx with Auth0?

邮差的信 提交于 2020-05-29 07:21:07
问题 I got an app running in port 3000. this app is working behind a reverse proxy such as: server { listen 80; server_name myapp; location / { proxy_pass http://127.0.0.1:3000; } } so, everytime I access to my site, it will serve to localhost the content from port 3000, and it's working ok. The problem is after the auth0 authentication, when the user is authenticated it keeps redirecting to localhost:3000/#, how can I make it work to localhost? this is my Nginx config file: server { listen 80;

Get difference since 30 days ago in InfluxQL/InfluxDB

|▌冷眼眸甩不掉的悲伤 提交于 2020-05-12 07:23:47
问题 I have a single stat in my grafana dashboard showing the current usage of a disk. To get that info I use the following query: SELECT last("used") FROM "disk" WHERE "host" = 'server.mycompany.com' AND "path" = '/dev/sda1' AND $timeFilter I want to add another stat showing the increase/decrease in usage over the last 30 days. I assume for this I want to get the last measurement and the measurement from 30 days ago and subtract them. How can I do this in InfluxQL? 回答1: It wont be perfect, but

Get difference since 30 days ago in InfluxQL/InfluxDB

痴心易碎 提交于 2020-05-12 07:23:01
问题 I have a single stat in my grafana dashboard showing the current usage of a disk. To get that info I use the following query: SELECT last("used") FROM "disk" WHERE "host" = 'server.mycompany.com' AND "path" = '/dev/sda1' AND $timeFilter I want to add another stat showing the increase/decrease in usage over the last 30 days. I assume for this I want to get the last measurement and the measurement from 30 days ago and subtract them. How can I do this in InfluxQL? 回答1: It wont be perfect, but

stable/prometheus-operator - adding persistent grafana dashboards

烈酒焚心 提交于 2020-05-12 04:41:19
问题 I am trying to add a new dashboard to the below helm chart https://github.com/helm/charts/tree/master/stable/prometheus-operator The documentation is not very clear. I have added a config map to the name space like the below - apiVersion: v1 kind: ConfigMap metadata: name: sample-grafana-dashboard namespace: monitoring labels: grafana_dashboard: "1" data: etcd-dashboard.json: |- {JSON} According to the documentation, this should just be "picked" up and added, but its not. https://github.com

stable/prometheus-operator - adding persistent grafana dashboards

纵然是瞬间 提交于 2020-05-12 04:40:19
问题 I am trying to add a new dashboard to the below helm chart https://github.com/helm/charts/tree/master/stable/prometheus-operator The documentation is not very clear. I have added a config map to the name space like the below - apiVersion: v1 kind: ConfigMap metadata: name: sample-grafana-dashboard namespace: monitoring labels: grafana_dashboard: "1" data: etcd-dashboard.json: |- {JSON} According to the documentation, this should just be "picked" up and added, but its not. https://github.com

stable/prometheus-operator - adding persistent grafana dashboards

空扰寡人 提交于 2020-05-12 04:40:14
问题 I am trying to add a new dashboard to the below helm chart https://github.com/helm/charts/tree/master/stable/prometheus-operator The documentation is not very clear. I have added a config map to the name space like the below - apiVersion: v1 kind: ConfigMap metadata: name: sample-grafana-dashboard namespace: monitoring labels: grafana_dashboard: "1" data: etcd-dashboard.json: |- {JSON} According to the documentation, this should just be "picked" up and added, but its not. https://github.com

阿里云日志服务对接Grafana

拜拜、爱过 提交于 2020-05-09 07:42:35
阿里云日志服务是针对日志类数据的一站式服务,您只需要将精力集中在日志分析上,过程中数据采集、对接各种存储计算、数据索引和查询等其他工作都可以通过配置日志服务来自动完成。 在结果分析可视化上,除了使用自带Dashboard外,还支持DataV、Grafana、Tableua、QuickBI等对接方式。本文主要通过Grafana示例演示如何通过日志服务对Nginx日志进行分析与可视化。 流程架构 日志从收集到分析的流程架构如下: 配置流程 1). 日志数据采集。日志服务采集 logtail 进行日志采集。 2). 索引设置与控制台查询配置。重设索引,根据采集到Nginx的log字段进行指定字段查询。这里采集到Nginx日志格式非默认格式,根据需求已进行单独处理且为JSON格式。日志服务中查询分析已进行指定字段设置: 3). 安装Grafana插件,将实时查询SQL转化为视图。 接下来主要操作步骤3,前提是步骤1、2已经完成,能在日志服务控制台能查询到log。 配置步骤 Grafana安装 Centos 7环境安装,详细安装操作请参考 https://grafana.com/docs/grafana/latest/installation/rpm/ Grafana安装版本:Grafana v6.4.4 安装日志服务插件 执行以下命令安装插件,并重启grafana-server。 cd