{"id":29143,"date":"2023-11-03T17:59:34","date_gmt":"2023-11-03T16:59:34","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=29143"},"modified":"2023-11-03T17:59:36","modified_gmt":"2023-11-03T16:59:36","slug":"redis-redis-x-grafana-fix-the-get-instance-error-message","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/","title":{"rendered":"Redis: Redis X Grafana fix the &#8220;get instance error&#8221; message"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-introduction\">Introduction<\/h2>\n\n\n\n<p>Last time, we have seen how to add a Redis plugin to Grafana in order to monitor and generate graphs and charts for your reports or analysis.<\/p>\n\n\n\n<p>During this configuration you may encounter some issues or miss some steps that will end to an error message.<\/p>\n\n\n\n<p>Today we will see some typical error message and who to fix it quickly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-check-if-your-plugin-s-version-installed-on-grafana\">Check if your plugin&#8217;s version installed on Grafana<\/h2>\n\n\n\n<p>First step is to have confirmation that your Redis plugin is installed and up to date.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to Administration then Plugins<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"387\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5-1024x387.png\" alt=\"\" class=\"wp-image-29146\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5-1024x387.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5-300x113.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5-768x290.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5-1536x581.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5.png 1899w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check if plugin is here <\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"397\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER6-1024x397.png\" alt=\"\" class=\"wp-image-29147\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER6-1024x397.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER6-300x116.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER6-768x298.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER6-1536x595.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER6.png 1897w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>As you see, plugin is here and installed<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check the plugin version ( in case you are not able to debug it it may be useful for Redis support team )<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"460\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER7-1024x460.png\" alt=\"\" class=\"wp-image-29148\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER7-1024x460.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER7-300x135.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER7-768x345.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER7-1536x690.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER7.png 1895w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now you have the plugin version and also its compatibility with the Grafana version<\/p>\n\n\n\n<p>( in our example it is compatible with Grafana versions &gt; +8.0.0 )<\/p>\n\n\n\n<p>If all is fine at this level, we can now focus on the different error messages related to Redis instance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-fix-getinstance-error-connection-refused\">Fix getInstance error: connection refused<\/h2>\n\n\n\n<p>When you connect to Grafana, you have to define the Redis database:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to Home Connections=&gt;Data sources<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"369\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER12-1024x369.png\" alt=\"\" class=\"wp-image-29151\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER12-1024x369.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER12-300x108.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER12-768x277.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER12-1536x554.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER12.png 1898w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When adding all your database details and you click on &#8220;save and test&#8221; button, your can face the famous issue<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"439\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER_1st_issue_ip-1024x439.png\" alt=\"\" class=\"wp-image-29152\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER_1st_issue_ip-1024x439.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER_1st_issue_ip-300x129.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER_1st_issue_ip-768x329.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER_1st_issue_ip-1536x659.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER_1st_issue_ip.png 1895w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>For this specific case it can simply due to the fact that your Redis database is not up!<\/p>\n\n\n\n<p>So check that in priority.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If it is not UP, then start it and retry the &#8220;Save and test&#8221; option<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"496\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER20debugredisstart-1024x496.png\" alt=\"\" class=\"wp-image-29153\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER20debugredisstart-1024x496.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER20debugredisstart-300x145.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER20debugredisstart-768x372.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER20debugredisstart-1536x743.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER20debugredisstart.png 1903w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the redis-server command or start the Redis service using systemd on your Redis server:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>nso@DBI-LT-NSO:~&gt; redis-server<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"556\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-6-1024x556.png\" alt=\"\" class=\"wp-image-29190\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-6-1024x556.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-6-300x163.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-6-768x417.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-6-1536x835.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-6.png 1903w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><span style=\"text-decoration: underline\">Example on Linux:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start redis.service<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you are in that specific case it should work fine now \ud83d\ude42<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The second case can be because your address is not correctly set or not recognized<\/li>\n<\/ul>\n\n\n\n<p>Below my local host name didn&#8217;t worked:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"954\" height=\"321\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-7.png\" alt=\"\" class=\"wp-image-29193\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-7.png 954w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-7-300x101.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-7-768x258.png 768w\" sizes=\"auto, (max-width: 954px) 100vw, 954px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"370\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-8-1024x370.png\" alt=\"\" class=\"wp-image-29194\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-8-1024x370.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-8-300x109.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-8-768x278.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-8-1536x556.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-8.png 1874w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>So for those using a Docker image like me we must add the docker host IP address  instead.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-get-the-docker-host-ip-address\">Get the docker host IP Address <\/h2>\n\n\n\n<p>To get the docker ip address use the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker inspect &lt;containerNameOrId&gt;<\/code><\/pre>\n\n\n\n<p><span style=\"text-decoration: underline\">Example:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\WINDOWS\\system32&gt;docker inspect <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>8c6c36853ab0490ecca607a6aa28bd158f8f798fd221c24f973faf33be7dfb23<\/code><\/pre>\n\n\n\n<p>You can then pick the Docker ip address<\/p>\n\n\n\n<p>Here in my example it is 172.17.0.2<\/p>\n\n\n\n<p>&#8220;Usually, the default docker ip range is <code>172.17.0.0\/16<\/code>. <\/p>\n\n\n\n<p>Your host should be <code>172.17.0.1<\/code> and your first container should be <code>172.17.0.2<\/code> if everything is normal and you didn&#8217;t specify any special network options.&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"182\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-9-1024x182.png\" alt=\"\" class=\"wp-image-29198\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-9-1024x182.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-9-300x53.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-9-768x137.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-9-1536x274.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-9.png 1886w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Let&#8217;s try now:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"452\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-10-1024x452.png\" alt=\"\" class=\"wp-image-29201\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-10-1024x452.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-10-300x132.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-10-768x339.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-10-1536x678.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-10.png 1864w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If it is still not working with Docker IP address you picked by using the docker inspect command, use the following syntax:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>host.docker.internal: &lt;your_Redis_port&gt;<\/code><\/pre>\n\n\n\n<p><span style=\"text-decoration: underline\">Example:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>host.docker.internal: 6379<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"410\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-12-1024x410.png\" alt=\"\" class=\"wp-image-29204\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-12-1024x410.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-12-300x120.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-12-768x307.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-12-1536x615.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-12.png 1876w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>It should work now!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-fix-getinstance-error-err-auth\">Fix getInstance error : ERR AUTH<\/h2>\n\n\n\n<p>This &#8220;error&#8221; message will display when you have not configured the default password user.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>So you know what to do as the error message is explicit ( check your configuration )<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"417\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-3-1024x417.png\" alt=\"\" class=\"wp-image-29155\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-3-1024x417.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-3-300x122.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-3-768x313.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-3-1536x625.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-3.png 1904w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Anyway, If you let the password part empty (click reset and remove the password) you can test with success<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"189\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-4-1024x189.png\" alt=\"\" class=\"wp-image-29157\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-4-1024x189.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-4-300x55.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-4-768x142.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-4.png 1519w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-fix-getinstance-error-denied\">Fix getInstance error : DENIED<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This specific message is more verbose,it propose you solution to fix it such as:<\/li>\n<\/ul>\n\n\n\n<p>a)disable the protected mode by many ways<\/p>\n\n\n\n<p>b)setup a bind address or authentication by password<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Here are the different ways to disable the protected mode:<\/li>\n<\/ul>\n\n\n\n<p>&#8220;DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to clients. In this mode connections are only accepted from the loopback interface. If you want to connect from external computers to Redis you may adopt one of the following solutions:<\/p>\n\n\n\n<p>1) Just disable protected mode sending the command &#8220;CONFIG SET protected-mode no&#8221; from the loopback interface by connecting to Redis from the same host the server is running, however MAKE SURE Redis is not publicly accessible from internet if you do so. Use CONFIG REWRITE to make this change permanent.<\/p>\n\n\n\n<p>2) Alternatively you can just disable the protected mode by editing the Redis configuration file, and setting the protected mode option to &#8216;no&#8217;, and then restarting the server.<\/p>\n\n\n\n<p>Go to your redis.cfg file and update the below line and set it to &#8220;no&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"764\" height=\"816\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-5.png\" alt=\"\" class=\"wp-image-29168\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-5.png 764w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/image-5-281x300.png 281w\" sizes=\"auto, (max-width: 764px) 100vw, 764px\" \/><\/figure>\n\n\n\n<p>3) If you started the server manually just for testing, restart it with the &#8216;<strong>&#8211;protected-mode no<\/strong>&#8216; option.<\/p>\n\n\n\n<p>4) Setup a bind address or an authentication password.<\/p>\n\n\n\n<p>Of course : <strong>You only need to do one of the above things<\/strong> in order for the server to start accepting connections from the outside.<\/p>\n\n\n\n<p><em>From Redis site<\/em><\/p>\n\n\n\n<p><span style=\"text-decoration: underline\">Example:<\/span><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"463\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER9-1024x463.png\" alt=\"\" class=\"wp-image-29158\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER9-1024x463.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER9-300x136.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER9-768x348.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER9-1536x695.png 1536w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER9.png 1887w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For our case we will disable protected mode as it is only for test purpose.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the below command on your Redis instance: <\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"953\" height=\"539\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER10.png\" alt=\"\" class=\"wp-image-29160\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER10.png 953w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER10-300x170.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER10-768x434.png 768w\" sizes=\"auto, (max-width: 953px) 100vw, 953px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Now you can use the save and test option it should work<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n\n\n\n<p>Now you know how to fix the main issues when defining your Redis instance in Grafana.<\/p>\n\n\n\n<p>If you are still stuck, you can also check on <a href=\"https:\/\/grafana.com\/\">Grafana official site<\/a> database you can find some useful info.<\/p>\n\n\n\n<p>Feel free to check <a href=\"https:\/\/www.dbi-services.com\/blog\/author\/nabilsaoual\/page\/5\/\">my other posts<\/a> and also the dbi bloggers.<\/p>\n\n\n\n<p>Next time we will see how to use Grafana with MongoDB.<\/p>\n\n\n\n<p>Stay tuned!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Last time, we have seen how to add a Redis plugin to Grafana in order to monitor and generate graphs and charts for your reports or analysis. During this configuration you may encounter some issues or miss some steps that will end to an error message. Today we will see some typical error message [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1739],"tags":[2257,2991],"type_dbi":[],"class_list":["post-29143","post","type-post","status-publish","format-standard","hentry","category-nosql","tag-grafana","tag-redis"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Redis: Redis X Grafana fix the &quot;get instance error&quot; message - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Redis: Redis X Grafana fix the &quot;get instance error&quot; message\" \/>\n<meta property=\"og:description\" content=\"Introduction Last time, we have seen how to add a Redis plugin to Grafana in order to monitor and generate graphs and charts for your reports or analysis. During this configuration you may encounter some issues or miss some steps that will end to an error message. Today we will see some typical error message [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-03T16:59:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-03T16:59:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5-1024x387.png\" \/>\n<meta name=\"author\" content=\"Middleware Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Middleware Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/\"},\"author\":{\"name\":\"Middleware Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"headline\":\"Redis: Redis X Grafana fix the &#8220;get instance error&#8221; message\",\"datePublished\":\"2023-11-03T16:59:34+00:00\",\"dateModified\":\"2023-11-03T16:59:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/\"},\"wordCount\":817,\"commentCount\":1,\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5-1024x387.png\",\"keywords\":[\"Grafana\",\"Redis\"],\"articleSection\":[\"NoSQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/\",\"name\":\"Redis: Redis X Grafana fix the \\\"get instance error\\\" message - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5-1024x387.png\",\"datePublished\":\"2023-11-03T16:59:34+00:00\",\"dateModified\":\"2023-11-03T16:59:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#primaryimage\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5.png\",\"contentUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5.png\",\"width\":1899,\"height\":718},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Redis: Redis X Grafana fix the &#8220;get instance error&#8221; message\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\",\"name\":\"Middleware Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"caption\":\"Middleware Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Redis: Redis X Grafana fix the \"get instance error\" message - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/","og_locale":"en_US","og_type":"article","og_title":"Redis: Redis X Grafana fix the \"get instance error\" message","og_description":"Introduction Last time, we have seen how to add a Redis plugin to Grafana in order to monitor and generate graphs and charts for your reports or analysis. During this configuration you may encounter some issues or miss some steps that will end to an error message. Today we will see some typical error message [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/","og_site_name":"dbi Blog","article_published_time":"2023-11-03T16:59:34+00:00","article_modified_time":"2023-11-03T16:59:36+00:00","og_image":[{"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5-1024x387.png","type":"","width":"","height":""}],"author":"Middleware Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Middleware Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/"},"author":{"name":"Middleware Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"headline":"Redis: Redis X Grafana fix the &#8220;get instance error&#8221; message","datePublished":"2023-11-03T16:59:34+00:00","dateModified":"2023-11-03T16:59:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/"},"wordCount":817,"commentCount":1,"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5-1024x387.png","keywords":["Grafana","Redis"],"articleSection":["NoSQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/","url":"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/","name":"Redis: Redis X Grafana fix the \"get instance error\" message - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5-1024x387.png","datePublished":"2023-11-03T16:59:34+00:00","dateModified":"2023-11-03T16:59:36+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/11\/RGDOCKER5.png","width":1899,"height":718},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/redis-redis-x-grafana-fix-the-get-instance-error-message\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Redis: Redis X Grafana fix the &#8220;get instance error&#8221; message"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1","name":"Middleware Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","caption":"Middleware Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/29143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=29143"}],"version-history":[{"count":43,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/29143\/revisions"}],"predecessor-version":[{"id":29244,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/29143\/revisions\/29244"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=29143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=29143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=29143"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=29143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}