如何自定义静态页面上的链接?

问题描述

我想在下面自定义这两个链接。但没有找到任何配置。

enter image description here

我将YAML文件中黑盒导出程序的模块名称http_2xx更改为http_2xx_check。所以原来的链接 http://localhost:9115/probe?target=prometheus.io&module=http_2xx不起作用。当我导航到链接时,它将给我:

未知模块“ http_2xx”

blackBox.yml

modules:
  http_2xx_check:
    prober: http
    timeout: 5s
    http:
      valid_status_codes: []
      method: GET
      preferred_ip_protocol: "ip4"

如何修改静态页面上的链接?更改HTML src标签和文本的a属性的值。

预期:

<a href="probe?target=prometheus.io&amp;module=http_2xx_check">Probe prometheus.io for http_2xx_check</a>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)