Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Docs fix: ID is in .metadata.uid, not .metadata.name #219

Merged
merged 1 commit into from
Jul 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ These metrics are available with the following command:

```bash
VM_NAME="my-vm"
VM_ID=$(ignite inspect vm ${VM_NAME} | jq -r .metadata.name)
VM_ID=$(ignite inspect vm ${VM_NAME} | jq -r .metadata.uid)
curl --unix-socket /var/lib/firecracker/vm/${VM_ID}/prometheus.sock http:/metrics
```

Expand All @@ -16,7 +16,7 @@ check it with `docker stats`:

```console
$ VM_NAME="my-vm"
$ VM_ID=$(ignite inspect vm ${VM_NAME} | jq -r .metadata.name)
$ VM_ID=$(ignite inspect vm ${VM_NAME} | jq -r .metadata.uid)
$ docker stats ignite-${VM_ID}
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
29259f616d9c ignite-cc82b4424244b3e4 3.12% 9.145MiB / 15.52GiB 0.06% 5.35kB / 2.5kB 324MB / 4.1kB 15
Expand Down