-
Notifications
You must be signed in to change notification settings - Fork 94
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
Can't set configs on docker run #19
Comments
Hello, You need to mount a directory instead of a single file, as sed is trying to replace it and this is not possible when the file is a mounted one. So do instead a |
Ahhhh, that makes sense, but I'm still hitting this issue
|
If you are looking at the run.sh that gets invoked during the start of the container https://github.com/criteo/cassandra_exporter/blob/master/docker/run.sh, you will see that if you don't provide ENV variable it will override them with some default value. So, you need to override the env variable when starting the container. I may need to change that, as I think about it i think it is stupid to put default value in the run.sh |
I don't have time today, but I will remove the default values from the run.sh next week |
If you repull the docker image (latest and 2.0.0) you should not get the default values overriding your config file. Let me know if everything is OK, |
I still can't create the container, but I don't think the Cassandra Exporter is to blame here...
Good chance documentation is outdated and someone set a password for this instance and I can't find it anymore. Will update it later today. |
Either a password or your jmx on cassandra is not listening for remote connexion. |
Hi @erebe , sorry for the late response, was working on some critical issues, had to hit pause on this one for a while.
Now, running my container, it kinda works
And... got stuck. I opened a second terminal to check if any port (I expected por 8080) was open, if I could get metrics and... doesn't seem to work. Would it be an issue with my Cassandra? |
Silly me. And it works! |
You welcome, |
I am trying to set some configs like user and password on my cassandra_exporter, however, everytime I try to mount the config on the container, I have this error mentioned below.
I tried to set those configs using -e "VARKey value" but it also didn't work.
As I see there are many people using it, I just assume I'm doing it wrong, but I didn't figure out how to properly use it.
The configs are currently on /tmp/config.yml, but it was in different directories before, I was just trying to move around to check permissions.
docker run --privileged --rm -ti -v /tmp/config.yml:/etc/cassandra_exporter/config.yml --name cassandra-exporter criteord/cassandra_exporter
The text was updated successfully, but these errors were encountered: