admingit 2 years ago
parent b21d9775ea
commit edcd7974b8

@ -1,10 +1,10 @@
<nav search_view="search"> <nav search_view="search">
<view name="search" default="true" /> <view name="search" />
<view name="reports" /> <view name="reports" />
<view name="alerts" /> <view name="alerts" />
<view name="dashboards" /> <view name="dashboards" />
<collection label="Megane"> <collection label="Megane">
<view name="sample_dashboard" /> <view name="renault" default="true" />
<view name="Geolocatisation" /> <view name="geolocalisation-renault" />
</collection> </collection>
</nav> </nav>

@ -0,0 +1,42 @@
<dashboard version="1.1" theme="dark">
<label>Geolocalisation-Renault</label>
<row>
<panel>
<viz type="leaflet_maps_app.leaflet_maps">
<search>
<query>index="idx_api-renault"
| geostats latest_time latfield=location.gpsLatitude longfield=location.gpsLongitude</query>
<earliest>@d</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="drilldown">none</option>
<option name="trellis.enabled">0</option>
<option name="trellis.scales.shared">1</option>
<option name="trellis.size">medium</option>
</viz>
</panel>
</row>
<row>
<panel>
<viz type="leaflet_maps_app.google-street-view">
<search>
<query>index="idx_api-renault"
| geostats latest_time latfield=location.gpsLatitude longfield=location.gpsLongitude
| eval coordinates=latitude.",".longitude | table coordinates</query>
<earliest>-60m@m</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<option name="drilldown">none</option>
<option name="leaflet_maps_app.google-street-view.defaultHeight">600</option>
<option name="leaflet_maps_app.google-street-view.fullScreen">0</option>
<option name="leaflet_maps_app.google-street-view.googleMapsApiKeyUser">Jocelyn</option>
<option name="trellis.enabled">0</option>
<option name="trellis.scales.shared">1</option>
<option name="trellis.size">medium</option>
</viz>
</panel>
</row>
</dashboard>

@ -0,0 +1,665 @@
<dashboard version="2" theme="dark">
<label>Renault</label>
<description></description>
<definition><![CDATA[
{
"dataSources": {
"ds_L0q5u3CO": {
"type": "ds.search",
"options": {
"query": "index=\"idx_api-renault\" battery-status.batteryAutonomy=\"*\"\n| stats latest(battery-status.batteryAutonomy)",
"queryParameters": {}
},
"name": "Megane E-Tech - Single value search"
},
"ds_iR3ITKvZ": {
"type": "ds.search",
"options": {
"query": "index=\"idx_api-renault\" battery-status.batteryLevel=\"*\"\n| stats latest(battery-status.batteryLevel)"
},
"name": "Batterie"
},
"ds_cMNQU2Pp": {
"type": "ds.search",
"options": {
"query": "index=\"idx_api-renault\"\n| stats latest(battery-status.batteryAvailableEnergy)"
},
"name": "Capaciter Batterie"
},
"ds_6DGbP2CC": {
"type": "ds.search",
"options": {
"query": "index=\"idx_api-renault\" battery-status.batteryLevel=\"*\"\n| stats latest(battery-status.batteryTemperature)"
},
"name": "Temperature"
},
"ds_OhLdAOpY": {
"type": "ds.search",
"options": {
"query": "index=\"idx_api-renault\"\n| rename battery-status.chargingInstantaneousPower as InstaPower\n| eval InstaPowerkW = InstaPower / 10\n| table _time, InstaPowerkW",
"queryParameters": {
"earliest": "@d",
"latest": "now"
}
},
"name": "Puissance de charge"
},
"ds_vpLs7iQP": {
"type": "ds.search",
"options": {
"query": "index=\"idx_api-renault\" battery-status.batteryLevel=\"*\"\n| stats latest(battery-status.chargingRemainingTime)"
},
"name": "Temps de charge restant"
},
"ds_3duPstcj": {
"type": "ds.search",
"options": {
"query": "index=\"idx_api-renault\"\n| stats latest(charge-mode.chargeMode)"
},
"name": "Mode de charge"
},
"ds_LNrziZwb": {
"type": "ds.search",
"options": {
"query": "index=\"idx_api-renault\"\n| stats latest(cockpit.totalMileage)"
},
"name": "Kilometrage"
},
"ds_vUMv8hfb": {
"type": "ds.search",
"options": {
"query": "index=\"idx_api-renault\"\n| stats latest(hvac-status.hvacStatus) latest(hvac-status.lastUpdateTime)"
},
"name": "Etats hvac"
},
"ds_RTeET8LI": {
"type": "ds.search",
"options": {
"query": "index=\"idx_api-renault\"\n| stats latest(hvac-status.internalTemperature)"
},
"name": "Temperature interieur"
},
"ds_rx5ZIdP3": {
"type": "ds.search",
"options": {
"query": "index=\"idx_api-renault\" source=\"/var/rsyslog/renault/stats.json\" \n| geostats count by source latfield=location.gpsLatitude longfield=location.gpsLongitude",
"queryParameters": {
"earliest": "-24h@h",
"latest": "now"
}
},
"name": "Localisation"
}
},
"visualizations": {
"viz_Bsib7QHd": {
"type": "splunk.singlevalue",
"options": {
"numberPrecision": 0,
"sparklineDisplay": "below",
"trendDisplay": "absolute",
"unit": "Km",
"unitPosition": "after",
"shouldUseThousandSeparators": true,
"majorColor": "> majorValue | rangeValue(convertedColorRange)"
},
"context": {
"convertedColorRange": [
{
"from": 100,
"value": "#dc4e41"
},
{
"from": 70,
"to": 100,
"value": "#f1813f"
},
{
"from": 30,
"to": 70,
"value": "#f8be34"
},
{
"from": 0,
"to": 30,
"value": "#0877a6"
},
{
"to": 0,
"value": "#53a051"
}
]
},
"dataSources": {
"primary": "ds_L0q5u3CO"
},
"title": "Autonomie"
},
"viz_ApRn1c4W": {
"type": "splunk.image",
"options": {
"preserveAspectRatio": true,
"src": "splunk-enterprise-kvstore://65a7e1b4169a61bda900a2d1"
}
},
"viz_RM5EST6g": {
"type": "splunk.singlevalueradial",
"options": {
"majorColor": "> majorValue | rangeValue(majorColorEditorConfig)",
"unit": "%"
},
"dataSources": {
"primary": "ds_iR3ITKvZ"
},
"context": {
"majorColorEditorConfig": [
{
"value": "#FE3A3A",
"to": 20
},
{
"value": "#FF7149",
"from": 20,
"to": 40
},
{
"value": "#FFD442",
"from": 40,
"to": 60
},
{
"value": "#2EB82E",
"from": 60,
"to": 80
},
{
"value": "#088F44",
"from": 80
}
]
}
},
"viz_LoYH4Rkn": {
"type": "splunk.singlevalueradial",
"dataSources": {
"primary": "ds_cMNQU2Pp"
},
"title": "",
"options": {
"unit": "kw",
"majorColor": "> majorValue | rangeValue(majorColorEditorConfig)"
},
"context": {
"majorColorEditorConfig": [
{
"value": "#D41F1F",
"to": 20
},
{
"value": "#D97A0D",
"from": 20,
"to": 40
},
{
"value": "#9D9F0D",
"from": 40,
"to": 63
},
{
"value": "#118832",
"from": 63
}
]
}
},
"viz_SmPWiNin": {
"type": "splunk.singlevalueradial",
"dataSources": {
"primary": "ds_6DGbP2CC"
},
"context": {
"gaugeColorEditorConfig": [
{
"to": 9,
"value": "#118832"
},
{
"from": 10,
"to": 29,
"value": "#669922"
},
{
"from": 30,
"to": 49,
"value": "#CBA700"
},
{
"from": 50,
"to": 69,
"value": "#D94E17"
},
{
"from": 70,
"value": "#D41F1F"
}
],
"majorColorEditorConfig": [
{
"value": "#FF5E5E",
"to": 20
},
{
"value": "#2a99ff",
"from": 20,
"to": 40
},
{
"value": "#6bb3ee",
"from": 40,
"to": 60
},
{
"value": "#adccdd",
"from": 60,
"to": 80
},
{
"value": "#eee8ce",
"from": 80,
"to": 90
},
{
"value": "#f4baa9",
"from": 90
}
]
},
"showProgressBar": false,
"showLastUpdated": false,
"options": {
"unit": "°",
"majorColor": "> majorValue | rangeValue(majorColorEditorConfig)"
}
},
"viz_HeXrBVNe": {
"type": "splunk.line",
"dataSources": {
"primary": "ds_OhLdAOpY"
},
"options": {
"dataValuesDisplay": "all",
"x": "> primary | seriesByName('_time')",
"nullValueDisplay": "connect",
"xAxisLineVisibility": "show",
"showXMajorGridLines": true,
"backgroundColor": "transparent"
}
},
"viz_uOglCEHX": {
"type": "splunk.singlevalueradial",
"options": {
"unit": "min",
"trendDisplay": "off"
},
"dataSources": {
"primary": "ds_vpLs7iQP"
}
},
"viz_0WeBsDKQ": {
"type": "splunk.singlevalue",
"options": {
"backgroundColor": "> majorValue | matchValue(backgroundColorEditorConfig)",
"majorColor": "#ffffff",
"trendColor": "#ffffff"
},
"dataSources": {
"primary": "ds_3duPstcj"
},
"context": {
"backgroundColorEditorConfig": [
{
"match": "delayed",
"value": "#78062a"
},
{
"match": "",
"value": "#207865"
}
]
}
},
"viz_97oQu4gd": {
"type": "splunk.singlevalue",
"options": {
"unit": "Km",
"majorColor": "> majorValue | rangeValue(majorColorEditorConfig)",
"trendDisplay": "off"
},
"dataSources": {
"primary": "ds_LNrziZwb"
},
"context": {
"majorColorEditorConfig": [
{
"to": 20,
"value": "#D41F1F"
},
{
"from": 20,
"to": 40,
"value": "#D94E17"
},
{
"from": 40,
"to": 60,
"value": "#CBA700"
},
{
"from": 60,
"to": 80,
"value": "#669922"
},
{
"from": 80,
"value": "#118832"
}
]
}
},
"viz_XVDIncpt": {
"type": "splunk.markdown",
"options": {
"markdown": "Status clim-chauffage",
"fontSize": "extraLarge",
"fontColor": "#ffffff"
}
},
"viz_zbw2yJFK": {
"type": "splunk.singlevalue",
"options": {},
"dataSources": {
"primary": "ds_vUMv8hfb"
},
"context": {
"majorColorEditorConfig": [
{
"to": 20,
"value": "#D41F1F"
},
{
"from": 20,
"to": 40,
"value": "#D94E17"
},
{
"from": 40,
"to": 60,
"value": "#CBA700"
},
{
"from": 60,
"to": 80,
"value": "#669922"
},
{
"from": 80,
"value": "#118832"
}
]
},
"showProgressBar": false,
"showLastUpdated": false
},
"viz_5VgmdSm4": {
"type": "splunk.singlevalueradial",
"options": {
"unit": "°",
"trendColor": "> trendValue | rangeValue(trendColorEditorConfig)",
"majorColor": "> majorValue | rangeValue(majorColorEditorConfig)"
},
"dataSources": {
"primary": "ds_RTeET8LI"
},
"context": {
"majorColorEditorConfig": [
{
"value": "#0070f3",
"to": 10
},
{
"value": "#115bad",
"from": 10,
"to": 20
},
{
"value": "#224468",
"from": 20,
"to": 30
},
{
"value": "#9e2520",
"from": 30
}
],
"trendColorEditorConfig": [
{
"value": "#F98C83",
"to": 0
},
{
"value": "#F4BAA9",
"from": 0,
"to": 10
},
{
"value": "#EEE8CE",
"from": 10,
"to": 20
},
{
"value": "#ADCCDD",
"from": 20,
"to": 30
},
{
"value": "#6BB3EE",
"from": 30
}
]
}
},
"viz_dlPEqD83": {
"type": "splunk.map",
"options": {
"center": [
45.8023870255046,
3.6947549773331048
],
"zoom": 7,
"layers": [
{
"type": "bubble"
}
]
},
"dataSources": {
"primary": "ds_rx5ZIdP3"
}
}
},
"inputs": {
"input_global_trp": {
"type": "input.timerange",
"options": {
"token": "global_time",
"defaultValue": "@d,now"
},
"title": "Période globale"
}
},
"layout": {
"type": "absolute",
"options": {
"width": 1440,
"height": 1440
},
"structure": [
{
"item": "viz_Bsib7QHd",
"type": "block",
"position": {
"x": 10,
"y": 180,
"w": 240,
"h": 100
}
},
{
"item": "viz_RM5EST6g",
"type": "block",
"position": {
"x": 250,
"y": 180,
"w": 240,
"h": 100
}
},
{
"item": "viz_LoYH4Rkn",
"type": "block",
"position": {
"x": 490,
"y": 180,
"w": 250,
"h": 100
}
},
{
"item": "viz_SmPWiNin",
"type": "block",
"position": {
"x": 740,
"y": 180,
"w": 210,
"h": 100
}
},
{
"item": "viz_HeXrBVNe",
"type": "block",
"position": {
"x": 10,
"y": 280,
"w": 1420,
"h": 300
}
},
{
"item": "viz_uOglCEHX",
"type": "block",
"position": {
"x": 950,
"y": 180,
"w": 250,
"h": 100
}
},
{
"item": "viz_0WeBsDKQ",
"type": "block",
"position": {
"x": 10,
"y": 100,
"w": 1420,
"h": 80
}
},
{
"item": "viz_97oQu4gd",
"type": "block",
"position": {
"x": 1200,
"y": 180,
"w": 230,
"h": 100
}
},
{
"item": "viz_ApRn1c4W",
"type": "block",
"position": {
"x": 610,
"y": -60,
"w": 260,
"h": 240
}
},
{
"item": "viz_XVDIncpt",
"type": "block",
"position": {
"x": 10,
"y": 580,
"w": 280,
"h": 30
}
},
{
"item": "viz_zbw2yJFK",
"type": "block",
"position": {
"x": 10,
"y": 610,
"w": 1420,
"h": 60
}
},
{
"item": "viz_5VgmdSm4",
"type": "block",
"position": {
"x": 10,
"y": 670,
"w": 210,
"h": 100
}
},
{
"item": "viz_dlPEqD83",
"type": "block",
"position": {
"x": 10,
"y": 770,
"w": 1420,
"h": 290
}
}
],
"globalInputs": [
"input_global_trp"
]
},
"title": "Renault",
"defaults": {
"dataSources": {
"ds.search": {
"options": {
"queryParameters": {
"latest": "$global_time.latest$",
"earliest": "$global_time.earliest$"
}
}
}
}
}
}
]]></definition>
<meta type="hiddenElements"><![CDATA[
{
"hideEdit": false,
"hideOpenInSearch": false,
"hideExport": false
}
]]></meta>
</dashboard>
Loading…
Cancel
Save