|
|
@@ -29,13 +29,19 @@ Name | Description
|
|
|
*Name* | The data source name. This is how you refer to the data source in panels & queries.
|
|
|
*Default* | Default data source means that it will be pre-selected for new panels.
|
|
|
*Url* | The HTTP protocol, IP, and port of your Elasticsearch server.
|
|
|
-*Access* | Proxy = access via Grafana backend, Direct = access directly from browser.
|
|
|
+*Access* | Server (default) = URL needs to be accessible from the Grafana backend/server, Browser = URL needs to be accessible from the browser.
|
|
|
|
|
|
-Proxy access means that the Grafana backend will proxy all requests from the browser, and send them on to the Data Source. This is useful because it can eliminate CORS (Cross Origin Site Resource) issues, as well as eliminate the need to disseminate authentication to the browser.
|
|
|
+Access mode controls how requests to the data source will be handled. Server should be the preferred way if nothing else stated.
|
|
|
|
|
|
-### Direct access
|
|
|
+### Server access mode (Default)
|
|
|
|
|
|
-If you select direct access you must update your Elasticsearch configuration to allow other domains to access
|
|
|
+All requests will be made from the browser to Grafana backend/server which in turn will forward the requests to the data source and by that circumvent possible Cross-Origin Resource Sharing (CORS) requirements. The URL needs to be accessible from the grafana backend/server if you select this access mode.
|
|
|
+
|
|
|
+### Browser (Direct) access
|
|
|
+
|
|
|
+All requests will be made from the browser directly to the data source and may be subject to Cross-Origin Resource Sharing (CORS) requirements. The URL needs to be accessible from the browser if you select this access mode.
|
|
|
+
|
|
|
+If you select Browser access you must update your Elasticsearch configuration to allow other domains to access
|
|
|
Elasticsearch from the browser. You do this by specifying these to options in your **elasticsearch.yml** config file.
|
|
|
|
|
|
```bash
|
|
|
@@ -45,7 +51,7 @@ http.cors.allow-origin: "*"
|
|
|
|
|
|
### Index settings
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
Here you can specify a default for the `time field` and specify the name of your Elasticsearch index. You can use
|
|
|
a time pattern for the index name or a wildcard.
|
|
|
@@ -57,7 +63,7 @@ are supported.
|
|
|
|
|
|
## Metric Query editor
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
The Elasticsearch query editor allows you to select multiple metrics and group by multiple terms or filters. Use the plus and minus icons to the right to add/remove
|
|
|
metrics or group by clauses. Some metrics and group by clauses haves options, click the option text to expand the row to view and edit metric or group by options.
|