mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Add sample grafana dashboard downloadable from prefs
This commit is contained in:
parent
f2a4e2b636
commit
ca9425e0be
3 changed files with 1705 additions and 2 deletions
|
|
@ -1762,6 +1762,16 @@ if auth.has_capability(auth.capabilities.preferences) then
|
|||
max = 365 * 10
|
||||
})
|
||||
|
||||
if clickhouse_ts_active then
|
||||
print('<tr><td width="50%"><strong>' .. i18n('prefs.clickhouse_ts_grafana_dashboard')..'</strong>')
|
||||
print('<p><small>' .. i18n('prefs.clickhouse_ts_grafana_dashboard_description')..'</td>')
|
||||
print('<td align="right"><a href="' .. ntop.getHttpPrefix() ..
|
||||
'/misc/grafana/ntopng-clickhouse-dashboard.json"' ..
|
||||
' download="ntopng-clickhouse-dashboard.json" class="btn btn-secondary">')
|
||||
print('<i class="fas fa-download"></i> ' .. i18n('prefs.clickhouse_ts_grafana_dashboard_btn'))
|
||||
print('</a></td></tr>')
|
||||
end
|
||||
|
||||
print('<thead class="table-primary"><tr><th colspan=2 class="info">' .. i18n('prefs.interfaces_timeseries') ..
|
||||
'</th></tr></thead>')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue