Dashboards & Visualizations

How to get the max of p90 over a month ?

rahul_n
Explorer

Hi. 

I am trying to find max value of p90 over a month for 1 API.

The query I use for finding stats: 

 

<basic splunk query> 
| search API = API1
| stats p90(processing_time) as 90%_time by API 

 

where processing_time is the time which would display the time used for finding p90.

 

Can someone help me with the query to find the max value of p90 calculated over a month ? 

So that I can use that value to generate some kind of alerts.

 

Any help is greatly appreciated. Thanks.

Labels (5)
0 Karma
1 Solution

tscroggins
Influencer

@rahul_n 

How are you binning your data for the initial set 90th percentile calculations? By day? By host? You can use bin, stats, timechart, etc. in various combinations to achieve your desired outcome. Here's one example with data initially binned by day:

<basic splunk query> 
| search API = API1
| bin _time span=1d
| stats p90(processing_time) as p90_processing_time by _time API
| stats max(p90_processing_time) as 90%_time by API

View solution in original post

tscroggins
Influencer

@rahul_n 

How are you binning your data for the initial set 90th percentile calculations? By day? By host? You can use bin, stats, timechart, etc. in various combinations to achieve your desired outcome. Here's one example with data initially binned by day:

<basic splunk query> 
| search API = API1
| bin _time span=1d
| stats p90(processing_time) as p90_processing_time by _time API
| stats max(p90_processing_time) as 90%_time by API

rahul_n
Explorer

Thanks @tscroggins for the solution.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...