瀏覽代碼

more detailed error message for loki

if grafana tries to access loki without promtail running
it will return an error.
bergquist 7 年之前
父節點
當前提交
e230827c06
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      public/app/plugins/datasource/loki/datasource.ts

+ 2 - 1
public/app/plugins/datasource/loki/datasource.ts

@@ -136,7 +136,8 @@ export default class LokiDatasource {
         }
         }
         return {
         return {
           status: 'error',
           status: 'error',
-          message: 'Data source connected, but no labels received. Verify that Loki is configured properly.',
+          message:
+            'Data source connected, but no labels received. Verify that Loki and Promtail is configured properly.',
         };
         };
       })
       })
       .catch(err => {
       .catch(err => {