config.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <datasource-http-settings current="ctrl.current" suggest-url="http://localhost:9200">
  2. </datasource-http-settings>
  3. <h3 class="page-heading">Elasticsearch details</h3>
  4. <div class="gf-form-group">
  5. <div class="gf-form-inline">
  6. <div class="gf-form max-width-25">
  7. <span class="gf-form-label width-9">Index name</span>
  8. <input class="gf-form-input" type="text" ng-model='ctrl.current.database' placeholder="" required></input>
  9. </div>
  10. <div class="gf-form width-14">
  11. <span class="gf-form-label width-9">Pattern</span>
  12. <select class="gf-form-input gf-size-auto" ng-model="ctrl.current.jsonData.interval" ng-options="f.value as f.name for f in ctrl.indexPatternTypes" ng-change="ctrl.indexPatternTypeChanged()" ></select>
  13. </div>
  14. </div>
  15. <div class="gf-form max-width-25">
  16. <span class="gf-form-label width-9">Time field name</span>
  17. <input class="gf-form-input" type="text" ng-model='ctrl.current.jsonData.timeField' placeholder="" required ng-init=""></input>
  18. </div>
  19. <div class="gf-form">
  20. <span class="gf-form-label width-9">Version</span>
  21. <select class="gf-form-input gf-size-auto" ng-model="ctrl.current.jsonData.esVersion" ng-options="f.value as f.name for f in ctrl.esVersions"></select>
  22. </div>
  23. <div class="gf-form-inline">
  24. <div class="gf-form">
  25. <span class="gf-form-label width-9">Min interval</span>
  26. <input type="text" class="gf-form-input width-6" ng-model="ctrl.current.jsonData.timeInterval" spellcheck='false' placeholder="10s"></input>
  27. <info-popover mode="right-absolute">
  28. A lower limit for the auto group by time interval. Recommended to be set to write frequency,
  29. for example <code>1m</code> if your data is written every minute.
  30. </info-popover>
  31. </div>
  32. </div>
  33. </div>