Post simple value in InfluxDB

☆樱花仙子☆ 提交于 2019-12-11 12:48:20

问题


I try to POST a simple request to InfluxDB to know "How much VMs are UP ?" in my Grafana Dashboard.

I think I go wrong somewhere, because my value is not reachable.

It's my cURL command :

curl -i -XPOST 'http://server:8086/write?db=DBname' --data-binary 'vm_up value=14 1448596134'

If a key is necessary, it can be "server=dom0".

Can you help me ?

Thanks =)


回答1:


I find the answer, is about timestamp.

I need at precision=s to URL :

http://server:8086/write?db=DBname&precision=s' 


来源:https://stackoverflow.com/questions/33950054/post-simple-value-in-influxdb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!