2024-02-17 11:06:46 -05:00
--- # A list of dashboards
2024-02-04 16:39:25 -06:00
- title : Test Dasbboard 1
2024-02-17 11:06:46 -05:00
graphs : # Each Dashboard can have 1 or more graphs in it.
- title : Node cpu # Graphs have titles
query_type : Range # The type of graph. Range for timeseries and Scalar for point in time
2024-02-24 19:53:25 -05:00
d3_tickformat : "~s" # Default tick format for the graph y axis
yaxes :
- anchor : "y"
# overlaying: "y"
side : left
tickformat : "~%"
2024-02-17 11:06:46 -05:00
plots : # List of pluts to show on the graph
- source : http://heimdall:9001 # Prometheus source uri for this plot
query : 'sum by (instance)(irate(node_cpu_seconds_total{job="nodestats"}[5m]))' # The PromQL query for this plot
meta : # metadata for this plot
2024-02-19 19:09:52 -05:00
name_format : "`${labels.instance}`" # javascript template literal to format the trace name
2024-02-23 12:50:56 -05:00
fill : tozeroy
2024-02-17 11:06:46 -05:00
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.
2024-02-04 16:39:25 -06:00
- title : Test Dasbboard 2
2024-02-17 11:06:46 -05:00
span : # Dashboards can have default spans that get used if there is no override for the graph
2024-02-14 19:45:28 -06:00
end : 2024-02-10T00:00:00.00Z
2024-02-15 15:28:31 -05:00
duration : 2 days
step_duration : 1 minute
2024-02-04 16:39:25 -06:00
graphs :
2024-02-16 17:23:11 -05:00
- title : Node cpu percent
2024-02-24 19:53:25 -05:00
d3_tickformat : "~%"
2024-02-11 19:08:15 -06:00
query_type : Range
2024-02-24 19:53:25 -05:00
yaxes :
- anchor : "y" # This axis is y
tickformat : "~%"
- overlaying : "y" # This axis is y2 but overlays axis y
side : right # show this axis on the right side instead of the left
tickformat : "~%"
2024-02-16 17:23:11 -05:00
plots :
- source : http://heimdall:9001
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]))
meta :
2024-02-19 19:09:52 -05:00
name_format : "`${labels.instance} system`"
2024-02-24 19:53:25 -05:00
yaxis : "y"
2024-02-16 17:23:11 -05:00
- source : http://heimdall:9001
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]))
meta :
2024-02-19 19:09:52 -05:00
name_format : "`${labels.instance} user`"
2024-02-24 19:53:25 -05:00
yaxis : "y2"
2024-02-04 16:39:25 -06:00
- title : Node memory
2024-02-11 19:08:15 -06:00
query_type : Scalar
2024-02-24 19:53:25 -05:00
yaxes :
- anchor : "y"
tickformat : "~s"
2024-02-16 17:23:11 -05:00
plots :
- source : http://heimdall:9001
query : 'node_memory_MemFree_bytes{job="nodestats"}'
meta :
2024-02-19 19:09:52 -05:00
name_format : "`${labels.instance}`"