• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Using Granafa with or without docker?

andreios

Regular Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
18.0.61 #1
I want to use Grafana to display a large PostgreSQL database. Can I use Grafana from the repository of mys system? I noticed that Grafana is used by Plesk, I have uninstalled the Grafana extension, but Grafana is still running on the system.
grafana/now 10.1.5 amd64 [Installiert,lokal]
systemctl status grafana-server.service
● grafana-server.service - Grafana instance
Loaded: loaded (/lib/systemd/system/grafana-server.service; enabled; vendor preset: enabled)
Active: active (running)

netstat -tunlp | grep 3000
tcp6 0 0 :::3000 :::* LISTEN 654887/grafana
 
When I try to use Grafana in a docker container, the only thing I get is: gateway time-out.
I wonder why the container says "Port-Mapping: 3000 to 32780"? Why 3000, when this is what the system Grafana is using?
grep 3000 /etc/grafana/*
/etc/grafana/grafana.ini:;http_port = 3000
 
Grafana is running, just reinstalled the image.
How to connect from the container to localhost? host.docker.internal is not working.
 
I couldn't find a way to connect from the container to localhost. There must be a way, found nothing about in the plesk support articles. There is an article about starting a container in localhost, but I want to do it, manged by plesk.
 
Back
Top