Grafana and IIS – Windows Server Installation Setup and Configuration



Grafana and IIS – Windows Server Installation Setup and Configuration

Grafana and IIS - Windows Server Installation Setup and Configuration

Step by Step – How to Install Grafana with IIS using URL Rewrite and Application Request Routing
Preparation
1. Get the Software
a. IIS URL Rewrite – https://www.iis.net/downloads/microsoft/url-rewrite
b. Application Request Routing – https://www.iis.net/downloads/microsoft/application-request-routing
c. Grafana Enterprise – https://grafana.com/grafana/download?platform=windows
2. Configure IIS WebSite
3. Configure Host file – C:WindowsSystem32driversetc

Installing Graphana
4. Configure ARR
a. IIS Server Level
b. Open ARR then Server Proxy Settings
c. Check Enable Proxy and Apply
5. Configure URL Rewrite
a. pattern: grafana(/)?(.*)
b. case sensitivity: check the Ignore case checkbox
c. URL redirect: http://domain:port/{R:2}
d. Query String: check the Append query string checkbox
e. Rule Workflow: check the Stop processing of subsequent rules checkbox
6. Configure Grafana –
a. Go to C:Program FilesGrafanaLabsgrafanaconf
b. Copy and rename sample.ini to custom.ini
c. Uncomment
protocol = http
http_port = 8888
domain = grafana.codecowboy.org
root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana
serve_from_sub_path = true
type = sqlite3
7. Login – default admin is (admin, admin) username and password
8. Load Balanced Scenarios
a. A multi-user database is required using mySQL or Postgres
b. Otherwise point secondary host to primary in the host file as a backup server