telemetry dashboard add
All checks were successful
Build And Test / build-and-push (push) Successful in 4m35s
All checks were successful
Build And Test / build-and-push (push) Successful in 4m35s
This commit is contained in:
0
telemetry_dashboard/__init__.py
Normal file
0
telemetry_dashboard/__init__.py
Normal file
3
telemetry_dashboard/admin.py
Normal file
3
telemetry_dashboard/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
telemetry_dashboard/apps.py
Normal file
6
telemetry_dashboard/apps.py
Normal file
@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class TelemetryDashboardConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'telemetry_dashboard'
|
0
telemetry_dashboard/migrations/__init__.py
Normal file
0
telemetry_dashboard/migrations/__init__.py
Normal file
3
telemetry_dashboard/models.py
Normal file
3
telemetry_dashboard/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
@ -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 %}
|
3
telemetry_dashboard/tests.py
Normal file
3
telemetry_dashboard/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
8
telemetry_dashboard/urls.py
Normal file
8
telemetry_dashboard/urls.py
Normal 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'),
|
||||
]
|
11
telemetry_dashboard/views.py
Normal file
11
telemetry_dashboard/views.py
Normal 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",
|
||||
)
|
Reference in New Issue
Block a user