--- # A list of dashboards - title: Test Dasbboard 1 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 d3_tickformat: "~s" # Default tick format for the graph y axis legend_orientation: h yaxes: - anchor: "y" # overlaying: "y" side: left tickformat: "~%" 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 name_format: "`${labels.instance}`" # javascript template literal to format the trace name fill: tozeroy 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 span: # Dashboards can have default spans that get used if there is no override for the graph end: 2024-02-10T00:00:00.00Z duration: 2 days step_duration: 1 minute graphs: - title: Node cpu percent d3_tickformat: "~%" query_type: Range 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: "~%" 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: name_format: "`${labels.instance} system`" yaxis: "y" - 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: name_format: "`${labels.instance} user`" yaxis: "y2" - title: Node memory query_type: Scalar yaxes: - anchor: "y" tickformat: "~s" plots: - source: http://heimdall:9001 query: 'node_memory_MemFree_bytes{job="nodestats"}' meta: name_format: "`${labels.instance}`" - title: Log Test Dashboard 1 span: end: now duration: 1h step_duration: 5min logs: - title: Systemd Service Logs query_type: Range yaxes: - anchor: "y" # This axis is y source: http://heimdall:3100 query: | {job="systemd-journal"}