← Back to team overview

graphite-dev team mailing list archive

Re: [Question #663092]: Unable to post tags

 

Question #663092 on Graphite changed:
https://answers.launchpad.net/graphite/+question/663092

Description changed to:
Hello!

I have installed graphite 1.1.1 and I am trying to post tags to the
graphite database according to the documentation:

http://graphite.readthedocs.io/en/latest/tags.html#adding-series-to-the-
tagdb


Here is the output of what I have done:

1.
# grep graphite /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 graphite

2.
# echo "disk.used 300 $(date +%s)" | nc graphite 2003

3.
# curl "http://graphite/render?&target=disk.used&from=-5min&rawData=true";
disk.used,1516009980,1516010280,60|300.0,None,None,300.0,300.0

4.
# curl -i -X POST "http://graphite/tags/tagSeries"; --data-urlencode 'path=disk.used;rack=a1;datacenter=dc1;server=web01'

HTTP/1.1 500 Internal Server Error
Date: Mon, 15 Jan 2018 09:57:36 GMT
Server: Apache/2.4.25 (Red Hat) mod_wsgi/4.5.13 Python/2.7
Content-Length: 37
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, OPTIONS
Access-Control-Allow-Headers: origin, authorization, accept
Connection: close
Content-Type: application/json

{"error": "near \",\": syntax error"}


So graphite exists in /etc/hosts (point 1)
I can post metrics to graphite and retrieve them (point 2 & 3)
But it seems graphite is not accepting the tags I am trying to post. (point 4)


Do you know what I am missing here?

Kind Regards,

Toby

-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.