I'm trying to pass in my own prometheus.yml file. I'm new to docker and the examples I'm finding are all on Linux systems and I'm on windows. How/where is the best way to supply my own yaml file? The command below fails to start the docker container.
docker run -d -p 9090:9090 -v c:\Docker\prometheus.yml:/etc/prometheus/prometheus.yml --name=prometheus prom/prometheus -config.file=/etc/prometheus/prometheus.yml -storage.local.path=/prometheus -storage.local.memory-chunks=10000
When I do try and run this command, Docker prompts me if I want to share my C: drive which I do but still no luck getting the container to run.
Here is what the docker logs say:
Error parsing commandline arguments: unknown short flag '-c'
prometheus: error: unknown short flag '-c'
So I removed the last few arguments that Digital Ocean had in their example and the container now runs.
-storage.local.path=/prometheus -storage.local.memory-chunks=10000
So now my question is, do I need to have those configurations specified and if I do, what is the syntax?