Introduction to Metrics in Server-Side Swift

In this Server-Side Swift tutorial you will learn how to use Vapor built-in metrics and how to create custom ones. The data is pulled and stored by Prometheus and visualized in beautiful graphs using Grafana. By Jari Koopman.

5 (2) · 1 Review

Download materials
Save for later
Share
You are currently viewing page 4 of 4 of this article. Click here to view the first page.

Where to Go From Here?

You can download the final project, including the starter and final dashboard using the Download Materials button at the top or bottom of this page.

To learn more about Grafana and its panel types, check out the Grafana Docs. Prometheus also offers more types of metrics this tutorial did not cover. Find out about those in the Prometheus Docs.

Swift Metrics supports all the metric types Prometheus has. Learn more about them in their API Docs. Swift Metrics and Swift Prometheus are both open-source and can be found on GitHub.

If you have any comments or questions, please join the forum below!