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

Prometheus metrics not incrementing #390

Closed
jpds opened this issue Oct 24, 2023 · 2 comments · Fixed by #414
Closed

Prometheus metrics not incrementing #390

jpds opened this issue Oct 24, 2023 · 2 comments · Fixed by #414

Comments

@jpds
Copy link

jpds commented Oct 24, 2023

I noticed that on my Caddy instances, the only Souin Prometheus metric that appears to be working is souin_request_counter.

All of the other ones simply remain at 0.

@darkweak
Copy link
Owner

Hello @jpds what's your configuration please?

@jpds
Copy link
Author

jpds commented Oct 25, 2023

Basically:

{
      admin [::]:2019

      # Souin
      order cache before rewrite

      cache {
        default_cache_control "public"

        key {
          hide
        }

        nuts {
          path /var/lib/caddy/souin/
        }

        stale 3h
        ttl 14h
      }
      
      servers {
        metrics
        log_credentials
      }
}

test.example.com {
      cache
      
      reverse_proxy [2001:db8::80]:8080
}

I did see that Souin had its own api.prometheus option - but it's odd that that one metric would be working without that too.

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

Successfully merging a pull request may close this issue.

2 participants