支持设置密码

This commit is contained in:
CN-JS-HuiBai
2026-04-06 20:05:49 +08:00
parent 048582791d
commit bc78a1f601
3 changed files with 141 additions and 2 deletions

View File

@@ -64,6 +64,18 @@ scrape_configs:
static_configs:
- targets: ['8.8.8.8:9100']
- job_name: 'nodes'
static_configs:
- targets: ['your-server-ip:9100']
# Basic Auth example:
# - job_name: 'nodes_auth'
# static_configs:
# - targets: ['your-server-ip:9100']
# basic_auth:
# username: 'user'
# password: 'password'
EOF
# Create systemd service file