Grafana and IIS - Windows Server Installation Setup and Configuration
HTML-код
- Опубликовано: 11 сен 2024
- 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 - www.iis.net/do...
b. Application Request Routing - www.iis.net/do...
c. Grafana Enterprise - grafana.com/gr...
2. Configure IIS WebSite
3. Configure Host file - C:\Windows\System32\drivers\etc
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: 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 Files\GrafanaLabs\grafana\conf
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
I followed all the steps but I received in the browser the error ERR_TOO_MANY_REDIRECTS.
I use the Grafana version 10.0.0
You have to set the Rewrite URL to {R:0}