-
Notifications
You must be signed in to change notification settings - Fork 5.5k
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Returner Influxdb 404 page not found #31504
Comments
@valentin2105, thanks for reporting. Is it possible for you to post your actual minion configs including the configs relevant for setting up influxdb as a salt returner? Thanks. |
The minion.d/influxdb.conf file :
The database & the user exists. The /etc/salt/minion file contain only the master directive. |
Did you create the InfluxDB database first? |
Yes, the database exist and the user 'salt' grant all permissions.
|
Odd. Have you tried the curl command that's in the debug log you posted above? Do the Influx logs provide any clue? |
Humm, I don't know how to make the Curl like the Salt Request made it. |
My command that I try to return to InfluxDB :
This curl command work on InfluxDB 0.9.x :
|
Hey Salt crew, I wanted to chime in here. I was messing with this today having this exact problem. Database exists but I still get a 404 when using the returner. I did some digging and here's what I found out... Short version - the Salt returner code for InfluxDB is using the 0.8 version of the InfluxDB client, which is incompatible with InfluxDB 0.9 and 0.10. The 0.8 endpoints use the Longer version - See the InfluxDB docs page on 0.8 vs 0.9 for more on the endpoint issue. Basically, 0.8 uses Hope that helps. |
Probably better if someone who actually plans to use the influxdb returner does the actual implementation :) If you want to keep compatibility with 0.8, I guess this is a bit trickier than doing Personally I don't think keeping 0.8 support is worth it. |
I tried to change this line with |
I've made a small change in #32125 to influxdb_return.py to allow storing the data in an InfluxDB 0.9+ version without using any tags. I've tested those changes against an InfluxDB 0.11.0 instance. |
@pret79 I have try your modification on influxdb_return.py on Salt 2015.8.8 and this doesn't work for me with InfluxDB 0.11 It's work for you ? |
@valentin2105 What problem did you run into? Any interesting output on the console or the Salt logs? I've attached some screenshots of InfluxDB Admin UI with some sample data stored in the Salt measurements: |
@pret79 It's work for me with your last changes. Thanks a lot, I use your .py file for waiting your pull request's approve. I have a small problem for have a visual in Grafana, are you able to show output of "status.load_avg" in Grafana for example ? Good work =) |
Looks like this is all fixed so I'm going to go ahead and close this. Thanks all. |
Hi !
Expected Behavior
Want to return some Salt output on InfluxDB
Actual Behavior
When I try :
salt-call influxdb.db_list
No problem, It give me the list of databasesBut When I try :
salt-call test.ping return= influxdb
I got :Steps to Reproduce Issue
Try so send output to InfluxDB ?
Versions Report
Salt Version:
Salt: 2015.8.7
Dependency Versions:
Jinja2: 2.7.3
M2Crypto: 0.21.1
Mako: Not Installed
PyYAML: 3.11
PyZMQ: 14.4.0
Python: 2.7.9 (default, Mar 1 2015, 12:57:24)
RAET: Not Installed
Tornado: 4.2.1
ZMQ: 4.0.5
cffi: 0.8.6
cherrypy: Not Installed
dateutil: 2.4.2
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
libgit2: Not Installed
libnacl: Not Installed
msgpack-pure: 0.1.3
msgpack-python: 0.4.2
mysql-python: 1.2.3
pycparser: 2.10
pycrypto: 2.6.1
pygit2: Not Installed
python-gnupg: Not Installed
smmap: Not Installed
timelib: Not Installed
System Versions:
dist: debian 8.3
machine: x86_64
release: 3.16.0-4-amd64
system: debian 8.3
I Try with Influx 0.9.x et 0.10.x (the new one).
Relevant Logs, Configs, or States
The minion.d/influxdb.conf is simple, localhost:8066 (it work because influxdb.db_list work)
I find something : When I curl localhost:8086, I got logs in influxdb.log but when I salt return, not any logs...
Thanks =)
The text was updated successfully, but these errors were encountered: