From 12bd0105cc9ae686e2a732ad097df761b08984da Mon Sep 17 00:00:00 2001 From: Liang Deng <283304489@qq.com> Date: Sat, 15 Apr 2023 21:00:52 +0800 Subject: [PATCH] Docs: add a tutorial on how to read Tetragon metrics Signed-off-by: Liang Deng <283304489@qq.com> --- .../en/docs/tutorials/read-tetragon-metrics.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 docs/content/en/docs/tutorials/read-tetragon-metrics.md diff --git a/docs/content/en/docs/tutorials/read-tetragon-metrics.md b/docs/content/en/docs/tutorials/read-tetragon-metrics.md new file mode 100644 index 00000000000..19323680ec2 --- /dev/null +++ b/docs/content/en/docs/tutorials/read-tetragon-metrics.md @@ -0,0 +1,12 @@ +--- +title: "Read Tetragon metrics" +weight: 3 +description: "Learn how to read Tetragon metrics." +--- + +If you run Tetragon with the helm chart, it should be enabled, you can read `cat /var/run/tetragon/tetragon-info.json` for the info but typically it listens on `2112`. + +If you run Tetragon standalone you can use: `sudo ./tetragon --bpf-lib ./bpf/objs/ --metrics-server localhost:2112` to start with the metrics server (it's disabled by default) + +Then to read the metrics you can do `curl localhost:2112/metrics`. +