telemetry dashboard add
All checks were successful
Build And Test / build-and-push (push) Successful in 4m35s

This commit is contained in:
2025-02-22 03:05:50 +09:00
parent 928758c20d
commit fb02b8dc8d
17 changed files with 72 additions and 7 deletions

View File

View File

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View File

@ -0,0 +1,6 @@
from django.apps import AppConfig
class TelemetryDashboardConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'telemetry_dashboard'

View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

View File

@ -0,0 +1,19 @@
{% extends "components/base.html" %}
{% block title %}Landing Page{% endblock %}
{% block main_area %}
<article class="pt-3">
<h2 class="fw-bold pb-2">Grafana</h2>
<!-- Grafana IFrame -->
<div class="ratio ratio-16x9">
<iframe
src="https://grafana.icurfer.com/public-dashboards/40d2a2615010433d81f5cf40caa03541"
width="100%"
height="800"
frameborder="0"
allowfullscreen
></iframe>
</div>
</article>
{% endblock %}

View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

View File

@ -0,0 +1,8 @@
from django.urls import path
from . import views
app_name = 'tm_dsbd'
urlpatterns = [
path('grafana/', views.grafana_view, name='grafana'),
]

View File

@ -0,0 +1,11 @@
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth.decorators import login_required
from django.views.generic import TemplateView
# from django.db.models import Q
def grafana_view(request):
return render(
request,
"telemetry_dashboard/grafana.html",
)