Skip to content

Commit

Permalink
agent-flow-mixin: add aggregated remote write panel (#6116)
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanburgess authored Jan 12, 2024
1 parent e23aa30 commit fdb3ad7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Main (unreleased)

- Removed support for Windows 2012 in line with Microsoft end of life. (@mattdurham)

- Split instance ID and component groupings into separate panels for `remote write active series by component` in the Flow mixin. (@tristanburgess)

v0.39.0 (2024-01-09)
--------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ local stackedPanelMixin = {
received a sample for. Active series are garbage collected whenever a
truncation of the WAL occurs.
|||) +
panel.withPosition({ x: 0, y: 20, w: 12, h: 10 }) +
panel.withPosition({ x: 0, y: 20, w: 8, h: 10 }) +
panel.withQueries([
panel.newQuery(
expr=|||
Expand All @@ -301,25 +301,48 @@ local stackedPanelMixin = {
])
),

// Active series (by instance/component)
(
panel.new(title='Active series (by instance/component)', type='timeseries') +
panel.withUnit('short') +
panel.withDescription(|||
Total number of active series which are currently being tracked by
prometheus.remote_write components, with separate lines for each agent instance.
An "active series" is a series that prometheus.remote_write recently
received a sample for. Active series are garbage collected whenever a
truncation of the WAL occurs.
|||) +
panel.withPosition({ x: 8, y: 20, w: 8, h: 10 }) +
panel.withQueries([
panel.newQuery(
expr=|||
agent_wal_storage_active_series{cluster="$cluster", namespace="$namespace", instance=~"$instance", component_id!="", component_id=~"$component", url=~"$url"}
|||,
legendFormat='{{instance}} / {{component_id}}',
),
])
),

// Active series (by component)
(
panel.new(title='Active series (by component)', type='timeseries') +
panel.withUnit('short') +
panel.withDescription(|||
Total number of active series which are currently being tracked by
prometheus.remote_write components.
prometheus.remote_write components, aggregated across all instances.
An "active series" is a series that prometheus.remote_write recently
received a sample for. Active series are garbage collected whenever a
truncation of the WAL occurs.
|||) +
panel.withPosition({ x: 12, y: 20, w: 12, h: 10 }) +
panel.withPosition({ x: 16, y: 20, w: 8, h: 10 }) +
panel.withQueries([
panel.newQuery(
expr=|||
agent_wal_storage_active_series{cluster="$cluster", namespace="$namespace", instance=~"$instance", component_id=~"$component", url=~"$url"}
sum by (component_id) (agent_wal_storage_active_series{cluster="$cluster", namespace="$namespace", instance=~"$instance", component_id!="", component_id=~"$component", url=~"$url"})
|||,
legendFormat='{{instance}} / {{component_id}}',
legendFormat='{{component_id}}',
),
])
),
Expand Down

0 comments on commit fdb3ad7

Please sign in to comment.