Closed AdrianHordyk closed 2 years ago
Update: making some progress but target state is DOWN
prometheus.yml
now set to to:
scrape_configs:
- job_name: 'shinyproxy'
metrics_path: '/actuator/prometheus'
static_configs:
- targets: ['shinyproxy:9090']
Also, I realized I had the usage management section in the wrong place in application.yml
(was inside proxy
section previously).
Prometheus is now accessible via domain name (made some other changes to usagestats.yml
for this) and shows this:
Endpoint: http://shinyproxy:9090/actuator/prometheus
State: DOWN
Error: Get "http://shinyproxy:9090/actuator/prometheus": dial tcp 10.0.2.48:9090: connect: connection refused
Do this mean ShinyProxy is not serving the usage stats to port 9090 or an error with the docker containers communicating with each other?
Found the issue: it was something stupid of course.
The shinyproxy
docker image I was using (presstofan/shinyproxy-example
) was an old version where usage stats monitoring with micrometer etc hadn't been implemented yet.
For anyone else following the databentobox.com guide, be aware that the latest version of shinyproxy requires a few modifications to the configuration.
I followed this guide to get my app running with Shiny Proxy, Traefik, and Docker Swarm. Everything is working great.
I attempted to follow these instructions to monitor usage statistics using Micrometer, Prometheus, and Grafana.
I'm able to access Granafa from my domain name, and set the data source to
http://prometheus:7070
. Save & Test shows it's able to connect to the data source.The problem is the ShinyProxy dashboard receives no data. I get errors like
"1:68: parse error: missing unit character in duration"
which suggests to me that no data from ShinyProxy is available.I suspect the issue is because I'm running ShinyProxy and Prometheus/Grafana in separate Docker stacks and that the issue may be in:
I've tried different approaches I've found online, but there's very little information available on monitoring usage other than the official instructions.
I'm hoping someone can point out an obvious place where I've gone wrong.
This is my
shinyproxy.yml
:application.yml
:usagestats.yml
:and
prometheus.yml
: