---
title: "Discussion on \"Adding Logging and Metrics to a Java REST API\" | Hashnode"
description: "Discussion on \"Adding Logging and Metrics to a Java REST API\". Using Log4j v2 and Prometheus"
url: "https://hashnode.com/posts/adding-logging-and-metrics-to-a-java-rest-api/639e4c249e086654eeb602dd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Adding Logging and Metrics to a Java REST API](https://blog.teonibyte.com/adding-logging-and-metrics-to-a-java-rest-api?utm_source=hashnode&utm_medium=feed)

Using Log4j v2 and Prometheus

Dec 17, 2022 · 14 min read · blog.teonibyte.com  
Updated Aug 27, 2023  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#prometheus](https://hashnode.com/tag/prometheus)
-   [#log4j2](https://hashnode.com/tag/log4j2)
-   [#log4j](https://hashnode.com/tag/log4j)
-   [#metrics](https://hashnode.com/tag/metrics)

## Written by

[Nikolay Stanchev](https://hashnode.com/@nstanchev)

@nstanchev · Bulgaria

  
[View profile](https://hashnode.com/@nstanchev)

Software engineer with main interests in distributed systems, software architecture, and cryptography.

I am a software engineer (ex-Amazonian) with deep interest in distributed systems and software startups.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
