Skip to content

Commit

Permalink
docs: Improve metrics reference title and frontmatter
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Kapuscinska <[email protected]>
  • Loading branch information
lambdanis committed Mar 1, 2024
1 parent 1683fca commit a2116e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,10 @@ METRICS_DOCS_PATH := docs/content/en/docs/reference/metrics.md
.PHONY: metrics-docs
metrics-docs: tetra
echo '---' > $(METRICS_DOCS_PATH)
echo 'title: "Metrics Reference"' >> $(METRICS_DOCS_PATH)
echo 'title: "Metrics"' >> $(METRICS_DOCS_PATH)
echo 'description: >' >> $(METRICS_DOCS_PATH)
echo ' This reference documents Prometheus metrics exposed by Tetragon.' >> $(METRICS_DOCS_PATH)
echo ' This reference is autogenerated from the Tetragon Prometheus metrics registry' >> $(METRICS_DOCS_PATH)
echo ' using github.com/isovalent/metricstool' >> $(METRICS_DOCS_PATH)
echo 'weight: 4' >> $(METRICS_DOCS_PATH)
echo '---' >> $(METRICS_DOCS_PATH)
$(CONTAINER_ENGINE) run --rm -v $(PWD):$(PWD) -w $(PWD) $(GO_IMAGE) ./tetra metrics-docs health >> $(METRICS_DOCS_PATH)
Expand Down
5 changes: 3 additions & 2 deletions docs/content/en/docs/reference/metrics.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a2116e4

Please sign in to comment.