InfluxDB

heapset水平自动扩容

不想你离开。 提交于 2019-11-29 03:50:05
influxdb.yaml安装文件内容 apiVersion: extensions/v1beta1 kind: Deployment metadata: name: monitoring-influxdb namespace: kube-system spec: replicas: 1 template: metadata: labels: task: monitoring k8s-app: influxdb spec: containers: - name: influxdb image: lanny/k8s.gcr.io_heapster-influxdb-amd64:v1.3.3 volumeMounts: - mountPath: /data name: influxdb-storage volumes: - name: influxdb-storage emptyDir: {} --- apiVersion: v1 kind: Service metadata: labels: task: monitoring # For use as a Cluster add-on (https://github.com/kubernetes/kubernetes/tree/master/cluster/addons) # If you are NOT using this as

How to install InfluxDB in Windows

房东的猫 提交于 2019-11-28 23:09:29
I am new to InfluxDB. I could not find any details about installing InfluxDB on Windows. Is there any way to install it on a Windows machine or do I need to use a Linux server for development purposes? The current 0.9 branch of influxdb is pure go and can be compiled on Windows with the following commands: cd %GOPATH%/src/github.com/influxdb go get -u -f ./... go build ./... Of course you will need go (>1.4), git and hg. If you do not want to compile your own version, you can also find here my own Windows x86 binaries for v0.9.0-rc11: https://github.com/adriencarbonne/influxdb/releases

Can you delete data from influxdb?

十年热恋 提交于 2019-11-28 18:26:06
问题 How do you delete data from influxdb? The documentation shows it should be as simple as: delete from foo where time < now() -1h For some reason, influxdb rejects my delete statements saying "Delete queries can't have where clause that doesn't reference time" select * from bootstrap where duration > 1000 and time > 14041409940s and time < now() I want to delete these 5 entries whos duration > 1000 seconds This should be a valid sql statement, yet it fails None of these delete statements work

prometheus学习系列二: Prometheus安装

爷,独闯天下 提交于 2019-11-28 13:44:41
下载 在 prometheus 的官网的 download 页面,可以找到prometheus的下载二进制包。 [root@node00 src]# cd /usr/src/ [root@node00 src]# wget https://github.com/prometheus/prometheus/releases/download/v2.12.0/prometheus-2.12.0.linux-amd64.tar.gz [root@node00 src]# mkdir /usr/local/prometheus/ [root@node00 src]# tar xf prometheus-2.12.0.linux-amd64.tar.gz -C /usr/local/prometheus/ [root@node00 src]# cd /usr/local/prometheus/ [root@node00 prometheus]# ln -s prometheus-2.12.0.linux-amd64 prometheus [root@node00 prometheus]# ll total 0 lrwxrwxrwx 1 root root 29 Sep 20 05:06 prometheus -> prometheus-2.12.0.linux-amd64 drwxr-xr

【Docker】性能测试监控平台搭建:InfluxDB+Grafana+Jmeter+cAdvisor

一笑奈何 提交于 2019-11-28 10:40:31
https://www.cnblogs.com/Detector/p/10104254.html 前言 在做性能测试时,如果有一个性能测试结果实时展示的页面,可以极大的提高我们对系统性能表现的掌握程度,进而提高我们的测试效率。 但是我们每次打开Jmeter都会有几个硕大的字提示别用GUI模式进行负载测试,而且它自带的监视器效果实在一般:在Windows下渲染效果不好,在linux环境(非GUI环境)下更是无法使用,这一点我在 如何选择性能测试工具 中有过简单的描述。 所以,在做性能测试时,为 Jmeter 构建一个可视化的监控环境平台是非常有价值的。这也是这篇博客的目的。 首先我们来看一下最后的成品, 监控了TPS、并发、请求成功率、失败率、请求&接收数据大小、平均响应时长、95%的请求平均响应时长等等。 (这里面的各个板块都是可自定义配置的,无论多花里花哨都可以[奸笑脸]) 业务服务监控:精确到具体的接口 Mysql监控:精确到具体的查询函数 Redis监控:精确到具体的cache操作 组件简介 首先我们一起来简单了解下今天需要用到的这几个工具。 InfluxDB 一个开源的时序数据库,使用GO语言开发,特别适合用于处理和分析资源监控数据这种时序相关数据。 cAdvisor Google用来监测单节点的资源信息的监控工具。Kubernetes中也缺省地将其作为单节点的资源监控工具

How to install influxdb on Windows OS and access Admin Console

戏子无情 提交于 2019-11-28 09:25:46
问题 I am new to influxdb and trying to install it on my Windows 7 - 64 OS. Following are the steps done till now: Downloaded .zip file from the following location: https://dl.influxdata.com/influxdb/releases/influxdb-1.1.0_windows_amd64.zip unzipped the folder in the following location: J:\common\influxdb\influxdb-1.1.0_windows_amd64\influxdb-1.1.0-1 Launched the command prompt with admin privilages and run the following commands: 1. cd J:\common\influxdb\influxdb-1.1.0_windows_amd64\influxdb-1.1

Influx Sql系列教程四:series/point/tag/field

假装没事ソ 提交于 2019-11-28 02:42:37
influxdb中的一条记录point,主要可以分为三类,必须存在的time(时间),string类型的tag,以及其他成员field;而series则是一个measurement中保存策略和tag集构成;本篇教程将介绍一些这几个概念 1. tag influxdb数据结构中记录元数据(metadata)的kv对,不要求必须存在,tag key/value 都是字符串类型,而且会建立索引,因此基于tag进行查询效率比单纯的基于field进行查询是要高的;后续的一些sql也会发现,某些查询只能基于tag 重点提炼 tag key/value: 字符串类型 有索引 常见的查询tag的语法如下 show tag keys on <database> from <measurement> 下面给出一个实际的例子, insert语句后面会说到,我们塞入的一条数据,指定name为tag,另外三个为field > insert yhh,name=一灰灰 age=26,id=10,blog="http://blog.hhui.top" > select * from yhh name: yhh time age blog id name ---- --- ---- -- ---- 1563888301725811554 26 http://blog.hhui.top 10 一灰灰 > show

Influx Sql系列教程八:query数据查询基本篇

此生再无相见时 提交于 2019-11-28 02:42:33
前面几篇介绍了InfluxDB的添加,删除修改数据,接下来进入查询篇,掌握一定的SQL知识对于理解本篇博文有更好的帮助,下面在介绍查询的基础操作的同时,也会给出InfluxSql与SQL之间的一些差别 在开始之前,先看一下供查询的数据 > show measurements name: measurements name ---- yhh > select * from yhh name: yhh time age blog id name phone ---- --- ---- -- ---- ----- 1563889538654374538 26 http://blog.hhui.top 10 一灰灰 1563889547738266214 30 http://blog.hhui.top 11 一灰灰 1563889704754695002 30 http://blog.hhui.top 11 一灰灰2 1563889723440000821 30 http://blog.hhui.top 11 一灰灰3 110 > show tag keys from yhh name: yhh tagKey ------ name phone 1. 基本查询 基本查询语法如下 SELECT <field_key>[,<field_key>,<tag_key>] FROM

Influx Sql系列教程九:query数据查询基本篇二

ぐ巨炮叔叔 提交于 2019-11-28 02:42:25
前面一篇介绍了influxdb中基本的查询操作,在结尾处提到了如果我们希望对查询的结果进行分组,排序,分页时,应该怎么操作,接下来我们看一下上面几个场景的支持 在开始本文之前,建议先阅读上篇博文: 190813-Influx Sql系列教程八:query数据查询基本篇 0. 数据准备 在开始查询之前,先看一下我们准备的数据,其中 name,phone 为tag, age,blog,id 为field > select * from yhh name: yhh time age blog id name phone ---- --- ---- -- ---- ----- 1563889538654374538 26 http://blog.hhui.top 10 一灰灰 1563889547738266214 30 http://blog.hhui.top 11 一灰灰 1563889704754695002 30 http://blog.hhui.top 11 一灰灰2 1563889723440000821 30 http://blog.hhui.top 11 一灰灰3 110 > show tag keys from yhh name: yhh tagKey ------ name phone 1. 分组查询 和sql语法一样,influxdb sql的分组也是使用 group

Influx Sql系列教程九:query数据查询基本篇二

こ雲淡風輕ζ 提交于 2019-11-28 02:42:25
前面一篇介绍了influxdb中基本的查询操作,在结尾处提到了如果我们希望对查询的结果进行分组,排序,分页时,应该怎么操作,接下来我们看一下上面几个场景的支持 在开始本文之前,建议先阅读上篇博文: 190813-Influx Sql系列教程八:query数据查询基本篇 0. 数据准备 在开始查询之前,先看一下我们准备的数据,其中 name,phone 为tag, age,blog,id 为field > select * from yhh name: yhh time age blog id name phone ---- --- ---- -- ---- ----- 1563889538654374538 26 http://blog.hhui.top 10 一灰灰 1563889547738266214 30 http://blog.hhui.top 11 一灰灰 1563889704754695002 30 http://blog.hhui.top 11 一灰灰2 1563889723440000821 30 http://blog.hhui.top 11 一灰灰3 110 > show tag keys from yhh name: yhh tagKey ------ name phone 1. 分组查询 和sql语法一样,influxdb sql的分组也是使用 group