annotations.editor.html 1.2 KB

12345678910111213141516171819202122232425262728
  1. <loki-annotations-query-editor
  2. expr="ctrl.annotation.expr"
  3. max-lines="ctrl.annotation.maxLines"
  4. instant="ctrl.annotation.instant"
  5. on-change="ctrl.onQueryChange"
  6. datasource="ctrl.datasource"
  7. >
  8. </loki-annotations-query-editor>
  9. <div class="gf-form-group">
  10. <h5 class="section-heading">Field formats<tip>For title and text fields, use either the name or a pattern. For example, {{instance}} is replaced with label value for the label instance.</tip></h5>
  11. <div class="gf-form-inline">
  12. <div class="gf-form">
  13. <span class="gf-form-label width-5">Title</span>
  14. <input type="text" class="gf-form-input max-width-9" ng-model='ctrl.annotation.titleFormat' placeholder="alertname"></input>
  15. </div>
  16. <div class="gf-form">
  17. <span class="gf-form-label width-5">Tags</span>
  18. <input type="text" class="gf-form-input max-width-9" ng-model='ctrl.annotation.tagKeys' placeholder="label1,label2"></input>
  19. </div>
  20. <div class="gf-form-inline">
  21. <div class="gf-form">
  22. <span class="gf-form-label width-5">Text</span>
  23. <input type="text" class="gf-form-input max-width-9" ng-model='ctrl.annotation.textFormat' placeholder="instance"></input>
  24. </div>
  25. </div>
  26. </div>
  27. </div>