grafana

How to use LDAP Authentication with Grafana and Wamp for Single Sign On?

徘徊边缘 提交于 2019-12-06 06:16:18
I am trying to add single sign on for grafana using LDAP, I have come across Grafana documentation for LDAP but I did not understand. Can I get Single Sign On feature using LDAP? If yes, Can somebody give me a step by step procedure to follow to setup single sign on using ldap and grafana. Grafana Version : 5.2.1 OS: WINDOWS Update 1 I have been able to configure LDAP with grafana. Now I'm trying to integrate LDAP with wamp for SSO. In apache error log file I'm getting this error auth_ldap authenticate: user username authentication failed; URI /grafana/ [LDAP: ldap_simple_bind() failed]

Is it possible to write a grafana datasource plugin without using a external backend?

牧云@^-^@ 提交于 2019-12-06 06:03:19
问题 I want to write a grafana datasource plugin which does not rely on a external backend. Ive built my plugin based on the simple-json datasource plugin: https://github.com/grafana/simple-json-datasource I try to change the query function in the datasource.js as follows: original: query(options) { var query = this.buildQueryParameters(options); if (query.targets.length <= 0) { return this.q.when([]); } return this.backendSrv.datasourceRequest({ url: this.url + '/query', data: query, method:

怎么打开 istio 的应用grafana和kiali 的 dashboard

放肆的年华 提交于 2019-12-06 03:08:25
1. kubectl get pods -n istio-system -w kubectl get service -n istio-system -w 2. 要把访问 Port 映射出去一次: kubectl port-forward --address 0.0.0.0 {pod-name} 20001 -n istio-system 把kiali 映射出去一次: kubectl port-forward --address 0.0.0.0 kiali-fb5f485fb-2jczp 20001 -n istio-system 把grafana 映射出去一次: kubectl port-forward --address 0.0.0.0 grafana-6c8f45499-9k6n6 3000 -n istio-system 来源: https://www.cnblogs.com/xiaoyongyang/p/11959715.html

Clear old data in Grafana

心已入冬 提交于 2019-12-06 02:29:27
I'm using Prometheus and Grafana for monitoring the servers. Grafana data were stored in /home/user/data folder. This folder occupied the majority of the file system . Need to remove the old data in Grafana data folder ( Data which is older than a month ) Grafana does not saves data from Prometheus. It queries Prometheus and displays UI. In this case, you would have to look at purging Prometheus data. Prometheus by default has a 15 day retention period. But this could be adjusted by the -storage.local.retention flag to suit your needs According to official documentation of Prometheus: -

Grafana邮件报警

和自甴很熟 提交于 2019-12-05 20:10:47
一、概述 报警是Grafana的一项革命性功能,它让Grafana从一个数据可视化工具变成一个真正的任务监控工具。报警规则可以使用现有的图表控制面板设置,阈值可以通过拖拉右边的线控制,非常简单。Grafana服务器会不断评估设置的规则,在规则条件符合的时候发送出通知。 二、配置 Grafana版本必须是4.0+才支持报警功能,相关安装教程见:Linux下打造全方位立体监控系统 首先编辑配置文件 cd /etc/grafana/ cp grafana.ini grafana.ini.bak vi grafana.ini 这里以 阿里云邮箱 为列: smtp内容如下: #################################### SMTP / Emailing ########################## [smtp] enabled = true host = smtp.mxhichina.com:465 user = monitor@xx.com password = 123456 from_address = monitor@xx.com from_name = Grafana skip_verify = true ehlo_identity = xx.com 配置完成以后重启服务使其生效 service grafana-server restart 后台配置

influxdb sum first value metric of different series but same time interval for grafana graph

被刻印的时光 ゝ 提交于 2019-12-05 20:01:00
I am using influxdb grafana and collectd and i want to display memory usage graph. The collectd give me this metrics value for memory and save it in influxdb influxdb/memory/memory-buffered influxdb/memory/memory-cached influxdb/memory/memory-free influxdb/memory/memory-used i want to display in grafana graph the total memory so i need to sum the following metrics: memory_buffered + memory_cached + memory_free + memory_used How can I query this in influxdb or in grafana ? I think this is not possible at moment (with InfluxDB 0.9). In order to compute ratios between timeseries (fields) you

20个Docker Command

让人想犯罪 __ 提交于 2019-12-05 18:50:40
在这之前呢,也写过两篇关于Docker基础入门类的文章 Docker容器技术入门(一) Docker容器技术入门(二) 很多人都感觉这文章这么简单、这么基础,可是别忘记了“万丈高楼平地起”,如果少了这个平地址,你这高楼估计也起不了。所以,基础是学习任何一门技术或者一个技术点的重中之重,也可以说是很关键的决胜点。 所以呢,今天,给大家 总结了这20个Docker Command,愿各位小伙伴在通往“玩转Docker”路上不再无助!!!! 安装完成docker容器服务之后,需要了解如何操作它?在shell命令行下直接输入docker就可以查看帮助信息,如下。 [root@master ~]# docker Usage: docker COMMAND A self-sufficient runtime for containers Options: --config string Location of client config files (default "/root/.docker") -D, --debug Enable debug mode --help Print usage -H, --host list Daemon socket(s) to connect to (default []) -l, --log-level string Set the logging

prometheus安装(docker)

二次信任 提交于 2019-12-05 17:48:46
alertmanager mkdir /opt/alertmanager -p vim /opt/alertmanager/Dockerfile FROM prom/alertmanager EXPOSE 9093 vim /opt/alertmanager/docker-compose.yml version: "3.7" services: alertmanager: image: v-alertmanager container_name: alertmanager build: context: . dockerfile: Dockerfile restart: always ports: - 9093:9093 volumes: - /opt/alertmanager/etc/alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml - /var/data/alertmanager:/alertmanager command: - '--config.file=/etc/alertmanager/alertmanager.yml' - '--storage.path=/alertmanager' mkdir -p /var/data/alertmanager;chmod -R 777 /var

Calculating request per second using InfluxDB on Grafana

£可爱£侵袭症+ 提交于 2019-12-05 17:36:05
I use telegraf plugin nginx to read Nginx's basic status information (ngx_http_stub_status_module) This is my query raw sql: SELECT derivative(mean("requests"), 1s) FROM "nginx" WHERE $timeFilter GROUP BY time($interval) fill(null) This is my data time accepts active handled host port reading requests server waitingwriting 1464921070000000000 7 1 7 hysm 80 0 17 localhost 0 1 1464921080000000000 8 1 8 hysm 80 0 19 localhost 0 1 1464921090000000000 8 1 8 hysm 80 0 20 localhost 0 1 1464921100000000000 8 1 8 hysm 80 0 21 localhost 0 1 but requestPerSecond is 0.083, what is wrong with my query?

Grafana中mysql作为数据源的配置方法

南笙酒味 提交于 2019-12-05 14:49:00
需求 近期在使用python写一套模拟API请求的监控项目,考虑 数据可视化 这方面就采用grafana来呈现,下面来看看怎么弄。 数据源准备 首先安装好mysql,将监控的日志数据写入到mysql之中。如下图: 好了,这里就已经准备好了相关的测试模拟数据。那么下面就使用Grafana来配置图表看看。 使用Grafana呈现table表格 如果有不清楚Grafana怎么安装的朋友,可以点击 这里 查看如何安装部署。 执行Grafana的启动脚本如下: [root@server86 grafana]# cat restart_grafana.sh #!/bin/bash basedir=$(cd `dirname $0`;pwd) mkdir -p data # creates a folder for your data ID=$(id -u) # saves your user id in the ID variable docker stop grafana docker rm grafana docker run \ -d --name grafana -p 3000:3000 \ -e "GF_SERVER_ROOT_URL=http://grafana.server.name" \ -e "GF_SECURITY_ADMIN_PASSWORD=newpwd" \ -