Skip to content

Commit

Permalink
Add nginx cache and upstream metrics (#233)
Browse files Browse the repository at this point in the history
* add upstream and upstream cache metrics, refactor access log code, add handling of multiple upstream times
  • Loading branch information
aphralG authored Mar 22, 2023
1 parent 9953651 commit d58a258
Show file tree
Hide file tree
Showing 84 changed files with 1,227 additions and 16,714 deletions.
9 changes: 9 additions & 0 deletions src/core/metrics/metrics_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,17 @@ func GetCalculationMap() map[string]string {
"nginx.http.conn.current": "avg",
"nginx.http.conn.dropped": "sum",
"nginx.http.conn.idle": "avg",
"nginx.cache.bypass": "sum",
"nginx.cache.expired": "sum",
"nginx.cache.hit": "sum",
"nginx.cache.miss": "sum",
"nginx.cache.revalidated": "sum",
"nginx.cache.stale": "sum",
"nginx.cache.updating": "sum",
"nginx.upstream.response.buffered": "sum",
"nginx.upstream.request.failed": "sum",
"nginx.upstream.request.count": "sum",
"nginx.upstream.next.count": "sum",
"nginx.upstream.response.failed": "sum",
"nginx.workers.count": "avg",
"nginx.workers.rlimit_nofile": "avg",
Expand Down
Loading

0 comments on commit d58a258

Please sign in to comment.