[NA HW2-2] anonymous enabled got '<empty>'

50 views
Skip to first unread message

蔡凱旭

unread,
Jun 7, 2026, 3:38:22 AMJun 7
to NYCU NASA 課程討論區
助教好,作業2-2要求grafana enbale anonymous  我已設定環境變數和在grafan.ini中設定enable anonymous(如圖二)。 但是OJ還是顯示"Grafana anonymous enabled: expected true, got '<empty>' (namespace: monitoring)."(如圖一)  想請問oj在測試的時候是去抓取環境變數還是會去戳api來測試anonymous呢 謝謝助教。Screenshot 2026-06-07 at 3.34.51 PM.pngScreenshot 2026-06-07 at 3.33.13 PM.png

陳立

unread,
Jun 7, 2026, 3:44:55 AMJun 7
to NYCU NASA 課程討論區
同學好:
         
         oj 測試是去抓 grafana 的 api。
         可以試試看 curl -m 5 -g http://172.16.1.2:30030/api/frontend/settings | jq -r '.anonymousEnabled'

Best Regards,
TA lichen
chrisc...@gmail.com 在 2026年6月7日 星期日下午3:38:22 [UTC+8] 的信中寫道:

蔡凱旭

unread,
Jun 7, 2026, 9:07:54 AMJun 7
to NYCU NASA 課程討論區
助教好:
我已成功解決問題, 感謝助教幫忙!

chenl...@nycu.edu.tw 在 2026年6月7日 星期日下午3:44:55 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages