Skip to content

Commit

Permalink
Update metrics.md to remove symlink trailing slash
Browse files Browse the repository at this point in the history
Tiny fix. Trailing slash in the symbolic link probably should not be there.

When I run the command: "ln -s /var/snap/prometheus/common/tls/ /var/snap/prometheus/current/tls/"

The result is: "ln: failed to create symbolic link '/var/snap/prometheus/current/tls/': No such file or directory"

Removing the trailing slash from the symbolic link command corrects this and creates the sym link.

Signed-off-by: JohnHammell <git@johnhammell.com>
  • Loading branch information
JohnHammell authored Jul 22, 2024
1 parent ed28438 commit 883bf5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ cp /var/snap/lxd/common/lxd/server.crt /var/snap/prometheus/common/tls/

# Create a symbolic link pointing to tls directory that you created
# https://bugs.launchpad.net/prometheus-snap/+bug/2066910
ln -s /var/snap/prometheus/common/tls/ /var/snap/prometheus/current/tls/
ln -s /var/snap/prometheus/common/tls/ /var/snap/prometheus/current/tls
```

If you are not using the snap, you must also make sure that Prometheus can read these files (usually, Prometheus is run as user `prometheus`):
Expand Down

0 comments on commit 883bf5b

Please sign in to comment.