{"id":3644,"date":"2019-07-16T14:01:38","date_gmt":"2019-07-16T11:01:38","guid":{"rendered":"https:\/\/kifarunix.com\/?p=3644"},"modified":"2024-03-12T07:33:58","modified_gmt":"2024-03-12T04:33:58","slug":"install-grafana-plugins-behind-a-proxy-server","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-grafana-plugins-behind-a-proxy-server\/","title":{"rendered":"Install Grafana Plugins Behind a Proxy server"},"content":{"rendered":"\n<p>This is a quick guide on how to install <a aria-label=\"Grafana plugins (opens in a new tab)\" href=\"https:\/\/grafana.com\/grafana\/plugins\" target=\"_blank\" rel=\"noreferrer noopener\">Grafana plugins<\/a> behind a proxy server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing Grafana Plugins Behind a Proxy server<\/h2>\n\n\n\n<p>If you have tried, to install or try to list available Grafana plugins when you are behind a proxy, you might have experienced errors as;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>grafana-cli plugins list-remote<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Failed to send requesterrorGet https:\/\/grafana.com\/api\/plugins\/repo: net\/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)\nError: \u2717 Failed to send request. error: Get https:\/\/grafana.com\/api\/plugins\/repo: net\/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Configure System Proxy<\/h3>\n\n\n\n<p>Simply configure your system proxy by executing the command below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo \"export http_proxy='http:\/\/192.168.43.3:3128'\" | tee \/etc\/profile.d\/proxy.sh<\/code><\/pre>\n\n\n\n<p>If your proxy server supports both HTTP and HTTPS, then you can add the line below;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo \"export https_proxy='https:\/\/192.168.43.3:3128'\" | tee -a \/etc\/profile.d\/proxy.sh<\/code><\/pre>\n\n\n\n<p>However, if you encounter the error below;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Failed to send request: Get https:\/\/grafana.com\/api\/plugins\/repo\/grafana-worldmap-panel: proxyconnect tcp: tls: first record does not look like a TLS handshake\nError: \u2717 Failed to send request. error: Get https:\/\/grafana.com\/api\/plugins\/repo\/grafana-worldmap-panel: proxyconnect tcp: tls: first record does not look like a TLS handshake<\/code><\/pre>\n\n\n\n<p>Remove the https line from the proxy configuration file created above.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sed -i '\/https\/d' \/etc\/profile.d\/proxy.sh<\/code><\/pre>\n\n\n\n<p>Next, source the proxy configuration file to refresh the enviroment variables.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>source \/etc\/profile.d\/proxy.sh<\/code><\/pre>\n\n\n\n<p>You can as well, log out and log in to apply the settings.<\/p>\n\n\n\n<p>Verify your Proxy configurations.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo $http_proxy\nhttp:&#47;&#47;192.168.43.3:3128<\/code><\/pre>\n\n\n\n<p>There are other multiple ways of setting system-wide proxy. See the link below;<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/how-to-set-system-wide-proxy-in-ubuntu-18-04\/\" target=\"_blank\">How to Set System Wide Proxy in Ubuntu 18.04<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Install Grafana Plugins<\/h3>\n\n\n\n<p>Once you have setup your system proxy, you can now install Grafana plugins. For example, to list available grafana plugins;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>grafana-cli plugins list-remote<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\nid: abhisant-druid-datasource version: 0.0.5\nid: agenty-flowcharting-panel version: 0.3.0\nid: akumuli-datasource version: 1.2.8\nid: alexanderzobnin-zabbix-app version: 3.10.2\nid: andig-darksky-datasource version: 1.0.0\nid: ayoungprogrammer-finance-datasource version: 1.0.0\nid: belugacdn-app version: 1.2.0\nid: bessler-pictureit-panel version: 1.0.0\nid: blackmirror1-singlestat-math-panel version: 1.1.7\nid: blackmirror1-statusbygroup-panel version: 1.1.1\nid: bosun-app version: 0.0.28\n...\n<\/code><\/pre>\n\n\n\n<p>So to install a plugin, for example the <strong>grafana-worldmap-panel<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>grafana-cli plugins install grafana-worldmap-panel<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\ninstalling grafana-worldmap-panel @ 0.2.0\nfrom url: https:\/\/grafana.com\/api\/plugins\/grafana-worldmap-panel\/versions\/0.2.0\/download\ninto: \/var\/lib\/grafana\/plugins\n\n\u2714 Installed grafana-worldmap-panel successfully \n\nRestart grafana after installing plugins . &lt;service grafana-server restart&gt;\n<\/code><\/pre>\n\n\n\n<p>Once the installation is done, you need to restart Grafana server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart grafana-server<\/code><\/pre>\n\n\n\n<p>You can list all installed plugins by running the command;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>grafana-cli plugins ls<\/code><\/pre>\n\n\n\n<pre class=\"scroll-box\"><code>\ninstalled plugins:\nbriangann-datatable-panel @ 0.0.6 \ngrafana-piechart-panel @ 1.3.6 \ngrafana-worldmap-panel @ 0.2.0 \n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Related Tutorials;<\/h3>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/integrate-prometheus-with-grafana-for-monitoring\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Integrate Prometheus with Grafana for Monitoring<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/monitor-squid-logs-with-grafana-and-graylog\/\" target=\"_blank\">Monitor Squid logs with Grafana and Graylog<\/a><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-grafana-6-2-x-on-ubuntu-18-04-debian-9\/\" target=\"_blank\">Install Grafana 6.2.x on Ubuntu 18.04\/Debian 9<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-grafana-metrics-monitoring-tool-on-debian-9\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install Grafana Metrics Monitoring Tool on Debian 9<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-grafana-monitoring-tool-on-fedora-29\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install Grafana Monitoring Tool on Fedora 29<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a quick guide on how to install Grafana plugins behind a proxy server. Installing Grafana Plugins Behind a Proxy server If you have<\/p>\n","protected":false},"author":1,"featured_media":15918,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[72,301],"tags":[302,1038,1037,6475,252],"class_list":["post-3644","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-monitoring","category-grafana","tag-grafana","tag-grafana-cli","tag-grafana-plugins","tag-install-grafana-plugins-via-proxy-server","tag-proxy","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3644"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=3644"}],"version-history":[{"count":3,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3644\/revisions"}],"predecessor-version":[{"id":21175,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/3644\/revisions\/21175"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/15918"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=3644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=3644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=3644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}