Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exometer_report: Fix static subscriber spec with Extra param #148

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

pespin
Copy link
Contributor

@pespin pespin commented Aug 29, 2024

As per documentation in [1], it is possible to pass an Extra param: "{select, {MatchPattern, DataPoint, Interval [, Retry [, Extra] ]}}" Example:
"""
{select, {[{ {['' | ''],'',''}, [], ['$_']}],
exometer_report_statsd,
value,
1000,
true,
[{report_type, counter}]
}
}
"""

Without this patch, exometer_report.erl was failing with log warning "Incorrect static subscriber spec".

[1] https://github.com/Feuerlabs/exometer_core/tree/master#configuring-static-subscriptions

As per documentation in [1], it is possible to pass an Extra param:
"{select, {MatchPattern, DataPoint, Interval [, Retry [, Extra] ]}}"
Example:
"""
{select, {[{ {['_' | '_'],'_','_'}, [], ['$_']}],
          exometer_report_statsd,
          value,
          1000,
	  true,
          [{report_type, counter}]
	 }
}
"""

Without this patch, exometer_report.erl was failing with log warning
"Incorrect static subscriber spec".

[1] https://github.com/Feuerlabs/exometer_core/tree/master#configuring-static-subscriptions
@uwiger uwiger merged commit d1d8b08 into Feuerlabs:master Sep 6, 2024
3 checks passed
@uwiger
Copy link
Member

uwiger commented Sep 6, 2024

Thanks!

@pespin pespin deleted the osmocom/fix-select branch November 15, 2024 22:55
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.

2 participants