config.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <h3 class="page-heading">MSSQL Connection</h3>
  2. <div class="gf-form-group">
  3. <div class="gf-form max-width-30">
  4. <span class="gf-form-label width-7">Host</span>
  5. <input type="text" class="gf-form-input" ng-model='ctrl.current.url' placeholder="localhost:1433" bs-typeahead="{{['localhost:1433', '192.168.0.101:1433']}}" required></input>
  6. </div>
  7. <div class="gf-form max-width-30">
  8. <span class="gf-form-label width-7">Database</span>
  9. <input type="text" class="gf-form-input" ng-model='ctrl.current.database' placeholder="database name" required></input>
  10. </div>
  11. <div class="gf-form-inline">
  12. <div class="gf-form max-width-15">
  13. <span class="gf-form-label width-7">User</span>
  14. <input type="text" class="gf-form-input" ng-model='ctrl.current.user' placeholder="user"></input>
  15. </div>
  16. <div class="gf-form max-width-15">
  17. <span class="gf-form-label width-7">Password</span>
  18. <input type="password" class="gf-form-input" ng-model='ctrl.current.password' placeholder="password"></input>
  19. </div>
  20. </div>
  21. </div>
  22. <div class="gf-form-group">
  23. <div class="grafana-info-box">
  24. <h5>User Permission</h5>
  25. <p>
  26. The database user should only be granted SELECT permissions on the specified database &amp; tables you want to query.
  27. Grafana does not validate that queries are safe so queries can contain any SQL statement. For example, statements
  28. like <code>USE otherdb;</code> and <code>DROP TABLE user;</code> would be executed. To protect against this we
  29. <strong>Highly</strong> recommmend you create a specific MSSQL user with restricted permissions.
  30. Checkout the <a class="external-link" target="_blank" href="http://docs.grafana.org/features/datasources/mssql/">MSSQL Data Source Docs</a> for more information.
  31. </p>
  32. </div>
  33. </div>