Skip to content

fix(examples): set explicit GAUGE and COUNTER types across example configs - #1634

Merged
dhoard merged 2 commits into
mainfrom
bwplotka/issue-1623-avoid-untyped-examples
Oct 27, 2026
Merged

dhoard merged 2 commits into
mainfrom
bwplotka/issue-1623-avoid-untyped-examples

Conversation

@bwplotka

Copy link
Copy Markdown
Member

Fixes prometheus/jmx_exporter#1623 (cc @dhoard @fstab).

Replaces type: UNTYPED and omitted rule type fields across examples/*.yml and examples/*.yaml with explicit GAUGE and COUNTER types, splitting rules that previously matched both counters and gauges (such as activemq.yml, kafka-connect.yml, kafka-0-8-2.yml, and kafka-pre0-8-2.yml).

Commits:

  • fix(examples): set explicit GAUGE and COUNTER types across example configs
  • test(collector): verify all example configs declare GAUGE or COUNTER types

…nfigs

Replace explicit UNTYPED rules and omitted rule types in examples/*.yml and examples/*.yaml with explicit GAUGE or COUNTER types, splitting combined counter/gauge rules where needed.

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
…types

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
@dhoard
dhoard merged commit cf3180f into main Oct 27, 2026
3 checks passed
@dhoard
dhoard deleted the bwplotka/issue-1623-avoid-untyped-examples branch October 27, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid UNTYPED / UNKNOWN metric types in example configs and consider defaulting Rule.type to GAUGE

2 participants