From the course: Monitoring and Observability with Datadog

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Creating custom metrics with logs

Creating custom metrics with logs - Datadog Tutorial

From the course: Monitoring and Observability with Datadog

Creating custom metrics with logs

- [Instructor] The next thing we're going to explore is how to generate metrics using logs. To do so, you can click on Add a new metric. Log metrics are created by defining queries. So in this case, for instance, you might want to see for a particular product manufacturer and for a specific endpoint. Here I want to see all endpoints with travel. Then, I want to set this metric name to product.herzog.views.count. So here I want to count every time this manufacturer comes up on this particular endpoint. We don't have any log stream in our Live Tail because we don't have log streaming in for now. However, you can open in Log Explorer. And that would show you if you actually have content for that particular query. So here you can see that my query is correct. I am getting the endpoint that I want, and I'm getting the manufacturer that I want, Herzog Group. So I can create this metric. Once this is done, we can see our…

Contents