文件操作 - annotations.editor.html
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/plugins/datasource/prometheus/partials/annotations.editor.html
编辑文件内容
<div class="gf-form-group"> <div class="gf-form"> <span class="gf-form-label width-10">Search expression</span> <input type="text" class="gf-form-input" ng-model='ctrl.annotation.expr' placeholder="ALERTS"></input> </div> <div class="gf-form"> <span class="gf-form-label width-10">step</span> <input type="text" class="gf-form-input max-width-6" ng-model='ctrl.annotation.step' placeholder="{{::ctrl.stepDefaultValuePlaceholder}}"></input> </div> </div> <div class="gf-form-group"> <h5 class="section-heading">Field formats</h5> <div class="gf-form-inline"> <div class="gf-form"> <span class="gf-form-label width-5">Title</span> <input type="text" class="gf-form-input max-width-9" ng-model='ctrl.annotation.titleFormat' placeholder="alertname"></input> </div> <div class="gf-form"> <span class="gf-form-label width-5">Tags</span> <input type="text" class="gf-form-input max-width-9" ng-model='ctrl.annotation.tagKeys' placeholder="label1,label2"></input> </div> <div class="gf-form-inline"> <div class="gf-form"> <span class="gf-form-label width-5">Text</span> <input type="text" class="gf-form-input max-width-9" ng-model='ctrl.annotation.textFormat' placeholder="instance"></input> </div> </div> </div> <h5 class="section-heading">Other options</h5> <div class="gf-form-inline"> <div class="gf-form"> <gf-form-switch class="gf-form" label="Series value as timestamp" label-class="width-14" checked="ctrl.annotation.useValueForTime" tooltip="The unit of timestamp is milliseconds. If the unit of the series value is seconds, multiply its range vector by 1000."> </gf-form-switch> </div> </div> </div>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件