Skip to content

Commit

Permalink
fix: metrics and web-chat-x-express
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohaodu committed Jun 2, 2024
1 parent 9480bb9 commit ae38359
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/web-chat-x-express/src/controllers/libp2p.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default class Libp2pManager {
(this.libp2p.services.dht as KadDHT).setMode("server");
// 获取 Relay 节点的监听地址,并确保找到一个 IPv4 地址
const listenMultiaddr = this.libp2p.getMultiaddrs();
false && this.handleListenEvent();
this.handleListenEvent();
this.handleProtocol();
console.log("Relay service started on:");
listenMultiaddr.forEach((addr) => {
Expand Down
8 changes: 4 additions & 4 deletions prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ rule_files:
- "node_down.yml"

scrape_configs:
# # 自监控 Prometheus 指标
# - job_name: "prometheus"
# static_configs:
# - targets: ["localhost:9090"]
# 自监控 Prometheus 指标
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]

# # 抓取 Node Exporter 指标
# - job_name: "node-exporter"
Expand Down

0 comments on commit ae38359

Please sign in to comment.