You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Splunk_Deploiement/apps/trackme/default/data/ui/views/trackMe_sla.xml

408 lines
11 KiB

<dashboard version="2" theme="dark">
<label>TrackMe - Quality Of Service Auditing - SLA compliance reporting</label>
<description></description>
<definition><![CDATA[
{
"dataSources": {
"ds_Mg04DNO6": {
"type": "ds.search",
"options": {
"query": "| mcatalog values(metric_name) as metrics where `trackme_idx_search_filter` metric_name=trackme.sla.object_state by tenant_id, object_category, object\n| fields tenant_id, object_category, object",
"queryParameters": {
"earliest": "$global_time.earliest$",
"latest": "$global_time.latest$"
}
},
"name": "populate_tenants"
},
"ds_4LUsXK1K": {
"type": "ds.chain",
"options": {
"extend": "ds_Mg04DNO6",
"query": "| stats count by tenant_id \n| sort 0 tenant_id"
},
"name": "populate_tenant_id"
},
"ds_KWAYq9tR": {
"type": "ds.chain",
"options": {
"extend": "ds_Mg04DNO6",
"query": "| search tenant_id=\"$tk_tenant_id$\"\n| stats count by object_category\n| sort 0 object_category"
},
"name": "populate_object_category"
},
"ds_RiJ5iY8a": {
"type": "ds.chain",
"options": {
"extend": "ds_Mg04DNO6",
"query": "| search tenant_id=\"$tk_tenant_id$\" object_category=\"$tk_object_category$\"\n| stats c by object\n| sort 0 object"
},
"name": "populate_object"
},
"ds_OXKeKxE8": {
"type": "ds.search",
"options": {
"query": "| mstats latest(trackme.sla.object_state) as object_state where `trackme_idx_search_filter` tenant_id=$tk_tenant_id$ object_category=\"$tk_object_category$\" object=\"$tk_object$\" priority=\"$tk_priority$\" monitored_state=\"enabled\" [ | inputlookup trackme_virtual_tenants | eval keyid=_key | table tenant_id ] by tenant_id, object_category, object, priority, monitored_state span=1m\n| eval current_state=case(\n object_state = 1, \"green\",\n object_state = 2, \"red\",\n object_state = 3, \"orange\",\n object_state = 4, \"blue\",\n object_state = 5, \"unknown\"\n )\n| fields _time tenant_id, object_category, object, current_state, priority, monitored_state\n| stats first(current_state) as current_state, first(priority) as priority, first(monitored_state) as monitored_state by _time, tenant_id, object_category, object\n| streamstats last(_time) as \"prev_time\", last(current_state) as prev_state current=f by tenant_id, object_category, object\n| where NOT [ | trackmereturnmaintenancedb tenant_id=$tk_tenant_id$ | table search_str | return $search_str ]\n| eval range_duration=_time-prev_time, green_time=case(current_state=\"green\" OR current_state=\"blue\", range_duration), not_green_time=case(current_state!=\"green\" AND current_state!=\"blue\", range_duration)\n| stats sum(range_duration) as range_duration, sum(green_time) as green_time, sum(not_green_time) as not_green_time, latest(priority) as priority, latest(monitored_state) as monitored_state by tenant_id, object_category, object\n| where isnum(range_duration)\n| eval green_time=if(isnum(green_time), green_time, 0), not_green_time=if(isnum(not_green_time), not_green_time, 0), percent_sla=round(green_time/range_duration*100, 2)\n| foreach range_duration green_time not_green_time [ eval <<FIELD>> = tostring('<<FIELD>>', \"duration\") ]\n| search priority=\"$tk_priority$\" AND monitored_state=\"enabled\"\n| fields tenant_id, object, object_category, percent_sla, priority, monitored_state, range_duration, green_time, not_green_time\n| rename range_duration as \"total duration\", green_time as \"duration green\", not_green_time as \"duration not green\"",
"queryParameters": {
"earliest": "$global_time.earliest$",
"latest": "$global_time.latest$"
}
},
"name": "table_sla"
},
"ds_Q8G1MpD1": {
"type": "ds.chain",
"options": {
"extend": "ds_OXKeKxE8",
"query": "| stats avg(percent_sla) as avg"
},
"name": "single_sla"
}
},
"visualizations": {
"viz_29HlXL59": {
"type": "splunk.image",
"options": {
"preserveAspectRatio": true,
"src": "../../static/app/trackme/icons/trackme.png"
}
},
"viz_kkzyyTTf": {
"type": "splunk.table",
"options": {
"count": 50,
"columnFormat": {
"tenant_id": {
"width": 150
},
"object_category": {
"width": 150
},
"object": {
"width": 450
},
"percent_sla": {
"data": "> table | seriesByName(\"percent_sla\") | formatByType(percent_slaColumnFormatEditorConfig)",
"rowColors": "> table | seriesByName(\"percent_sla\") | rangeValue(percent_slaRowColorsEditorConfig)",
"width": 150
},
"priority": {
"data": "> table | seriesByName(\"priority\") | formatByType(priorityColumnFormatEditorConfig)",
"rowColors": "> table | seriesByName(\"priority\") | matchValue(priorityRowColorsEditorConfig)",
"width": 100
},
"monitored_state": {
"data": "> table | seriesByName(\"monitored_state\") | formatByType(monitored_stateColumnFormatEditorConfig)",
"rowColors": "> table | seriesByName(\"monitored_state\") | matchValue(monitored_stateRowColorsEditorConfig)",
"width": 150
},
"total duration": {
"width": 185
},
"duration green": {
"width": 185
},
"duration not green": {
"width": 185
}
}
},
"dataSources": {
"primary": "ds_OXKeKxE8"
},
"context": {
"percent_slaColumnFormatEditorConfig": {
"number": {
"thousandSeparated": false,
"unitPosition": "after",
"unit": "%",
"precision": 2
}
},
"percent_slaRowColorsEditorConfig": [
{
"value": "#dc4e41",
"to": 50
},
{
"value": "#dc4e41",
"from": 50,
"to": 80
},
{
"value": "#f1813f",
"from": 80,
"to": 90
},
{
"value": "#45D4BA",
"from": 90
}
],
"priorityColumnFormatEditorConfig": {
"string": {
"unitPosition": "after"
}
},
"priorityRowColorsEditorConfig": [
{
"match": "low",
"value": "#5C33FF"
},
{
"match": "medium",
"value": "#207865"
},
{
"match": "high",
"value": "#AD3F20"
}
],
"monitored_stateColumnFormatEditorConfig": {
"string": {
"unitPosition": "after"
}
},
"monitored_stateRowColorsEditorConfig": [
{
"match": "disabled",
"value": "#78062a"
},
{
"match": "enabled",
"value": "#207865"
}
]
},
"eventHandlers": [
{
"type": "drilldown.linkToDashboard",
"options": {
"app": "trackme",
"dashboard": "trackMe_sla_flip",
"tokens": [
{
"token": "tk_tenant_id",
"value": "row.tenant_id.value"
},
{
"token": "tk_object_category",
"value": "row.object_category.value"
},
{
"token": "tk_object",
"value": "row.object.value"
}
]
}
}
],
"title": "SLA percentage per tenant / object",
"description": "Click on a row to see flipping events for this object"
},
"viz_ACR5b0DN": {
"type": "splunk.singlevalueradial",
"options": {
"unit": "%",
"numberPrecision": 2,
"majorColor": "> majorValue | rangeValue(majorColorEditorConfig)",
"backgroundColor": "transparent"
},
"dataSources": {
"primary": "ds_Q8G1MpD1"
},
"context": {
"majorColorEditorConfig": [
{
"to": 50,
"value": "#dc4e41"
},
{
"from": 50,
"to": 90,
"value": "#f1813f"
},
{
"from": 90,
"value": "#45D4BA"
}
]
}
}
},
"inputs": {
"input_global_trp": {
"type": "input.timerange",
"options": {
"token": "global_time",
"defaultValue": "-90d@d,now"
},
"title": "Period:"
},
"input_uHIQHlyb": {
"options": {
"items": ">frame(label, value) | prepend(formattedStatics) | objects()",
"token": "tk_tenant_id"
},
"title": "tenant_id:",
"type": "input.dropdown",
"dataSources": {
"primary": "ds_4LUsXK1K"
},
"context": {
"formattedConfig": {
"number": {
"prefix": ""
}
},
"formattedStatics": ">statics | formatByType(formattedConfig)",
"statics": [],
"label": ">primary | seriesByName(\"tenant_id\") | renameSeries(\"label\") | formatByType(formattedConfig)",
"value": ">primary | seriesByName(\"tenant_id\") | renameSeries(\"value\") | formatByType(formattedConfig)"
}
},
"input_nAuOVL6b": {
"options": {
"items": [
{
"label": "All",
"value": "*"
}
],
"defaultValue": "*",
"token": "tk_object_category"
},
"title": "object_category:",
"type": "input.dropdown",
"dataSources": {
"primary": "ds_KWAYq9tR"
},
"context": {}
},
"input_qszD4uG4": {
"options": {
"items": ">frame(label, value) | prepend(formattedStatics) | objects()",
"defaultValue": "*",
"token": "tk_object"
},
"title": "object:",
"type": "input.dropdown",
"dataSources": {
"primary": "ds_RiJ5iY8a"
},
"context": {
"formattedConfig": {
"number": {
"prefix": ""
}
},
"formattedStatics": ">statics | formatByType(formattedConfig)",
"statics": [
[
"All"
],
[
"*"
]
],
"label": ">primary | seriesByName(\"object\") | renameSeries(\"label\") | formatByType(formattedConfig)",
"value": ">primary | seriesByName(\"object\") | renameSeries(\"value\") | formatByType(formattedConfig)"
}
},
"input_YueZVL1a": {
"options": {
"items": [
{
"label": "All",
"value": "*"
},
{
"label": "high",
"value": "high"
},
{
"label": "medium",
"value": "medium"
},
{
"label": "low",
"value": "low"
}
],
"defaultValue": "*",
"token": "tk_priority"
},
"title": "priority:",
"type": "input.dropdown"
}
},
"layout": {
"type": "absolute",
"options": {
"height": 1080,
"width": 1920
},
"structure": [
{
"item": "viz_29HlXL59",
"type": "block",
"position": {
"x": 1630,
"y": 30,
"w": 120,
"h": 60
}
},
{
"item": "viz_kkzyyTTf",
"type": "block",
"position": {
"x": 0,
"y": 160,
"w": 1750,
"h": 900
}
},
{
"item": "viz_ACR5b0DN",
"type": "block",
"position": {
"x": 820,
"y": 10,
"w": 250,
"h": 150
}
}
],
"globalInputs": [
"input_global_trp",
"input_uHIQHlyb",
"input_nAuOVL6b",
"input_YueZVL1a",
"input_qszD4uG4"
]
},
"title": "TrackMe - Quality Of Service Auditing - SLA compliance reporting",
"defaults": {
"dataSources": {
"ds.search": {
"options": {
"queryParameters": {
"latest": "$global_time.latest$",
"earliest": "$global_time.earliest$"
}
}
}
}
},
"description": ""
}
]]> </definition>
<meta type="hiddenElements"><![CDATA[
{
"hideEdit": false,
"hideOpenInSearch": false,
"hideExport": false
}
]]> </meta>
</dashboard>