config.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. <span class="gf-form-select-wrapper">
  13. <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>
  14. </span>
  15. </div>
  16. </div>
  17. <div class="gf-form max-width-25">
  18. <span class="gf-form-label width-9">Time field name</span>
  19. <input class="gf-form-input" type="text" ng-model='ctrl.current.jsonData.timeField' placeholder="" required ng-init=""></input>
  20. </div>
  21. <div class="gf-form">
  22. <span class="gf-form-label width-9">Version</span>
  23. <span class="gf-form-select-wrapper">
  24. <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" ng-change="ctrl.versionChanged()"></select>
  25. </span>
  26. </div>
  27. <div class="gf-form max-width-30" ng-if="ctrl.current.jsonData.esVersion>=56">
  28. <span class="gf-form-label width-15">Max concurrent Shard Requests</span>
  29. <input class="gf-form-input" type="text" ng-model='ctrl.current.jsonData.maxConcurrentShardRequests' placeholder="" required></input>
  30. </div>
  31. <div class="gf-form-inline">
  32. <div class="gf-form">
  33. <span class="gf-form-label width-9">Min time interval</span>
  34. <input
  35. type="text"
  36. class="gf-form-input width-6 gf-form-input--has-help-icon"
  37. ng-model="ctrl.current.jsonData.timeInterval"
  38. spellcheck='false'
  39. placeholder="10s"
  40. ng-pattern="/^\d+(ms|[Mwdhmsy])$/"
  41. ></input>
  42. <info-popover mode="right-absolute">
  43. A lower limit for the auto group by time interval. Recommended to be set to write frequency,
  44. for example <code>1m</code> if your data is written every minute.
  45. </info-popover>
  46. </div>
  47. </div>
  48. </div>
  49. <b>Logs</b>
  50. <div class="gf-form-group">
  51. <div class="gf-form max-width-30">
  52. <span class="gf-form-label width-11">Message field name</span>
  53. <input class="gf-form-input" type="text" ng-model='ctrl.current.jsonData.logMessageField' placeholder="_source" />
  54. </div>
  55. <div class="gf-form max-width-30">
  56. <span class="gf-form-label width-11">Level field name</span>
  57. <input class="gf-form-input" type="text" ng-model='ctrl.current.jsonData.logLevelField' placeholder="" />
  58. </div>
  59. </div>