Exposing ShinyOperator Prometheus

Hi there,

I currently have a docker instance of ShinyProxyOperator running and it’s working great, the monitoring is really easy to enable and is a nice way of having all the logs in one easy place.
I currently have a Grafana instance in place which everything feeds into. Is it possible, either via some variable or manual change to expose the prometheus container so i can point my current grafana instance to use it as a datasource?

Many thanks,
Matt

Hi

I’m happy to hear you are liking the operator! There is currently not a ready to use option for this, but there are some ways to access prometheus.

  • you can find the IP address of prometheus and directly access it, sudo docker inspect sp-prometheus and curl 172.18.0.5:9090/query. Note that the IP address might change.
  • you can add a container to the sp-shared-network docker network, this container will be able to access prometheus using the sp-prometheus hostname. The hostname will not change. You could create some proxy inside this container. The operator should not touch this container and once the network is created it will also not be removed.

Hope this helps!

Had a feeling adding a new container to the docker network would be the only solution, just thought i’d double check for anything built-in first!

Many Thanks!

1 Like