加入自定义指标支持
This commit is contained in:
@@ -593,7 +593,25 @@
|
||||
<option value="1">显示 (Show)</option>
|
||||
<option value="0">隐藏 (Hide)</option>
|
||||
</select>
|
||||
<p style="font-size: 0.72rem; color: var(--text-muted); margin-top: 6px;">开启后,点击服务器详情时会显示该服务器的公网 IP 地址(需 node_exporter 提供支持)。</p>
|
||||
<p style="font-size: 0.72rem; color: var(--text-muted); margin-top: 6px;">开启后,点击服务器详情时会显示该服务器的公网 IP 地址。</p>
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 25px; padding-top: 15px; border-top: 1px dashed var(--border-color);">
|
||||
<h4 style="margin-bottom: 12px; color: var(--text-secondary); font-size: 0.95rem;">高级指标配置 (可选)</h4>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="ipMetricNameInput">IP 发现指标 (Metric Name)</label>
|
||||
<input type="text" id="ipMetricNameInput" placeholder="例如: node_network_address_info"
|
||||
style="padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); width: 100%;">
|
||||
<p style="font-size: 0.72rem; color: var(--text-muted); margin-top: 6px;">留空则使用 Prometheus Target 自动发现。若需兼容 <code>node_exporter</code> 自定义指标(如 textfile),请在此输入指标名。</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group" style="margin-top: 12px;">
|
||||
<label for="ipLabelNameInput">IP 提取标签 (Label Name)</label>
|
||||
<input type="text" id="ipLabelNameInput" placeholder="address"
|
||||
style="padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); width: 100%;">
|
||||
<p style="font-size: 0.72rem; color: var(--text-muted); margin-top: 6px;">从该指标的哪个标签提取 IP?默认为 <code>address</code>。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions" style="margin-top: 25px; display: flex; justify-content: flex-end;">
|
||||
<button class="btn btn-add" id="btnSaveSecuritySettings">保存安全设置</button>
|
||||
|
||||
Reference in New Issue
Block a user