host-metrics: use native-stack name and laconic-so deployment logs

`host-metrics` is a native stack -- spec.yml and `laconic-so --stack`
both take the bare stack name, not a path. Replace the `docker ps -qf`
filter with `laconic-so deployment --dir ... logs` so the verify
recipe works regardless of the laconic deployment-hash prefix on the
container name.
pull/753/head
Prathamesh Musale 2026-05-11 11:58:07 +00:00
parent 4eaca0ecb0
commit a62be4def8
1 changed files with 3 additions and 4 deletions

View File

@ -28,14 +28,13 @@ All rows are tagged with `host` (kernel hostname, or `HOST_TAG` override).
### Create a spec ### Create a spec
```bash ```bash
laconic-so --stack <path>/stack_orchestrator/data/stacks/host-metrics \ laconic-so --stack host-metrics deploy init --output spec-host-metrics.yml
deploy init --output spec-host-metrics.yml
``` ```
Edit `spec-host-metrics.yml` to look like: Edit `spec-host-metrics.yml` to look like:
```yaml ```yaml
stack: <path>/stack_orchestrator/data/stacks/host-metrics stack: host-metrics
deploy-to: compose deploy-to: compose
credentials-files: credentials-files:
- ~/.credentials/host-metrics.env - ~/.credentials/host-metrics.env
@ -68,7 +67,7 @@ laconic-so deployment --dir ./deployment-host-metrics start
### Verify ### Verify
```bash ```bash
docker logs $(docker ps -qf name=host-metrics) | head laconic-so deployment --dir ./deployment-host-metrics logs telegraf | head
``` ```
Expected: telegraf prints its startup banner and `Loaded inputs: ...`. No Expected: telegraf prints its startup banner and `Loaded inputs: ...`. No