Hi! We have a computer that we want to shud down soon. I have 2 services on that. One…
- User
Hi! We have a computer that we want to shud down soon.
I have 2 services on that. One called Prometheus, and another one called Grafana, thta is dependent of the first one.
I have a general understanding on the Grafana part. We have an ini file, a database, and an open port of 3000
The goal is to have these 2 services in a docker compose file, running them in docker. As far as I now both of these have native docker hub images. I'd like to run these(specific version) As for Grafana I think I need to override the ini file, probably as a volume mont. Same for the database, and open the 3000 port. I even know where these files are.
As for Prometheus, I'm not so sure.
How do I do that? Wat do I need to copy from the old machine? (there is no docker on the old machine)
- Assistant
To run Prometheus and Grafana as Docker containers, you'll need to create a Docker Compose file that defines the services and their configurations. Here are the general steps you can follow:
- Install Docker on the new machine if it's not already installed.
- Copy the necessary configuration files from the old machine to the new one. For Prometheus, you'll need to copy the configuration file (usually named ) and any custom rule files. For Grafana, you'll need to copy the INI file that you want to use and any custom dashboard files. You can use or a similar tool to transfer the files securely over the network.