Splunk Enterprise

How to implement this Prometheus Query using Splunk Query Language

lpolo
Motivator

Hi,

What is the best query to map this promethues query in splunk query language?

Prometheus query:
100*sum_over_time(metric_name_gauge{}[1d:1m])/1440

metric_name_gauge  possible values 0 or 1.

This query adds the values of metric_name_gauge for a period if 1 day with a resolution of 1 minute and then, it divides the result by the number of minutes in a day which is 1440 minutes. --> a period to time of 1d.

Any idea How to implement this query using Splunk Query Language...

Thanks in advance.

Labels (1)
0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...