An open API service indexing awesome lists of open source software.

https://github.com/jvrplmlmn/nginx-requests-stats

The nginx-requests-stats application reads a Nginx log, and counts the number of requests in the last 24 hours.
https://github.com/jvrplmlmn/nginx-requests-stats

go golang nginx

Last synced: about 1 month ago
JSON representation

The nginx-requests-stats application reads a Nginx log, and counts the number of requests in the last 24 hours.

Awesome Lists containing this project

README

          

# nginx-requests-stats

[![Build Status](https://travis-ci.org/jvrplmlmn/nginx-requests-stats.svg?branch=master)](https://travis-ci.org/jvrplmlmn/nginx-requests-stats)

The `nginx-requests-stats` application reads a Nginx log, and counts the number of requests in the last 24 hours.

The application binds to `localhost:8080` and exposes the following HTTP endpoints:

```
GET /version

{
"version": "0.1.0"
}
```

```
GET /count

{
"requests": 15
}
```