Skip to content

Splunk HEC Metrics AggregatedSummary Support #21638

Answered by jszwedko
clmaestas-work asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! Yes, unfortunately it looks like that metric kind isn't supported yet. Looking at

impl HecMetricsProcessedEventMetadata {
fn extract_metric_name(metric: &Metric, default_namespace: Option<&str>) -> String {
encode_namespace(metric.namespace().or(default_namespace), '.', metric.name())
}
fn extract_metric_value(metric: &Metric) -> Option<f64> {
match *metric.value() {
MetricValue::Counter { value } => Some(value),
MetricValue::Gauge { value } => Some(value),
_ => {
emit!(SplunkInvalidMetricReceivedError {
value: metric.value(),
kind: &metric.kind

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@clmaestas-work
Comment options

Answer selected by clmaestas-work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants