Skip to main content
freelanceshack.com

Back to all posts

How to Use Grafana-Cli on A Docker-Installed Grafana?

Published on
6 min read
How to Use Grafana-Cli on A Docker-Installed Grafana? image

Best Grafana-Cli Tools to Buy in October 2025

1 KooKaStyle Invisible Wire Hair Extensions Long Straight Layered Synthetic with Transparent Wire Adjustable Size 6 Secure Clips Hairpieces for Women 20 Inch (20 Inch, Balayage Dark Brown to Chestnut)

KooKaStyle Invisible Wire Hair Extensions Long Straight Layered Synthetic with Transparent Wire Adjustable Size 6 Secure Clips Hairpieces for Women 20 Inch (20 Inch, Balayage Dark Brown to Chestnut)

  • ACHIEVE SALON-QUALITY LAYERED HAIR IN JUST SECONDS WITH EASE!

  • USER-FRIENDLY DESIGN WITH SECURE CLIPS ENSURES NATURAL-LOOKING VOLUME.

  • EFFORTLESSLY CREATE STUNNING STYLES WITH SIMPLE 3-STEP APPLICATION!

BUY & SAVE
$19.99
KooKaStyle Invisible Wire Hair Extensions Long Straight Layered Synthetic with Transparent Wire Adjustable Size 6 Secure Clips Hairpieces for Women 20 Inch (20 Inch, Balayage Dark Brown to Chestnut)
2 KooKaStyle Clip in Long Wavy Synthetic Hair Extension 20 Inch 4PCS Balayage Dark Brown to Chestnut Hairpieces Fiber Thick Double Weft Hair Extension for Women

KooKaStyle Clip in Long Wavy Synthetic Hair Extension 20 Inch 4PCS Balayage Dark Brown to Chestnut Hairpieces Fiber Thick Double Weft Hair Extension for Women

  • NATURAL LOOK: ACHIEVE LONGER, THICKER HAIR THAT FEELS REAL!
  • EASY TO USE: NON-SLIP CLIPS AND DOUBLE WEFT FOR COMFORT & STABILITY.
  • CARE TIPS: KEEP EXTENSIONS TANGLE-FREE WITH SIMPLE MAINTENANCE!
BUY & SAVE
$24.99
KooKaStyle Clip in Long Wavy Synthetic Hair Extension 20 Inch 4PCS Balayage Dark Brown to Chestnut Hairpieces Fiber Thick Double Weft Hair Extension for Women
3 BARSDAR Wavy Clip in Hair Extensions - 20 Inch Highlight Clip in Hair Extensions for Women - 5PCs Thick Soft Synthetic Loose Wave Balayage Extensions Hairpieces – Dark Brown with Highlights

BARSDAR Wavy Clip in Hair Extensions - 20 Inch Highlight Clip in Hair Extensions for Women - 5PCs Thick Soft Synthetic Loose Wave Balayage Extensions Hairpieces – Dark Brown with Highlights

  • INSTANT VOLUME AND LENGTH WITH EASY, SECURE CLIP-IN DESIGN.
  • HEAT-RESISTANT FIBERS PROVIDE A NATURAL, TANGLE-FREE FINISH.
  • VERSATILE COLORS FOR EVERY OCCASION-STYLE THEM YOUR WAY!
BUY & SAVE
$19.99
BARSDAR Wavy Clip in Hair Extensions - 20 Inch Highlight Clip in Hair Extensions for Women - 5PCs Thick Soft Synthetic Loose Wave Balayage Extensions Hairpieces – Dark Brown with Highlights
4 ALXNAN Clip in Hair Extension,6PCS Blonde Long Wavy Hair Extension 24 Inch Thick Soft Synthetic Hair Double Weft Hairpieces for Women

ALXNAN Clip in Hair Extension,6PCS Blonde Long Wavy Hair Extension 24 Inch Thick Soft Synthetic Hair Double Weft Hairpieces for Women

  • ACHIEVE A STUNNING LOOK IN JUST 5 MINUTES WITH CLIP-IN EXTENSIONS!
  • INSTANTLY BOOST VOLUME AND LENGTH WITH OUR 20-INCH HAIR SET!
  • VERSATILE STYLING: CUT, PERM, OR WASH FOR ENDLESS HAIR TRANSFORMATIONS!
BUY & SAVE
$12.99
ALXNAN Clip in Hair Extension,6PCS Blonde Long Wavy Hair Extension 24 Inch Thick Soft Synthetic Hair Double Weft Hairpieces for Women
5 ALXNAN Clip in Long Wavy Synthetic Hair Extension 20 Inch Beach Blonde 4PCS Thick Hairpieces Fiber Double Weft Hair for Women

ALXNAN Clip in Long Wavy Synthetic Hair Extension 20 Inch Beach Blonde 4PCS Thick Hairpieces Fiber Double Weft Hair for Women

  • EFFORTLESS VOLUME & LENGTH: ACHIEVE BEAUTIFUL HAIR IN MINUTES!

  • GENTLE & SAFE APPLICATION: NO GLUE OR TAPE; JUST EASY-TO-USE CLIPS!

  • VERSATILE STYLING OPTIONS: CHANGE COLORS AND STYLES WITHOUT DAMAGE!

BUY & SAVE
$23.99
ALXNAN Clip in Long Wavy Synthetic Hair Extension 20 Inch Beach Blonde 4PCS Thick Hairpieces Fiber Double Weft Hair for Women
6 REECHO Hair Extensions, Blonde Clip in Hair Extensions 24" Thick Long Loose Waves hair extensions HE002 Invisible Lace Weft Natural Soft Hairpieces for Women – Platinum Blonde

REECHO Hair Extensions, Blonde Clip in Hair Extensions 24" Thick Long Loose Waves hair extensions HE002 Invisible Lace Weft Natural Soft Hairpieces for Women – Platinum Blonde

  • EFFORTLESS BEACH WAVES: INSTANTLY ADD LENGTH AND VOLUME WITH EASE!

  • ALL-DAY COMFORT: ULTRA-THIN LACE WEFT FOR A SEAMLESS, UNDETECTABLE FIT.

  • LIGHTWEIGHT LUXURY: 30% LIGHTER WITH HEAT-FRIENDLY FIBERS FOR A NATURAL FEEL.

BUY & SAVE
$24.95
REECHO Hair Extensions, Blonde Clip in Hair Extensions 24" Thick Long Loose Waves hair extensions HE002 Invisible Lace Weft Natural Soft Hairpieces for Women – Platinum Blonde
7 REECHO Hair Extensions - 4PCS 14" Short Beach Wavy Clip-in Hairpieces With Invisible Lace Weft - Natural Soft for Women - Ash Blonde With Highlights

REECHO Hair Extensions - 4PCS 14" Short Beach Wavy Clip-in Hairpieces With Invisible Lace Weft - Natural Soft for Women - Ash Blonde With Highlights

  • TRANSFORM FLAT HAIR INTO VOLUMINOUS BEAUTY, INSTANTLY! ✨

  • ENJOY LUXURIOUS, LIGHTWEIGHT EXTENSIONS THAT MIMIC REAL HAIR! ✨

  • UPGRADE TO VIRTUALLY UNDETECTABLE LACE WEFTS FOR ALL-DAY COMFORT! ✨

BUY & SAVE
$21.95
REECHO Hair Extensions - 4PCS 14" Short Beach Wavy Clip-in Hairpieces With Invisible Lace Weft - Natural Soft for Women - Ash Blonde With Highlights
8 SEGO I Tip Hair Extensions Human Hair Keratin Pre Bonded MicroBeads Tip Balayage Natural Silky Straight Extensions 100 Strands 50g/Pack /16 Inch 4P27 Medium Brown&Dark Blonde

SEGO I Tip Hair Extensions Human Hair Keratin Pre Bonded MicroBeads Tip Balayage Natural Silky Straight Extensions 100 Strands 50g/Pack /16 Inch 4P27 Medium Brown&Dark Blonde

  • PREMIUM ITALIAN KERATIN: GENTLE ON HAIR AND SCALP FOR SEAMLESS WEAR.
  • 100% REMY HUMAN HAIR: SOFT, TANGLE-FREE, AND FULLY CUSTOMIZABLE STYLING.
  • DURABLE & VERSATILE: USE MICROBEADS FOR SECURE, LONG-LASTING EXTENSIONS.
BUY & SAVE
$39.90
SEGO I Tip Hair Extensions Human Hair Keratin Pre Bonded MicroBeads Tip Balayage Natural Silky Straight Extensions 100 Strands 50g/Pack /16 Inch 4P27 Medium Brown&Dark Blonde
9 Full Shine U Tip Hair Extensions Blonde Highlighted Ktip Human Hair Extensions 16 Inch Prebonded Keratin Extensions Remy Hair 50G/50S Fusion Extensions for Women

Full Shine U Tip Hair Extensions Blonde Highlighted Ktip Human Hair Extensions 16 Inch Prebonded Keratin Extensions Remy Hair 50G/50S Fusion Extensions for Women

  • CUSTOMIZE YOUR LOOK: HEAT STYLE AND DYE FOR PERSONALIZED BEAUTY.
  • EASY APPLICATION: ITALIAN KERATIN ENSURES IRRITATION-FREE WEAR.
  • NATURAL BLEND: SEAMLESS, STRAND-BY-STRAND METHOD FOR UNDETECTABLE LOOK.
BUY & SAVE
$41.99
Full Shine U Tip Hair Extensions Blonde Highlighted Ktip Human Hair Extensions 16 Inch Prebonded Keratin Extensions Remy Hair 50G/50S Fusion Extensions for Women
10 Sunny Hair Flat Tip Hair Extensions, Keratin Hair Extensions for Women, Fusion Hair Extensions Balayage Brown 16inch 50g

Sunny Hair Flat Tip Hair Extensions, Keratin Hair Extensions for Women, Fusion Hair Extensions Balayage Brown 16inch 50g

  • SECURE WEAR & GENTLE ON SCALP: NATURAL KERATIN BONDS, PERFECT FOR SENSITIVE HAIR.

  • HEAT-RESISTANT DURABILITY: STYLE UP TO 300°F, BLENDING SEAMLESSLY WITH YOUR HAIR.

  • REUSABLE & LONG-LASTING: SMART INVESTMENT FOR EXTENDED WEAR; LASTS MONTHS WITH CARE.

BUY & SAVE
$35.48
Sunny Hair Flat Tip Hair Extensions, Keratin Hair Extensions for Women, Fusion Hair Extensions Balayage Brown 16inch 50g
+
ONE MORE?

To use grafana-cli on a Docker-installed Grafana, you need to follow these steps:

  1. Run Grafana as a Docker container. You can do this by executing the following command: docker run -d --name=grafana -p 3000:3000 grafana/grafana
  2. Access the Grafana instance by opening a web browser and navigating to http://localhost:3000. This is the default URL and port for Grafana when running as a Docker container.
  3. Log in to Grafana using the default username and password. The default credentials are both "admin".
  4. Once logged in, you can start using Grafana's web interface to configure your dashboards, data sources, and panels.
  5. To use grafana-cli, you need to access the command line of the Docker container where Grafana is running. Open a terminal or command prompt and type the following command: docker exec -it grafana /bin/bash
  6. You will now have a command prompt within the running Grafana container. From here, you can run grafana-cli commands to manage plugins, install new data sources, import/export dashboards, and more.
  7. For example, to install a plugin using grafana-cli, you would run the following command: grafana-cli plugins install plugin-name
  8. After executing the desired grafana-cli commands, close the terminal or command prompt by typing exit.

Remember, the changes you make within the Grafana container will persist as long as the container is running. Any changes you make to dashboards, settings, etc., will be saved within the container and will be available the next time you start it.

What are the prerequisites to use Grafana CLI on Docker?

To use Grafana CLI on Docker, you need to meet the following prerequisites:

  1. Docker: Install Docker on your system.
  2. Docker Compose: Install Docker Compose, as it is used to manage multiple Docker containers.
  3. Grafana Docker Image: Pull the Grafana Docker image from the official Docker registry using the following command: docker pull grafana/grafana

Once you have these prerequisites fulfilled, you can use Grafana CLI on Docker.

How to enable/disable features and plugins using Grafana CLI on Docker?

To enable/disable features and plugins using Grafana CLI on Docker, follow these steps:

  1. Start the Grafana Docker container by running the following command in your terminal: docker run -d --name=grafana -p 3000:3000 grafana/grafana
  2. Access the Grafana CLI by running the following command: docker exec -it grafana grafana-cli
  3. To enable a feature or plugin, use the plugins enable command followed by the plugin ID or name. For example, to enable the "loki" data source plugin, run: plugins enable grafana-loki-datasource The plugin ID can be found on the plugin's page in the Grafana plugin repository.
  4. To disable a feature or plugin, use the plugins disable command followed by the plugin ID or name. For example, to disable the "loki" data source plugin, run: plugins disable grafana-loki-datasource
  5. Restart the Grafana Docker container to apply the changes: docker restart grafana Note that restarting the container is necessary for the changes to take effect.

By following these steps, you'll be able to enable/disable features and plugins using the Grafana CLI on Docker.

How to access the Docker container running Grafana?

To access a Docker container running Grafana, you can follow these steps:

  1. Start by finding the IP address or hostname of your Docker container. Use the docker ps command to list all running containers and locate the Grafana container.
  2. Once you have located the Grafana container, note down the "CONTAINER ID" or "NAMES" column value for that container.
  3. Next, use the docker inspect command, replacing with the actual container ID or name, to gather more information about the container.
  4. Scan through the output for the "IPAddress" or "Gateway" field. This will provide the IP address of the Grafana container.
  5. Now that you have the IP address, open a web browser and enter the IP address along with the Grafana port. By default, Grafana uses port 3000, so enter http://:3000 in the browser.
  6. If you are running Grafana container on your local machine, you can use localhost:3000 as the URL instead of the IP address.
  7. The Grafana web interface should be accessible now, and you can log in using the default credentials (admin/admin). It is recommended to change the password after the initial login.

Note: If Grafana is not running on the default port 3000, check the container's configuration to find the specific port mapping.

How to list and manage server-side dashboard provisioning with Grafana CLI on Docker?

To list and manage server-side dashboard provisioning with Grafana CLI on Docker, you can follow these steps:

  1. Start by running the Grafana Docker container: docker run --name grafana -p 3000:3000 grafana/grafana
  2. Once the container is running, access Grafana at http://localhost:3000 in your web browser. The default username and password are both "admin".
  3. Import any required dashboards manually via the Grafana web interface that you want to provision on the server side.
  4. Stop the Grafana container by running: docker stop grafana
  5. Now, start the Grafana container again but with an additional volume mapped to grafana.ini to persist changes and enable provisioning: docker run --name grafana -p 3000:3000 -v /path/to/grafana.ini:/etc/grafana/grafana.ini -v /path/to/provisioning:/etc/grafana/provisioning grafana/grafana Replace /path/to/grafana.ini with the local path to your grafana.ini file and /path/to/provisioning with the local path to the directory where you will store the provisioning files.
  6. Inside the /path/to/provisioning directory, create a subdirectory for each specific type of provisioning. For example, you could create a directory called dashboards to store dashboard provisioning JSON files.
  7. Create a JSON file inside the appropriate subdirectory to define the provisioning for a specific type. For dashboard provisioning, create a file like dashboards/sample-dashboard.json. The structure of the JSON file will depend on your specific configuration requirements. You can refer to the Grafana documentation for more details on the JSON file format.
  8. Start the Grafana container again (if not already running): docker start grafana
  9. Connect to the Grafana container using the CLI: docker exec -it grafana bash
  10. Inside the container, use the Grafana CLI to verify the provisioning is applied:

grafana-cli --homepath=/usr/share/grafana/ admin settings

This command will show the current settings, including the provisioned dashboards.

  1. Optionally, you can also use the Grafana CLI to manage the provisioned dashboards, for example, to add, update, or remove dashboards.

By following these steps, you can list and manage server-side dashboard provisioning with Grafana CLI on Docker.