hairyhenderson / caddyprom Goto Github PK
View Code? Open in Web Editor NEW⚠️ DEPRECATED - use the core metrics supported in Caddy v2.2.0-rc.2+
Home Page: https://caddyserver.com/docs/metrics
License: MIT License
⚠️ DEPRECATED - use the core metrics supported in Caddy v2.2.0-rc.2+
Home Page: https://caddyserver.com/docs/metrics
License: MIT License
I really need metrics by URL in order to verify which endpoint is causing some bottlenecks and eventual problems.
What do you think about implementing this on this project? I could work on this...
Hi,
I tried to create a dockerfile with caddyprom.
FROM caddy:builder AS builder
RUN caddy-builder \
github.com/hairyhenderson/caddyprom
FROM caddy:latest
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
and my caddyfile:
{
order prometheus first
}
{{ domain }} {
reverse_proxy {{ service }}:{{ port }}
log {
output file /var/log/caddy/{{ domain }}.log
}
{
debug
}
}
prometheus
After that I use ansible with docker-compose module to build and deploy caddy. It's work for caddy.
But I don't find any metrics.
/ # curl localhost:9180/metrics
curl: (7) Failed to connect to localhost port 9180: Connection refused
Where is my mistake?
Thanks
Please, would there be a possibility to add metrics per host like it was done in https://github.com/miekg/caddy-prometheus?
caddy_http_request_count_total{host, family, proto}
caddy_http_request_duration_seconds{host, family, proto}
caddy_http_response_latency_seconds{host, family, proto, status}
caddy_http_response_size_bytes{host, family, proto, status}
caddy_http_response_status_count_total{host, family, proto, status}
Dependabot can't resolve your Go dependency files.
As a result, Dependabot couldn't update your dependencies.
The error Dependabot encountered was:
dmitri.shuralyov.com/gpu/[email protected]: unrecognized import path "dmitri.shuralyov.com/gpu/mtl" (https fetch: Get https://dmitri.shuralyov.com/gpu/mtl?go-get=1: EOF)
If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.
Hi,
Here is my caddy configuration in json format
{
"storage":{
"module": "consul"
},
"apps": {
"http": {
"servers": {
"srv0": {
"listen": [
":443"
],
"routes": [
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "10.0.0.1:80"
},
{
"dial": "10.0.0.2:80"
}
],
"health_checks": {
"active": {
"path": "/",
"port": 80,
"interval": "0.5s",
"timeout": "2s",
"expect_status": 200
}}
}
],
"match": [
{
"host": ["redacted.mycompany.com"]
}]
},
{
"handle": [
{
"handler": "prometheus"
}
],
"match": [
{
"host": ["localhost"]
}
]
}
]
}
}
}
}
}
prometheux loads correctly and I'm able to view metrics. But metrics seems to be shown only when requesting localhost. If I generate some traffic on redacted.mycompany.com, the localhost:9180/metrics page does not change. No metric is added.
My question is, does this module works with reverse-proxy handler?
Is there any possibility to set the listen address in the caddyfile? I'm using caddy inside docker, which makes the prometheus module unusable for me as it only listens on localhost by default.
Thanks for the help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.