docs: replace real IPs and credentials with placeholders

This commit is contained in:
Maksim Totmin 2026-06-25 23:00:48 +07:00
parent 0784e8fcea
commit 0d716b2549
4 changed files with 14 additions and 14 deletions

View File

@ -1,5 +1,5 @@
{
"node_id": "ses-sip",
"node_id": "ses-pbx",
"type": "freeswitch",
"nats_url": "nats://balancer.lan:4222",
"interval_sec": 5,

View File

@ -1,5 +1,5 @@
{
"node_id": "uc06",
"node_id": "uc-pbx",
"type": "asterisk",
"nats_url": "nats://balancer.lan:4222",
"interval_sec": 5,

View File

@ -48,14 +48,14 @@ make build-agent
```json
{
"node_id": "uc06",
"node_id": "pbx-01",
"type": "asterisk",
"nats_url": "nats://balancer.host:4222",
"nats_user": "",
"nats_password": "",
"interval_sec": 5,
"max_calls": 150,
"sip_gateway": "sip:uc-pbx.lan:5060",
"sip_gateway": "sip:pbx-01.lan:5060",
"sip_gateway_auto": false,
"failure_window": 1000,
"esl": { "host": "127.0.0.1", "port": 8021, "password": "ClueCon" },
@ -65,7 +65,7 @@ make build-agent
| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `node_id` | string | — | Unique node ID (uc06, ses-sip) |
| `node_id` | string | — | Unique node ID (pbx-01, pbx-02) |
| `type` | string | — | `freeswitch` or `asterisk` |
| `nats_url` | string | — | NATS server URL |
| `nats_user` | string | `""` | NATS username |
@ -113,8 +113,8 @@ New PBX type = new `collector_<type>.go` implementing 5 interface methods. No ex
| File | Target | Type |
|------|--------|------|
| `contrib/agent-uc.json` | Asterisk UC nodes (05, 06, 66-69) | asterisk |
| `contrib/agent-sessip.json` | FreeSWITCH ses-sip (ses-pbx.lan) | freeswitch |
| `contrib/agent-uc.json` | Asterisk UC nodes | asterisk |
| `contrib/agent-sessip.json` | FreeSWITCH ses-sip | freeswitch |
## Deployment
@ -123,13 +123,13 @@ New PBX type = new `collector_<type>.go` implementing 5 interface methods. No ex
make build-agent
# 2. Copy to node
scp bin/pulse-lets-go-agent admin@NODE_IP:/usr/local/bin/
scp bin/pulse-lets-go-agent admin@pbx-node:/usr/local/bin/
# 3. Create config
scp contrib/agent-uc.json admin@NODE_IP:/etc/pulse-lets-go-agent/agent.json
scp contrib/agent-uc.json admin@pbx-node:/etc/pulse-lets-go-agent/agent.json
# 4. Start
ssh admin@NODE_IP "pulse-lets-go-agent -config /etc/pulse-lets-go-agent/agent.json"
ssh admin@pbx-node "pulse-lets-go-agent -config /etc/pulse-lets-go-agent/agent.json"
```
## Systemd Unit

View File

@ -79,11 +79,11 @@ Repeat for each UC/Asterisk node:
```bash
# Copy binary and config to each PBX:
scp bin/pulse-lets-go-agent admin@PBX_IP:/usr/local/bin/
scp contrib/agent-uc.json admin@PBX_IP:/etc/pulse-lets-go-agent/agent.json
scp bin/pulse-lets-go-agent admin@pbx-node:/usr/local/bin/
scp contrib/agent-uc.json admin@pbx-node:/etc/pulse-lets-go-agent/agent.json
# Start:
ssh admin@PBX_IP "systemctl start pulse-lets-go-agent"
ssh admin@pbx-node "systemctl start pulse-lets-go-agent"
# Check log:
# journalctl -u pulse-lets-go-agent -f
@ -121,7 +121,7 @@ Trunks are created automatically when an agent sends its first metric with `sip_
```bash
curl -X POST .../api/trunks \
-d '{"name":"uc06","type":"balance","node_id":"uc06","gateway":"sip:uc-pbx.lan:5060","enabled":true}'
-d '{"name":"pbx-01","type":"balance","node_id":"pbx-01","gateway":"sip:pbx-01.lan:5060","enabled":true}'
```
### Step 7 — Start pulse-lets-go