CEC-607 Parameterize Grafana (#103)
* CEC-607 Parameterize Grafana * Update urls
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
import { useStatusContext } from "../../Contexts/StatusContext";
|
||||
import useStyles from "../../useStyles";
|
||||
import ResponsiveIFrame from "../../Controls/ResponsiveIFrame";
|
||||
import { grafanaCharts } from "../../../services/grafanaCharts";
|
||||
|
||||
const Battery = () => {
|
||||
const classes = useStyles();
|
||||
@@ -82,7 +83,7 @@ const Battery = () => {
|
||||
Cell Voltage {cellNum}
|
||||
<ResponsiveIFrame
|
||||
classes={classes}
|
||||
src={`https://grafana.fiskerdps.com/d-solo/LVI-aQGnz/diagnostics?orgId=2&var-VIN=${vin}&var-Signal=BMS_CellVolt${cellNum}&panelId=2`}
|
||||
src={grafanaCharts.CELLVOLTAGE_CHART({ vin, cellNum })}
|
||||
title="Cell Voltage"
|
||||
/>
|
||||
</Paper>
|
||||
@@ -93,7 +94,7 @@ const Battery = () => {
|
||||
Cell Temperature {cellNum}
|
||||
<ResponsiveIFrame
|
||||
classes={classes}
|
||||
src={`https://grafana.fiskerdps.com/d-solo/LVI-aQGnz/diagnostics?orgId=2&var-VIN=${vin}&var-Signal=BMS_CellT${cellNum}&panelId=2`}
|
||||
src={grafanaCharts.CELLTEMP_CHART({ vin, cellNum })}
|
||||
title="Cell Temperature"
|
||||
/>
|
||||
</Paper>
|
||||
@@ -103,7 +104,7 @@ const Battery = () => {
|
||||
<Paper className={classes.grafanaContainer}>
|
||||
<ResponsiveIFrame
|
||||
classes={classes}
|
||||
src={`https://grafana.fiskerdps.com/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN=${vin}&refresh=1m&panelId=4`}
|
||||
src={grafanaCharts.BATTERYTEMP_CHART({ vin })}
|
||||
title="Battery Temperature Time Series"
|
||||
/>
|
||||
</Paper>
|
||||
@@ -115,7 +116,7 @@ const Battery = () => {
|
||||
<Paper className={classes.grafanaContainer}>
|
||||
<ResponsiveIFrame
|
||||
classes={classes}
|
||||
src={`https://grafana.fiskerdps.com/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN=${vin}&refresh=1m&panelId=6`}
|
||||
src={grafanaCharts.BATTERYCAP_CHART({ vin })}
|
||||
title="Battery Capacity Time Series"
|
||||
/>
|
||||
</Paper>
|
||||
@@ -125,7 +126,7 @@ const Battery = () => {
|
||||
<Paper className={classes.grafanaContainer}>
|
||||
<ResponsiveIFrame
|
||||
classes={classes}
|
||||
src={`https://grafana.fiskerdps.com/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN=${vin}&panelId=12`}
|
||||
src={grafanaCharts.BATTERYPERCENT_CHART({ vin })}
|
||||
title="Battery Percent Time Series"
|
||||
/>
|
||||
</Paper>
|
||||
@@ -135,7 +136,7 @@ const Battery = () => {
|
||||
<Paper className={classes.grafanaContainer}>
|
||||
<ResponsiveIFrame
|
||||
classes={classes}
|
||||
src={`https://grafana.fiskerdps.com/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN=${vin}&refresh=1m&panelId=2`}
|
||||
src={grafanaCharts.BATTERY12VPERCENT_CHART({ vin })}
|
||||
title="12V Battery Percentage Time Series"
|
||||
/>
|
||||
</Paper>
|
||||
@@ -145,7 +146,7 @@ const Battery = () => {
|
||||
<Paper className={classes.grafanaContainer}>
|
||||
<ResponsiveIFrame
|
||||
classes={classes}
|
||||
src={`https://grafana.fiskerdps.com/d-solo/jRKKo2gnz/battery?orgId=2&var-VIN=${vin}&refresh=1m&panelId=9`}
|
||||
src={grafanaCharts.BATTERY12VVOLTAGE_CHART({ vin })}
|
||||
title="12V Battery Voltage Time Series"
|
||||
/>
|
||||
</Paper>
|
||||
|
||||
@@ -7,6 +7,7 @@ import { useStatusContext } from "../../Contexts/StatusContext";
|
||||
import useStyles from "../../useStyles";
|
||||
import ResponsiveIFrame from "../../Controls/ResponsiveIFrame";
|
||||
import { logger } from "../../../services/monitoring";
|
||||
import { grafanaCharts } from "../../../services/grafanaCharts";
|
||||
|
||||
const Datascope = () => {
|
||||
const classes = useStyles();
|
||||
@@ -72,7 +73,7 @@ const Datascope = () => {
|
||||
<Paper className={classes.grafanaContainer}>
|
||||
<ResponsiveIFrame
|
||||
classes={classes}
|
||||
src="https://grafana.fiskerdps.com/d-solo/1VTVJ_qGk/dashboard?orgId=2&refresh=30s&panelId=12"
|
||||
src={grafanaCharts.HOME_CHART}
|
||||
title="Signals Time Series"
|
||||
/>
|
||||
</Paper>
|
||||
@@ -83,7 +84,7 @@ const Datascope = () => {
|
||||
aria-label="create"
|
||||
color="primary"
|
||||
component={Link}
|
||||
href="https://grafana.fiskerdps.com"
|
||||
href={grafanaCharts.BASE}
|
||||
rel="noopener"
|
||||
target="_blank"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user