-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Prometheus exporter and metrics (#48)
* feat: Add Prometheus metrics for message processing and ingest requests - Added Prometheus counters for message processing attempts, successes, and failures in . - Integrated Prometheus metrics endpoint in the router in . - Updated to include Prometheus client library. - Added Prometheus counters for ingest requests and enqueued messages in . Changes: - : Added counters , , and . - : Added endpoint to expose Prometheus metrics. - : Added dependency. - : Added counters and . This commit enhances the observability of the system by providing metrics for monitoring message processing and ingest request activities. * add metrics endpoint readme * fix go mod tidy
- Loading branch information
Showing
7 changed files
with
81 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package handlers | ||
|
||
import ( | ||
"github.com/prometheus/client_golang/prometheus/promhttp" | ||
"net/http" | ||
) | ||
|
||
func (app *App) HandleMetrics(w http.ResponseWriter, r *http.Request) { | ||
promhttp.Handler().ServeHTTP(w, r) | ||
} |
Oops, something went wrong.