Prometheus: Throw error on direct access (#50162)

* Disable direct access

* Hide access select if Server mode is already selected

* Update docs

* Add more tests

Co-authored-by: Beto Muniz <contato@betomuniz.com>
This commit is contained in:
Andrej Ocenas
2022-08-17 09:37:29 -03:00
committed by GitHub
co-authored by Beto Muniz
parent b5cb7738da
commit f30795b088
5 changed files with 84 additions and 15 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ To access Prometheus settings, hover your mouse over the **Configuration** (gear
| `Name` | The data source name. This is how you refer to the data source in panels and queries. |
| `Default` | Default data source that is pre-selected for new panels. |
| `Url` | The URL of your Prometheus server, for example, `http://prometheus.example.org:9090`. |
| `Access` | Server (default) = URL needs to be accessible from the Grafana backend/server, Browser = URL needs to be accessible from the browser. **Note**: Browser (direct) access is deprecated and will be removed in a future release. |
| `Access` | Only Server access mode is functional. If Server mode is already selected this option is hidden. Otherwise change to Server mode to prevent errors. |
| `Basic Auth` | Enable basic authentication to the Prometheus data source. |
| `User` | User name for basic authentication. |
| `Password` | Password for basic authentication. |