Grafana not displaying data
本指南用于识别 自托管 Supabase Grafana 安装 中的配置错误
🌐 This guide is for identifying configuration mistakes in self-hosted Supabase Grafana installations
步骤 1:Ping 你的 Grafana 端点 #
🌐 Step 1: Ping your Grafana endpoint
使用下面的 cURL 命令来确保你的指标端点返回数据:
🌐 Use the below cURL command to make sure your metrics endpoint returns data:
1curl https://<YOUR_PROJECT_REF>.supabase.co/customer/v1/privileged/metrics --user 'user:<SECRET_API_KEY>'步骤 2:在右上角将你的 Grafana 仪表板设置为自动刷新 #
🌐 Step 2: Set your Grafana Dashboard to auto-refresh in the top right corner

步骤3:确保你的docker容器有默认配置 #
🌐 Step 3: Make sure your docker container has the default configurations
在终端运行以下命令:
🌐 Run the following command in the terminal:
1docker ps -f name=supabase-grafana输出应该看起来像这样:
🌐 The output should look something like this:

这是以更易读的格式呈现的
🌐 Here it is in an easier to read format
1- CONTAINER ID: < container id >2- IMAGE: supabase-grafana-supabase-grafana3- COMMAND: /entrypoint.sh4- CREATED: < time >5- STATUS: Up < unit of time > ago6- PORTS: 3000/tcp, 0.0.0.0:8000 → 8080/tcp7- NAMES: supabase-grafana-supabase-grafana-1步骤4:进入容器 #
🌐 Step 4: Enter the container
试着运行以下终端命令:
🌐 Try running the following terminal command:
1docker exec -it <container id> bash步骤5:检查环境变量是否有错误 #
🌐 Step 5: Check the environment variables for errors
在 Docker 容器中运行以下命令:
🌐 Run the following in the docker container:
1printenv | egrep 'GRAFANA_PASSWORD|SUPABASE_PROJECT_REF|SUPABASE_SECRET_KEY'通过将数值与仪表板中的数值进行比较来确保它们是正确的。用户之前曾因为不小心遗漏字符串的最后一个字符而遇到问题,所以仔细检查是非常必要的。
🌐 Ensure the values are correct by comparing them with those in the Dashboard. Users have previously encountered issues by accidentally omitting the last character of their strings, so a thorough check is essential.
第6步:进入根文件夹,检查 entrypoint.sh#
🌐 Step 6: Go to the root folder and check permissions on the entrypoint.sh file
运行以下终端命令:
🌐 Run the following terminal commands:
1cd /2ls -l | grep entrypoint.shentrypoint.sh 应该有以下权限:
1-rwxr-xr-x如果关闭了,更新数值
🌐 If off, update the values
1chmod +x entrypoint.sh