41 | Please enter your Grafana URL.
42 | Please enter in the form of http://localhost:XXXX/
43 | or http://[IP ADDRESS]/ or http://[URL]/ .
44 | Please do not add anything after the final / .
45 |
46 | setCurrentGrafUrl(input.target.value)} value={currentGrafUrl}/>
47 |
);
48 | };
49 | return (
50 |
51 |
57 |
);
58 | };
59 | export default InitialSetup;
60 |
--------------------------------------------------------------------------------
/grafana/customConfig.ini:
--------------------------------------------------------------------------------
1 | ##################### Grafana Configuration Example #####################
2 | #
3 | # Everything has defaults so you only need to uncomment things you want to
4 | # change
5 |
6 | # possible values : production, development
7 | ;app_mode = production
8 |
9 | # instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty
10 | ;instance_name = ${HOSTNAME}
11 |
12 | # force migration will run migrations that might cause dataloss
13 | ;force_migration = false
14 |
15 | #################################### Paths ####################################
16 | [paths]
17 | # Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
18 | ;data = /var/lib/grafana
19 |
20 | # Temporary files in `data` directory older than given duration will be removed
21 | ;temp_data_lifetime = 24h
22 |
23 | # Directory where grafana can store logs
24 | ;logs = /var/log/grafana
25 |
26 | # Directory where grafana will automatically scan and look for plugins
27 | ;plugins = /var/lib/grafana/plugins
28 |
29 | # folder that contains provisioning config files that grafana will apply on startup and while running.
30 | ;provisioning = conf/provisioning
31 |
32 | #################################### Server ####################################
33 | [server]
34 | # Protocol (http, https, h2, socket)
35 | ;protocol = http
36 |
37 | # The ip address to bind to, empty will bind to all interfaces
38 | ;http_addr =
39 |
40 | # The http port to use
41 | ;http_port = 3000
42 |
43 | # The public facing domain name used to access grafana from a browser
44 | ;domain = localhost
45 |
46 | # Redirect to correct domain if host header does not match domain
47 | # Prevents DNS rebinding attacks
48 | ;enforce_domain = false
49 |
50 | # The full public facing url you use in browser, used for redirects and emails
51 | # If you use reverse proxy and sub path specify full url (with sub path)
52 | ;root_url = %(protocol)s://%(domain)s:%(http_port)s/
53 |
54 | # Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons.
55 | ;serve_from_sub_path = false
56 |
57 | # Log web requests
58 | ;router_logging = false
59 |
60 | # the path relative working path
61 | ;static_root_path = public
62 |
63 | # enable gzip
64 | ;enable_gzip = false
65 |
66 | # https certs & key file
67 | ;cert_file =
68 | ;cert_key =
69 |
70 | # Unix socket path
71 | ;socket =
72 |
73 | # CDN Url
74 | ;cdn_url =
75 |
76 | # Sets the maximum time using a duration format (5s/5m/5ms) before timing out read of an incoming request and closing idle connections.
77 | # `0` means there is no timeout for reading the request.
78 | ;read_timeout = 0
79 |
80 | #################################### Database ####################################
81 | [database]
82 | # You can configure the database connection by specifying type, host, name, user and password
83 | # as separate properties or as on string using the url properties.
84 |
85 | # Either "mysql", "postgres" or "sqlite3", it's your choice
86 | ;type = sqlite3
87 | ;host = 127.0.0.1:3306
88 | ;name = grafana
89 | ;user = root
90 | # If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
91 | ;password =
92 |
93 | # Use either URL or the previous fields to configure the database
94 | # Example: mysql://user:secret@host:port/database
95 | ;url =
96 |
97 | # For "postgres" only, either "disable", "require" or "verify-full"
98 | ;ssl_mode = disable
99 |
100 | # Database drivers may support different transaction isolation levels.
101 | # Currently, only "mysql" driver supports isolation levels.
102 | # If the value is empty - driver's default isolation level is applied.
103 | # For "mysql" use "READ-UNCOMMITTED", "READ-COMMITTED", "REPEATABLE-READ" or "SERIALIZABLE".
104 | ;isolation_level =
105 |
106 | ;ca_cert_path =
107 | ;client_key_path =
108 | ;client_cert_path =
109 | ;server_cert_name =
110 |
111 | # For "sqlite3" only, path relative to data_path setting
112 | ;path = grafana.db
113 |
114 | # Max idle conn setting default is 2
115 | ;max_idle_conn = 2
116 |
117 | # Max conn setting default is 0 (mean not set)
118 | ;max_open_conn =
119 |
120 | # Connection Max Lifetime default is 14400 (means 14400 seconds or 4 hours)
121 | ;conn_max_lifetime = 14400
122 |
123 | # Set to true to log the sql calls and execution times.
124 | ;log_queries =
125 |
126 | # For "sqlite3" only. cache mode setting used for connecting to the database. (private, shared)
127 | ;cache_mode = private
128 |
129 | # For "mysql" only if migrationLocking feature toggle is set. How many seconds to wait before failing to lock the database for the migrations, default is 0.
130 | ;locking_attempt_timeout_sec = 0
131 |
132 | ################################### Data sources #########################
133 | [datasources]
134 | # Upper limit of data sources that Grafana will return. This limit is a temporary configuration and it will be deprecated when pagination will be introduced on the list data sources API.
135 | ;datasource_limit = 5000
136 |
137 | #################################### Cache server #############################
138 | [remote_cache]
139 | # Either "redis", "memcached" or "database" default is "database"
140 | ;type = database
141 |
142 | # cache connectionstring options
143 | # database: will use Grafana primary database.
144 | # redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=0,ssl=false`. Only addr is required. ssl may be 'true', 'false', or 'insecure'.
145 | # memcache: 127.0.0.1:11211
146 | ;connstr =
147 |
148 | #################################### Data proxy ###########################
149 | [dataproxy]
150 |
151 | # This enables data proxy logging, default is false
152 | ;logging = false
153 |
154 | # How long the data proxy waits to read the headers of the response before timing out, default is 30 seconds.
155 | # This setting also applies to core backend HTTP data sources where query requests use an HTTP client with timeout set.
156 | ;timeout = 30
157 |
158 | # How long the data proxy waits to establish a TCP connection before timing out, default is 10 seconds.
159 | ;dialTimeout = 10
160 |
161 | # How many seconds the data proxy waits before sending a keepalive probe request.
162 | ;keep_alive_seconds = 30
163 |
164 | # How many seconds the data proxy waits for a successful TLS Handshake before timing out.
165 | ;tls_handshake_timeout_seconds = 10
166 |
167 | # How many seconds the data proxy will wait for a server's first response headers after
168 | # fully writing the request headers if the request has an "Expect: 100-continue"
169 | # header. A value of 0 will result in the body being sent immediately, without
170 | # waiting for the server to approve.
171 | ;expect_continue_timeout_seconds = 1
172 |
173 | # Optionally limits the total number of connections per host, including connections in the dialing,
174 | # active, and idle states. On limit violation, dials will block.
175 | # A value of zero (0) means no limit.
176 | ;max_conns_per_host = 0
177 |
178 | # The maximum number of idle connections that Grafana will keep alive.
179 | ;max_idle_connections = 100
180 |
181 | # How many seconds the data proxy keeps an idle connection open before timing out.
182 | ;idle_conn_timeout_seconds = 90
183 |
184 | # If enabled and user is not anonymous, data proxy will add X-Grafana-User header with username into the request, default is false.
185 | ;send_user_header = false
186 |
187 | # Limit the amount of bytes that will be read/accepted from responses of outgoing HTTP requests.
188 | ;response_limit = 0
189 |
190 | # Limits the number of rows that Grafana will process from SQL data sources.
191 | ;row_limit = 1000000
192 |
193 | #################################### Analytics ####################################
194 | [analytics]
195 | # Server reporting, sends usage counters to stats.grafana.org every 24 hours.
196 | # No ip addresses are being tracked, only simple counters to track
197 | # running instances, dashboard and error counts. It is very helpful to us.
198 | # Change this option to false to disable reporting.
199 | ;reporting_enabled = true
200 |
201 | # The name of the distributor of the Grafana instance. Ex hosted-grafana, grafana-labs
202 | ;reporting_distributor = grafana-labs
203 |
204 | # Set to false to disable all checks to https://grafana.com
205 | # for new versions of grafana. The check is used
206 | # in some UI views to notify that a grafana update exists.
207 | # This option does not cause any auto updates, nor send any information
208 | # only a GET request to https://raw.githubusercontent.com/grafana/grafana/main/latest.json to get the latest version.
209 | ;check_for_updates = true
210 |
211 | # Set to false to disable all checks to https://grafana.com
212 | # for new versions of plugins. The check is used
213 | # in some UI views to notify that a plugin update exists.
214 | # This option does not cause any auto updates, nor send any information
215 | # only a GET request to https://grafana.com to get the latest versions.
216 | ;check_for_plugin_updates = true
217 |
218 | # Google Analytics universal tracking code, only enabled if you specify an id here
219 | ;google_analytics_ua_id =
220 |
221 | # Google Analytics 4 tracking code, only enabled if you specify an id here
222 | ;google_analytics_4_id =
223 |
224 | # Google Tag Manager ID, only enabled if you specify an id here
225 | ;google_tag_manager_id =
226 |
227 | # Rudderstack write key, enabled only if rudderstack_data_plane_url is also set
228 | ;rudderstack_write_key =
229 |
230 | # Rudderstack data plane url, enabled only if rudderstack_write_key is also set
231 | ;rudderstack_data_plane_url =
232 |
233 | # Rudderstack SDK url, optional, only valid if rudderstack_write_key and rudderstack_data_plane_url is also set
234 | ;rudderstack_sdk_url =
235 |
236 | # Rudderstack Config url, optional, used by Rudderstack SDK to fetch source config
237 | ;rudderstack_config_url =
238 |
239 | # Controls if the UI contains any links to user feedback forms
240 | ;feedback_links_enabled = true
241 |
242 | #################################### Security ####################################
243 | [security]
244 | # disable creation of admin user on first start of grafana
245 | ;disable_initial_admin_creation = false
246 |
247 | # default admin user, created on startup
248 | ;admin_user = admin
249 |
250 | # default admin password, can be changed before first start of grafana, or in profile settings
251 | ;admin_password = admin
252 |
253 | # default admin email, created on startup
254 | ;admin_email = admin@localhost
255 |
256 | # used for signing
257 | ;secret_key = SW2YcwTIb9zpOOhoPsMm
258 |
259 | # current key provider used for envelope encryption, default to static value specified by secret_key
260 | ;encryption_provider = secretKey.v1
261 |
262 | # list of configured key providers, space separated (Enterprise only): e.g., awskms.v1 azurekv.v1
263 | ;available_encryption_providers =
264 |
265 | # disable gravatar profile images
266 | ;disable_gravatar = false
267 |
268 | # data source proxy whitelist (ip_or_domain:port separated by spaces)
269 | ;data_source_proxy_whitelist =
270 |
271 | # disable protection against brute force login attempts
272 | ;disable_brute_force_login_protection = false
273 |
274 | # set to true if you host Grafana behind HTTPS. default is false.
275 | ;cookie_secure = false
276 |
277 | # set cookie SameSite attribute. defaults to `lax`. can be set to "lax", "strict", "none" and "disabled"
278 | ;cookie_samesite = lax
279 |
280 | # set to true if you want to allow browsers to render Grafana in a ,