Skip to content
Snippets Groups Projects

Prometheus metrics for senddata and git archive cache

Merged Jacob Vosmaer (GitLab) requested to merge git-archive-prom into master
1 unresolved thread

This adds some new prometheus metrics:

  • senddata hijackings by hijacker
  • senddata response bytes by hijacker
  • 'git archive' cache hits and misses

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Nick Thomas
  • Nick Thomas
  • 64 88 for _, injecter := range s.injecters {
    65 89 if injecter.Match(header) {
    66 90 s.hijacked = true
    91 sendDataResponses.WithLabelValues(injecter.Name()).Inc()
    67 92 helper.DisableResponseBuffering(s.rw)
    68 injecter.Inject(s.rw, s.req, header)
    93 crw := helper.NewCountingResponseWriter(s.rw)
    94 injecter.Inject(crw, s.req, header)
  • added 3 commits

    Compare with previous version

  • added 1 commit

    • c7b97add - Add tests for CountingResponseWriter

    Compare with previous version

  • Nick Thomas approved this merge request

    approved this merge request

  • merged

  • Nick Thomas mentioned in commit bc8f3615

    mentioned in commit bc8f3615

  • Please register or sign in to reply
    Loading