我精通了InfluxDB Graphite Grafana . 我需要对数字数据应用数学运算,但InfluxDB或Grafana将我的数字数据视为字符串 . 所以我无法与graffana的WHERE语句或颜色进行比较 . 我如何设置数据类型?

我的配置是这样的:

<source>
	@type http
	port 12102
	format tsv
	keys string1,string2,number1,number2
	delimiter |
</source>

<match test>
	@type copy
	<store>
		@type graphite
		tag_for prefix
		name_keys number1,number2
		host localhost
		port 2003
	</store>
	<store>
		@type influxdb
		dbname test
		flush_interval 10s
		host localhost
		port 8086
	</store>
</match>

输入是这样的:

curl -X POST -d "text1|text2|764.2|57" "http://localhost:12102/test?time=1461940658"

在石墨上,一切都好 .