Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prom Metrics not Incrementing #511

Open
0xEmma opened this issue Apr 28, 2024 · 0 comments
Open

Prom Metrics not Incrementing #511

0xEmma opened this issue Apr 28, 2024 · 0 comments

Comments

@0xEmma
Copy link

0xEmma commented Apr 28, 2024

Caddy File:

   {
      auto_https off
      order cache before rewrite
      cache {
        mode bypass_request
        log_level info
        key {
          disable_host
        }
        api {
          prometheus
        }
        redis {
           url 10.69.42.42:6379
        }
      }
      servers {
        metrics
      }
    }

    localhost:80 {
      root * /srv/
      file_server browse
      log {
        format json
      }
    }
    host.example.com:80 {
      metrics /stream/metrics
      root * /srv/
      file_server {
        browse /etc/caddy/Browse.html
      }
      log {
        format json
      }
      encode zstd gzip
      @match {
        path *.xml
        path *.rpm
        path *.bz2
      }
      cache @match {
        ttl 3600s
      }
    }

Caddy is behind a seperate L7 LB, connected to redis 7.2.4

# HELP souin_cached_response_counter Cached response counter
# TYPE souin_cached_response_counter counter
souin_cached_response_counter 0
# HELP souin_no_cached_response_counter No cached response counter
# TYPE souin_no_cached_response_counter counter
souin_no_cached_response_counter 0
# HELP souin_request_counter Total request counter
# TYPE souin_request_counter counter
souin_request_counter 1
# HELP souin_request_revalidation_counter Total request revalidation counter
# TYPE souin_request_revalidation_counter counter
souin_request_revalidation_counter 0

response time metrics will properly increment, however the cache response metrics will not, only request counter will increment, but not show the proper number of requests as indicated via response time count & logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant