docs: Helpful comments for the dashboard configuration

This commit is contained in:
Jeremy Wall 2024-02-17 11:06:46 -05:00
parent 0cf2c537ae
commit dbb69da516

View File

@ -1,20 +1,24 @@
--- --- # A list of dashboards
- title: Test Dasbboard 1 - title: Test Dasbboard 1
graphs: graphs: # Each Dashboard can have 1 or more graphs in it.
- title: Node cpu - title: Node cpu # Graphs have titles
d3_tick_format: "~s" query_type: Range # The type of graph. Range for timeseries and Scalar for point in time
plots: d3_tick_format: "~s" # Default tick format for the graph y axis
- source: http://heimdall:9001 plots: # List of pluts to show on the graph
query: 'sum by (instance)(irate(node_cpu_seconds_total{job="nodestats"}[5m]))' - source: http://heimdall:9001 # Prometheus source uri for this plot
meta: query: 'sum by (instance)(irate(node_cpu_seconds_total{job="nodestats"}[5m]))' # The PromQL query for this plot
name_label: instance meta: # metadata for this plot
query_type: Range name_label: instance # Grab a trace name from the query tags
span: #d3_tick_format: "~%" # d3 tick format override for this plot's yaxis
end: now #name_prefix: "Prefix" # A prefix for this sublots trace names
duration: 1d #name_suffix: "Suffix" # A suffix for this subplots trace names
step_duration: 10min #named_axis: "y" # yaxis name to use for this subplots traces
span: # The span for this range query
end: now # Where the span ends. RFC3339 format with special handling for the now keyword
duration: 1d # duration of the span. Uses SI formatting for duration amounts.
step_duration: 10min # step size for the duration amounts.
- title: Test Dasbboard 2 - title: Test Dasbboard 2
span: span: # Dashboards can have default spans that get used if there is no override for the graph
end: 2024-02-10T00:00:00.00Z end: 2024-02-10T00:00:00.00Z
duration: 2 days duration: 2 days
step_duration: 1 minute step_duration: 1 minute
@ -27,16 +31,18 @@
query: | query: |
sum by (instance)(irate(node_cpu_seconds_total{mode="system",job="nodestats"}[5m])) / sum by (instance)(irate(node_cpu_seconds_total{job="nodestats"}[5m])) sum by (instance)(irate(node_cpu_seconds_total{mode="system",job="nodestats"}[5m])) / sum by (instance)(irate(node_cpu_seconds_total{job="nodestats"}[5m]))
meta: meta:
d3_tick_format: "~s" d3_tick_format: "~%"
name_label: instance name_label: instance
name_prefix: "System" name_prefix: "System"
named_axis: "y"
- source: http://heimdall:9001 - source: http://heimdall:9001
query: | query: |
sum by (instance)(irate(node_cpu_seconds_total{mode="user",job="nodestats"}[5m])) / sum by (instance)(irate(node_cpu_seconds_total{job="nodestats"}[5m])) sum by (instance)(irate(node_cpu_seconds_total{mode="user",job="nodestats"}[5m])) / sum by (instance)(irate(node_cpu_seconds_total{job="nodestats"}[5m]))
meta: meta:
#d3_tick_format: "~s" d3_tick_format: "~%"
name_label: instance name_label: instance
name_suffix: "User" name_suffix: "User"
named_axis: "y"
- title: Node memory - title: Node memory
query_type: Scalar query_type: Scalar
plots: plots: