Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
build
/
File Content:
3543.eecef49ce94da5ee0418.js
"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[3543],{32346:(it,ie,o)=>{o.d(ie,{g:()=>H});var V=o(96540),b=o(32196),F=o(14186),s=o(79924),D=o(10354),P=o(29020),se=Object.defineProperty,te=Object.defineProperties,h=Object.getOwnPropertyDescriptors,ae=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,Q=(T,f,w)=>f in T?se(T,f,{enumerable:!0,configurable:!0,writable:!0,value:w}):T[f]=w,N=(T,f)=>{for(var w in f||(f={}))oe.call(f,w)&&Q(T,w,f[w]);if(ae)for(var w of ae(f))C.call(f,w)&&Q(T,w,f[w]);return T},j=(T,f)=>te(T,h(f));const H=({config:T,onChange:f,className:w})=>{const B=J=>{f(j(N({},T),{jsonData:j(N({},T.jsonData),{keepCookies:J})}))},W=J=>{f(j(N({},T),{jsonData:j(N({},T.jsonData),{timeout:parseInt(J.currentTarget.value,10)})}))},ce={container:(0,b.css)({maxWidth:578})};return V.createElement(P.I,{title:"Advanced HTTP settings",className:(0,b.cx)(ce.container,w)},V.createElement(F.I,{htmlFor:"advanced-http-cookies",label:"Allowed cookies",labelWidth:24,tooltip:"Grafana proxy deletes forwarded cookies by default. Specify cookies by name that should be forwarded to the data source.",disabled:T.readOnly,grow:!0},V.createElement(s.u,{id:"advanced-http-cookies",placeholder:"New cookie (hit enter to add)",tags:T.jsonData.keepCookies,onChange:B})),V.createElement(F.I,{htmlFor:"advanced-http-timeout",label:"Timeout",labelWidth:24,tooltip:"HTTP request timeout in seconds",disabled:T.readOnly,grow:!0},V.createElement(D.p,{id:"advanced-http-timeout",type:"number",min:0,placeholder:"Timeout in seconds","aria-label":"Timeout in seconds",value:T.jsonData.timeout,onChange:W})))}},33309:(it,ie,o)=>{o.d(ie,{m:()=>oe});var V=o(32196),b=o(96540),F=o(22391),s=o(29020),D=o(35931),P=o(40845),se=o(39268),te=o(14186),h=o(15292);function ae({options:Q,onOptionsChange:N}){const j=(0,P.of)(C);return b.createElement("div",{className:j.container},b.createElement(se.C,{className:j.row},b.createElement(te.I,{tooltip:"Displays the node graph above the trace view. Default: disabled",label:"Enable node graph",labelWidth:26},b.createElement(h.K,{id:"enableNodeGraph",value:Q.jsonData.nodeGraph?.enabled,onChange:H=>(0,F.lO)({onOptionsChange:N,options:Q},"nodeGraph",{...Q.jsonData.nodeGraph,enabled:H.currentTarget.checked})}))))}const oe=({options:Q,onOptionsChange:N})=>{let j=Q.type;return j+=Q.type==="tempo"?"/configure-tempo-data-source/#node-graph":"/#node-graph",b.createElement(s.I,{title:"Node graph",description:b.createElement(D.H,{description:"Show or hide the node graph visualization.",suffix:j,feature:"the node graph"})},b.createElement(ae,{options:Q,onOptionsChange:N}))},C=Q=>({infoText:(0,V.css)({label:"infoText",paddingBottom:Q.spacing(2),color:Q.colors.text.secondary}),container:(0,V.css)({label:"container",width:"100%"}),row:(0,V.css)({label:"row",alignItems:"baseline"})})},90057:(it,ie,o)=>{o.d(ie,{$:()=>H});var V=o(32196),b=o(96540),F=o(22391),s=o(91062),D=o(35931),P=o(55882),se=o(40845),te=o(39268),h=o(14186),ae=o(55852),oe=o(10354),C=o(20323),Q=o(63009),N=o(43549);function j({options:f,onOptionsChange:w}){const B=(0,se.of)(T);return b.createElement("div",{className:(0,V.css)({width:"100%"})},b.createElement(te.C,{className:B.row},b.createElement(h.I,{tooltip:"The Prometheus data source the trace is going to navigate to",label:"Data source",labelWidth:26},b.createElement(P.s,{inputId:"trace-to-metrics-data-source-picker",pluginId:"prometheus",current:f.jsonData.tracesToMetrics?.datasourceUid,noDefault:!0,width:40,onChange:W=>(0,F.lO)({onOptionsChange:w,options:f},"tracesToMetrics",{...f.jsonData.tracesToMetrics,datasourceUid:W.uid})})),f.jsonData.tracesToMetrics?.datasourceUid?b.createElement(ae.$n,{type:"button",variant:"secondary",size:"sm",fill:"text",onClick:()=>{(0,F.lO)({onOptionsChange:w,options:f},"tracesToMetrics",{...f.jsonData.tracesToMetrics,datasourceUid:void 0})}},"Clear"):null),b.createElement(te.C,null,b.createElement(C.e,{label:(0,N.cJ)("start"),tooltip:(0,N.XX)("start","-2m"),value:f.jsonData.tracesToMetrics?.spanStartTimeShift||"",onChange:W=>{(0,F.lO)({onOptionsChange:w,options:f},"tracesToMetrics",{...f.jsonData.tracesToMetrics,spanStartTimeShift:W})},placeholder:"-2m",isInvalidError:N.FJ})),b.createElement(te.C,null,b.createElement(C.e,{label:(0,N.cJ)("end"),tooltip:(0,N.XX)("end","2m"),value:f.jsonData.tracesToMetrics?.spanEndTimeShift||"",onChange:W=>{(0,F.lO)({onOptionsChange:w,options:f},"tracesToMetrics",{...f.jsonData.tracesToMetrics,spanEndTimeShift:W})},placeholder:"2m",isInvalidError:N.FJ})),b.createElement(te.C,null,b.createElement(h.I,{tooltip:"Tags that will be used in the metrics query",label:"Tags",labelWidth:26},b.createElement(Q.l,{values:f.jsonData.tracesToMetrics?.tags??[],onChange:W=>(0,F.lO)({onOptionsChange:w,options:f},"tracesToMetrics",{...f.jsonData.tracesToMetrics,tags:W})}))),f.jsonData.tracesToMetrics?.queries?.map((W,ce)=>b.createElement("div",{key:ce,className:B.queryRow},b.createElement(h.I,{label:"Link Label",labelWidth:26,tooltip:"Descriptive label for the linked query"},b.createElement(oe.p,{label:"Link Label",type:"text",allowFullScreen:!0,value:W.name,width:40,onChange:J=>{const we=(f.jsonData.tracesToMetrics?.queries??[]).map((re,Xe)=>Xe===ce?{...re,name:J.currentTarget.value}:re);(0,F.lO)({onOptionsChange:w,options:f},"tracesToMetrics",{...f.jsonData.tracesToMetrics,queries:we})}})),b.createElement(h.I,{label:"Query",labelWidth:10,tooltip:"The Prometheus query that will run when navigating from a trace to metrics. Interpolate tags using the `$__tags` keyword",grow:!0},b.createElement(oe.p,{label:"Query",type:"text",allowFullScreen:!0,value:W.query,onChange:J=>{const we=(f.jsonData.tracesToMetrics?.queries??[]).map((re,Xe)=>Xe===ce?{...re,query:J.currentTarget.value}:re);(0,F.lO)({onOptionsChange:w,options:f},"tracesToMetrics",{...f.jsonData.tracesToMetrics,queries:we})}})),b.createElement(ae.$n,{variant:"destructive",title:"Remove query",icon:"times",type:"button",onClick:()=>{const J=f.jsonData.tracesToMetrics?.queries.filter((we,re)=>re!==ce);(0,F.lO)({onOptionsChange:w,options:f},"tracesToMetrics",{...f.jsonData.tracesToMetrics,queries:J})}}))),b.createElement(ae.$n,{variant:"secondary",title:"Add query",icon:"plus",type:"button",onClick:()=>{(0,F.lO)({onOptionsChange:w,options:f},"tracesToMetrics",{...f.jsonData.tracesToMetrics,queries:[...f.jsonData.tracesToMetrics?.queries??[],{query:""}]})}},"Add query"))}const H=({options:f,onOptionsChange:w})=>{let B=f.type;return B+=f.type==="tempo"?"/configure-tempo-data-source/#trace-to-metrics":"/#trace-to-metrics",b.createElement(s.A,{title:"Trace to metrics",description:b.createElement(D.H,{description:"Navigate from a trace span to the selected data source's metrics.",suffix:B,feature:"trace to metrics"}),isCollapsible:!0,isInitiallyOpen:!0},b.createElement(j,{options:f,onOptionsChange:w}))},T=f=>({infoText:{paddingBottom:f.spacing(2),color:f.colors.text.secondary},row:(0,V.css)({label:"row",alignItems:"baseline"}),queryRow:(0,V.css)({label:"queryRow",display:"flex",flexFlow:"wrap"})})},63543:(it,ie,o)=>{o.r(ie),o.d(ie,{plugin:()=>dd});var V=o(40187),b=o(69129),F=o(3591),s=o(96540),D=o(14110),P=o(32264),se=o(72109);function te(){return(0,D.rR)("grafana_traces_cheatsheet_clicked",{datasourceType:"tempo",grafana_version:P.$.buildInfo.version}),s.createElement(s.Fragment,null,s.createElement("h2",null,"Tempo Cheat Sheet"),s.createElement("p",null,s.createElement(se.Y,{href:"https://grafana.com/docs/tempo/latest/",external:!0},"Grafana Tempo")," ","is an open source, easy-to-use, and high-volume distributed tracing backend."),s.createElement("p",null,"Tempo implements"," ",s.createElement(se.Y,{href:"https://grafana.com/docs/tempo/latest/traceql",external:!0},"TraceQL"),", a traces-first query language inspired by LogQL and PromQL. This query language allows users to precisely and easily select spans and jump directly to the spans fulfilling the specified conditions."),s.createElement("p",null,"You can compose TraceQL queries using either the Search tab (the TraceQL query builder) or the TraceQL tab (the TraceQL query editor). Both of these methods let you build queries and drill-down into result sets. (",s.createElement(se.Y,{href:"https://grafana.com/docs/grafana/latest/datasources/tempo/query-editor/",external:!0},"Learn more"),")"))}var h=o(32196),ae=o(37390),oe=o(37270),C=o(39268),Q=o(14186),N=o(66864),j=o(94354),H=o(55852),T=o(40845),f=o(24705),w=o(76892);function B(e){return W(e/1e3)}function W(e){return Math.floor(e/60)}function ce(e,t){if(e&&t){const a=B(e.from.valueOf())===B(t.from.valueOf()),r=B(e.to.valueOf())===B(t.to.valueOf());return!(a&&r)}return!1}const J=/[*+?()|\\.\[\]{}^$]/g;function we(e){return e.replace(J,"\\$&")}function re(e){return e.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/"/g,'\\"')}function Xe(e){return e.replace(/\\n/g,` `).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}function Va(e){return re(we(e))}function ld(e,t){return Fa(t)?Va(e):re(e)}function Fa(e){return!!(e&&(e.includes("=~")||e.includes("!~")))}function id(e){const t=["b","kib","Kib","kb","KB","mib","Mib","mb","MB","gib","Gib","gb","GB","tib","Tib","tb","TB","pib","Pib","pb","PB","eib","Eib","eb","EB"],a=new RegExp(`^(?:-?\\d+(?:\\.\\d+)?)(?:${t.join("|")})$`);return!!e.match(a)}const Ua=s.lazy(()=>Promise.all([o.e(1216),o.e(6587),o.e(84),o.e(1952)]).then(o.bind(o,61226))),ja=e=>s.createElement(s.Suspense,{fallback:null},s.createElement(Ua,{...e})),Xa=e=>{const t=(0,s.useRef)(null),{onRunQuery:a,onChange:r,...n}=e,d=i=>{t.current=i,r(i),a()},l=i=>{r(i)};return s.createElement(ja,{onRunQuery:d,onBlur:l,onChange:r,...n})};class Wa extends s.PureComponent{constructor(t){super(t),this._isMounted=!1,this.onChangeQuery=(a,r)=>{const{query:n,onChange:d,onRunQuery:l}=this.props;if(d){const i={...n,expr:a};d(i),r&&l&&l()}},this.state={labelsLoaded:!1}}async componentDidMount(){this._isMounted=!0,await this.props.datasource.languageProvider.start(),this._isMounted&&this.setState({labelsLoaded:!0})}componentWillUnmount(){this._isMounted=!1}componentDidUpdate(t){const{range:a,datasource:{languageProvider:r}}=this.props;ce(a,t.range)&&r.fetchLabels()}render(){const{ExtraFieldElement:t,query:a,datasource:r,history:n,onRunQuery:d}=this.props,l=this.props.placeholder??"Enter a Loki query (run with Shift+Enter)";return s.createElement(s.Fragment,null,s.createElement("div",{className:"gf-form-inline gf-form-inline--xs-view-flex-column flex-grow-1","data-testid":this.props["data-testid"]},s.createElement("div",{className:"gf-form--grow flex-shrink-1 min-width-15"},s.createElement(Xa,{datasource:r,history:n??[],onChange:this.onChangeQuery,onRunQuery:d,initialValue:a.expr??"",placeholder:l}))),t)}}var ne=o(19347);const G=(e,t)=>{const a=e?` (${e})`:"";return`${t||"Error"}${a}. Please check the server logs for more details.`};async function Ut(e){if(!e)return;const t=(0,ne.l)();try{return await t.get(e)}catch(a){console.error("Failed to load data source",a);return}}function ka({logsDatasourceUid:e,onChange:t,onRunQuery:a,query:r}){const n=(0,f.A)(()=>Ut(e),[e]);if(n.loading)return null;const d=n.value;return d?s.createElement(s.Fragment,null,s.createElement(w.c,null,"Tempo uses ",d.name," to find traces."),s.createElement(Wa,{datasource:d,onChange:t,onRunQuery:a,query:r.linkedQuery??{refId:"linked"},history:[]})):e?e&&!d?s.createElement("div",{className:"text-warning"},"Loki search datasource is configured but the data source no longer exists. Please configure existing data source to use the search."):null:s.createElement("div",{className:"text-warning"},"Please set up a Loki search datasource in the datasource settings.")}var jt=o(50877),We=o(70416),he=o(17172),ve=o(72574),Ya=o(9830),Se=o(42418),Z=o(88323),ze=o(10354),_a=o(30038),ot=o(1081),$e=(e=>(e.Success="success",e.Warning="warning",e.Error="error",e.Info="info",e))($e||{}),Ba=(e=>(e[e.Success=3e3]="Success",e[e.Warning=5e3]="Warning",e[e.Error=7e3]="Error",e))(Ba||{});const od={success:3e3,warning:5e3,error:7e3,info:3e3},Ga=25,ct="notifications",Za=`${ct}/lastRead`,qa={byId:er(),lastRead:Number.parseInt(window.localStorage.getItem(Za)??`${Date.now()}`,10)},Xt=(0,_a.Z0)({name:"appNotifications",initialState:qa,reducers:{notifyApp:(e,{payload:t})=>{Object.values(e.byId).some(a=>Ha(t,a)&&a.showing)||(e.byId[t.id]=t,ke(e.byId))},hideAppNotification:(e,{payload:t})=>{t in e.byId&&(e.byId[t].showing=!1,ke(e.byId))},clearNotification:(e,{payload:t})=>{delete e.byId[t],ke(e.byId)},clearAllNotifications:e=>{e.byId={},ke(e.byId)},readAllNotifications:(e,{payload:t})=>{e.lastRead=t}}}),{notifyApp:Te,hideAppNotification:cd,clearNotification:ud,clearAllNotifications:pd,readAllNotifications:md}=Xt.actions,gd=Xt.reducer,Od=e=>e.lastRead,Wt=e=>e.byId,Ka=(0,ot.Mz)(Wt,e=>Object.values(e).sort((t,a)=>a.timestamp-t.timestamp)),fd=(0,ot.Mz)(Ka,e=>e.filter(kt)),hd=(0,ot.Mz)(Wt,e=>Object.values(e).filter(t=>t.showing));function Ha(e,t){return e.icon===t.icon&&e.severity===t.severity&&e.text===t.text&&e.title===t.title}function kt(e){return e.severity===$e.Warning||e.severity===$e.Error}function Ja(e){return typeof e=="object"&&e!==null&&"id"in e&&"icon"in e&&"title"in e&&"text"in e}function er(){const e=window.localStorage.getItem(ct);if(!e)return{};const t=JSON.parse(e);return Object.values(t).every(a=>Ja(a))?t:{}}function ke(e){const t=Object.values(e).filter(kt).sort((a,r)=>r.timestamp-a.timestamp).slice(0,Ga).reduce((a,r)=>(a[r.id]={id:r.id,severity:r.severity,icon:r.icon,title:r.title,text:r.text,traceId:r.traceId,timestamp:r.timestamp,showing:!1},a),{});try{window.localStorage.setItem(ct,JSON.stringify(t))}catch(a){console.error("Unable to persist notifications to local storage"),console.error(a)}}var Ye=o(62938);function tr(e){if(typeof e=="string")return e;if(e){if(e instanceof Error)return e.message;if((0,he.NF)(e)){if(e.data&&e.data.message)return e.data.message;if(e.statusText)return e.statusText}}return JSON.stringify(e)}const ar={title:"",text:"",severity:$e.Success,icon:"check"},rr={title:"",text:"",severity:$e.Error,icon:"exclamation-triangle"},vd=(e,t="",a)=>({...ar,title:e,text:t,id:uuidv4(),timestamp:Date.now(),showing:!0}),ye=(e,t="",a,r)=>({...rr,text:tr(t),title:e,id:(0,Ye.A)(),traceId:a,component:r,timestamp:Date.now(),showing:!0});let Ee;const sr={keys:{}};function Sd(e){Ee=e}function Td(){return!Ee||!Ee.getState?{templating:{...sr,lastKey:"key"}}:Ee.getState()}function Qe(e){if(!(!Ee||!Ee.getState))return Ee.dispatch(e)}var q=o(2543),ut=o(75505),M=o(62467),_e=o(65474),nr=o(13288),Yt=o(44240),_t=o(61701),Y=o(81160),be=o(66847),pt=o(69862),Bt=o(95864),mt=o(9084),dr=o(99589),lr=o.n(dr),de=o(39070),Gt=o(65879),Be=o(47232),ir=o(76885),or=o(41987),K=o(11261),Zt=o(26657),xe=o(52622),R=o(64616);const cr={wordPattern:/(-?\d*\.\d\w*)|([^`~!#%^&*()\-=+\[{\]}\\|;:'",.<>\/?\s]+)/g,brackets:[["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{}},qt=["=","!=",">","<",">=","<=","=~","!~"],ur=["=","!="],pr=["=","!=","=~","!~"],mr=["=","!=",">","<",">=","<="],Ge=["duration","kind","name","rootName","rootServiceName","status","statusMessage","traceDuration"],Kt=["resource","span"],gr=["avg","min","max","sum","count","by"],Ht=Ge.concat(Kt),Or={ignoreCase:!1,defaultToken:"",tokenPostfix:".traceql",keywords:Ht,operators:qt,statusValues:["ok","unset","error","false","true"],functions:gr,symbols:/[=><!~?:&|+\-*\/^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,tokenizer:{root:[[/\/\/.*/,"comment"],[/\/\*.*\*\//,"comment"],[/[0-9]+(.[0-9]+)?(us|µs|ns|ms|s|m|h)/,"number"],[/^\s*[0-9A-Fa-f]+\s*$/,"tag"],[`(?:${Ht.join("|")})`,{cases:{"@keywords":"keyword","@default":"tag"}}],[/(?:\w|^[^{}()=~!<>&|," ]|"(?:\\"|\\\\|[^\\"])*")+/,{cases:{"@functions":"predefined","@statusValues":"type","@default":"tag"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/([^\w])(")/,[{token:""},{token:"string",next:"@string_double"}]],[/([^\w])(')/,[{token:""},{token:"string",next:"@string_single"}]],[/([^\w])(`)/,[{token:""},{token:"string",next:"@string_back"}]],[/[{}()\[\]]/,"delimiter.bracket"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_back:[[/[^\\`]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]]}},fr={id:"traceql",extensions:[".traceql"],aliases:["tempo","traceql"],mimetypes:[],def:{language:Or,languageConfiguration:cr}},hr={comment:{pattern:/\/\/.*/},"span-set":{pattern:/\{[^}]*}/,inside:{filter:{pattern:/([\w.\/-]+)?(\s*)(([!=+\-<>~]+)\s*("([^"\n&]+)?"?|([^"\n\s&|}]+))?)/g,inside:{comment:{pattern:/#.*/},"label-key":{pattern:/[a-z_.][\w./_-]*(?=\s*(=|!=|>|<|>=|<=|=~|!~))/,alias:"attr-name"},"label-value":{pattern:/("(?:\\.|[^\\"])*")|(\w+)/,alias:"attr-value"}}},punctuation:/[}{&|]/}},number:/\b-?\d+((\.\d*)?([eE][+-]?\d+)?)?\b/,operator:new RegExp("/[-+*/=%^~]|&&?|\\|?\\||!=?|<(?:=>?|<|>)?|>[>=]?|","i"),punctuation:/[{};()`,.]/},Ce=e=>`{${e.filter(t=>t.tag&&t.operator&&t.value?.length).map(t=>`${Jt(t)}${Sr(t,e)}${t.operator}${vr(t)}`).join(" && ")}}`,vr=e=>Array.isArray(e.value)&&e.value.length>1?`"${e.value.join("|")}"`:e.valueType==="string"?`"${e.value}"`:e.value,Jt=e=>Ge.find(t=>t===e.tag)?"":(e.scope===R.d.Resource||e.scope===R.d.Span?e.scope?.toLowerCase():"")+".",Sr=(e,t)=>{if(e.tag==="duration"){const a=t.find(r=>r.id==="duration-type");return a?a.value==="trace"?"traceDuration":"duration":e.tag}return e.tag},gt=e=>Jt(e)+e.tag,Tr=e=>e.tag==="name"?"Span Name":e.tag==="service.name"&&e.scope===R.d.Resource?"Service Name":(0,q.startCase)(gt(e)),yr=(e,t)=>[...Ge,...e].filter(a=>!t.includes(a)),Ze=e=>(0,q.uniq)(e.map(t=>t.name&&t.name!=="intrinsic"&&t.tags?t.tags:[]).flat()),Er=e=>(0,q.uniq)(e.map(t=>t.tags?t.tags:[]).flat()),Ot=(e,t)=>(0,q.uniq)(e.map(a=>a.name&&a.name===t&&a.tags?a.tags:[]).flat());function ft(e,t,a){const r=e.slice(0);return r[t]=a,r}const ea=e=>{const t={label:e,value:e};switch(e){case"=":t.description="Equals";break;case"!=":t.description="Not equals";break;case">":t.description="Greater";break;case">=":t.description="Greater or Equal";break;case"<":t.description="Less";break;case"<=":t.description="Less or Equal";break;case"=~":t.description="Matches regex";break;case"!~":t.description="Does not match regex";break}return t};var ht=(e=>(e[e.LabelNames=0]="LabelNames",e[e.LabelValues=1]="LabelValues",e))(ht||{});const Qr=[{label:"Label names",value:0},{label:"Label values",value:1}],vt="TempoDatasourceVariableQueryEditor-VariableQuery",br=({onChange:e,query:t,datasource:a})=>{const[r,n]=(0,s.useState)(t.label||""),[d,l]=(0,s.useState)(t.type),[i,c]=(0,s.useState)([]);(0,s.useEffect)(()=>{d===1&&a.labelNamesQuery().then(g=>{c(g.map(({text:O})=>({label:O,value:O})))})},[a,t,d]);const u=g=>{l(g.value),g.value!==void 0&&e({type:g.value,label:r,refId:vt})},p=g=>{const O=g.value||"";n(O),d!==void 0&&e({type:d,label:O,refId:vt})},m=()=>{d!==void 0&&e({type:d,label:r,refId:vt})};return s.createElement(s.Fragment,null,s.createElement(C.C,null,s.createElement(Q.I,{label:"Query type",labelWidth:20},s.createElement(Z.l6,{"aria-label":"Query type",onChange:u,onBlur:m,value:d,options:Qr,width:32}))),d===1&&s.createElement(C.C,null,s.createElement(Q.I,{label:"Label",labelWidth:20},s.createElement(Z.l6,{"aria-label":"Label",onChange:p,onBlur:m,value:{label:r,value:r},options:i,width:32,allowCustomValue:!0}))))};var k=o(44066);class ta extends V.Is{constructor(t,a){super(),this.request=async(r,n={})=>(await this.datasource.metadataRequest(r,n))?.data,this.start=async()=>(this.startTask||(this.startTask=this.fetchTags().then(()=>[])),this.startTask),this.setV1Tags=r=>{this.tagsV1=r},this.setV2Tags=r=>{this.tagsV2=r},this.getTags=r=>this.tagsV2&&r?r===R.d.Unscoped?Ze(this.tagsV2):Ot(this.tagsV2,r):this.tagsV1?(this.tagsV1.find(n=>n==="status")||this.tagsV1.push("status"),this.tagsV1):[],this.getMetricsSummaryTags=r=>this.tagsV2&&r?r===R.d.Unscoped?Ze(this.tagsV2):Ot(this.tagsV2,r):this.tagsV1?this.tagsV1:[],this.getTraceqlAutocompleteTags=r=>{if(this.tagsV2){if(r){if(r===R.d.Unscoped)return Ze(this.tagsV2)}else return Ze(this.tagsV2);return Ot(this.tagsV2,r)}else if(this.tagsV1)return this.tagsV1.find(n=>n==="status")||this.tagsV1.push("status"),this.tagsV1;return[]},this.getAutocompleteTags=()=>this.tagsV2?Er(this.tagsV2):this.tagsV1?(this.tagsV1.find(r=>r==="status.code")||this.tagsV1.push("status.code"),this.tagsV1):[],this.encodeTag=r=>encodeURIComponent(encodeURIComponent(r)),this.datasource=t,Object.assign(this,a)}async fetchTags(){let t,a;try{a=await this.request("/api/v2/search/tags",[])}catch{t=await this.request("/api/search/tags",[])}a&&a.scopes?this.setV2Tags(a.scopes):t&&this.setV1Tags(t.tagNames)}async getOptionsV1(t){const a=this.encodeTag(t),r=await this.request(`/api/search/tag/${a}/values`);let n=[];return r&&r.tagValues&&(n=r.tagValues.map(d=>({value:d,label:d}))),n}async getOptionsV2(t,a){const r=this.encodeTag(t),n=await this.request(`/api/v2/search/tag/${r}/values`,a?{q:a}:{});let d=[];return n&&n.tagValues&&n.tagValues.forEach(l=>{l.value&&d.push({type:l.type,value:l.value,label:l.value})}),d}}var aa=o(14236),xr=o(37471);function Rr(e,t,a){let r;if(!e.length)return Me;const n={};e.forEach(l=>{const i=wr(l.series,t);l.series.forEach(c=>{n[c.key]={name:`${c.key}`,type:K.PU.string,config:Cr(c,i,a),values:[]}})}),r=(0,aa.EI)({name:"Metrics Summary",refId:"metrics-summary",fields:[...Object.values(n).sort((l,i)=>l.name.localeCompare(i.name)),{name:"kind",type:K.PU.string,config:{displayNameFromDS:"Kind",custom:{width:150}}},{name:"spanCount",type:K.PU.number,config:{displayNameFromDS:"Span count",custom:{width:150}}},{name:"errorPercentage",type:K.PU.number,config:{displayNameFromDS:"Error",unit:"percent",custom:{width:150}}},Ke("p50"),Ke("p90"),Ke("p95"),Ke("p99")],meta:{preferredVisualisationType:"table"}});const d=e.map(Pr);r.length=d.length;for(const l of d)for(const i of r.fields)i.values.push(l[i.name]);return r=(0,aa.ES)(r,0),[r]}const Pr=e=>{const t=e.errorSpanCount?Re(e.errorSpanCount)/Re(e.spanCount)*100:"0%",a={kind:"server",spanCount:Re(e.spanCount),errorPercentage:t,p50:Re(e.p50),p90:Re(e.p90),p95:Re(e.p95),p99:Re(e.p99)};return e.series.forEach(r=>{a[`${r.key}`]=Ir(r)||""}),a},wr=(e,t)=>{const a=e.map(d=>{const l=d.value.type===3||d.value.type===4,i=d.value.type===8||d.value.type===9,c=l||i?"":'"';return`${d.key}=${c}\${__data.fields["`+d.key+`"]}${c}`});let r="";const n=t.indexOf("}");if(n!==-1){const d=t.substring(n+1);r=t.substring(0,n),a.length>0&&(r+=t.replace(/\s/g,"").includes("{}")?"":" && ",r+=`${a.join(" && ")} && kind=server`,r+="}"),r+=`${d}`}else r=`{${a.join(" && ")} && kind=server} | ${t}`;return r},Cr=(e,t,a)=>{const r={displayNameFromDS:e.key,noValue:"<no value>",links:[{title:"Query in explore",url:"",internal:{datasourceUid:a.uid,datasourceName:a.name,query:{query:t,queryType:"traceql"}}}]};return e.value.type===7?{...r,unit:"ns"}:{...r}},qe="",Ir=e=>{if(!e.value.type)return qe;switch(e.value.type){case 3:return e.value.n;case 4:return e.value.f;case 5:return e.value.s;case 6:return e.value.b;case 7:return e.value.d;case 8:return Dr(e.value.status);case 9:return Nr(e.value.kind);default:return qe}},Dr=e=>{if(!e)return qe;switch(e){case 0:return"error";case 1:return"ok";default:return"unset"}},Nr=e=>{if(!e)return qe;switch(e){case 1:return"internal";case 2:return"client";case 3:return"server";case 4:return"producer";case 5:return"consumer";default:return"unspecified"}},Ke=e=>({name:e,type:K.PU.number,config:{displayNameFromDS:e,unit:"ns",custom:{width:150}}}),Re=e=>{const t=parseInt(e,10);return isNaN(t)?0:t},Me=new xr.k({name:"Metrics Summary",refId:"metrics-summary",fields:[],meta:{preferredVisualisationType:"table"}});var ue=o(98216),zr=o(46662),$r=o(55004),Mr=o(50082),Ar=o(78731);function Lr(){return(0,Ye.A)()}function Vr(e,t,a,r){const n=a.range;let d,l=de.Gu.NotStarted;const i=performance.now();return(0,Ar.oF)().getStream({scope:$r.qD.DataSource,namespace:t.uid,path:`search/${Lr()}`,data:{...e,SpansPerSpanSet:e.spss??Ie,timeRange:{from:n.from.toISOString(),to:n.to.toISOString()}}}).pipe((0,zr.v)(c=>{if("message"in c&&c?.message){const u=c.message.data.values[2][0];if(u===R.O8.Done||u===R.O8.Error)return!1}return!0},!0)).pipe((0,Y.T)(c=>{if("message"in c&&c?.message){const p=performance.now()-i,m=c.message.data.values[0][0],g=c.message.data.values[1][0],O=c.message.data.values[2][0],S=c.message.data.values[3][0];switch(O){case R.O8.Done:l=de.Gu.Done;break;case R.O8.Streaming:l=de.Gu.Streaming;break;case R.O8.Error:throw new Error(S)}d=[Fr(g,O,p),...(0,ue.bT)(m,r,e.tableType)]}return{data:d||[],state:l}}))}function Fr(e,t,a){const r={steps:[{color:"blue",value:-1/0},{color:"green",value:75}],mode:Mr.O.Absolute};return{refId:"streaming-progress",name:"Streaming Progress",length:1,fields:[{name:"state",type:K.PU.string,values:[(0,q.capitalize)(t.toString())],config:{displayNameFromDS:"State"}},{name:"elapsedTime",type:K.PU.number,values:[a],config:{unit:"ms",displayNameFromDS:"Elapsed Time"}},{name:"totalBlocks",type:K.PU.number,values:[e.totalBlocks],config:{displayNameFromDS:"Total Blocks"}},{name:"completedJobs",type:K.PU.number,values:[e.completedJobs],config:{displayNameFromDS:"Completed Jobs"}},{name:"totalJobs",type:K.PU.number,values:[e.totalJobs],config:{displayNameFromDS:"Total Jobs"}},{name:"progress",type:K.PU.number,values:[t===R.O8.Done?100:(e.completedJobs||0)/(e.totalJobs||1)*100],config:{displayNameFromDS:"Progress",unit:"percent",min:0,max:100,custom:{cellOptions:{type:"gauge",mode:"gradient"}},thresholds:r}}],meta:{preferredVisualisationType:"table"}}}var Ur=o(29505);class jr extends Ur.f5{constructor(t){super(),this.datasource=t,this.editor=br}query(t){if(!this.datasource)throw new Error("Datasource not initialized");const a=this.datasource.executeVariableQuery(t.targets[0]);return(0,_e.H)(a).pipe((0,Y.T)(r=>({data:r})))}}const pe=20,Ie=3;var Xr=(e=>(e.streaming="streaming",e))(Xr||{});const Wr={streaming:"2.2.0"},kr="2.1.0";class Yr extends Zt.iy{constructor(t,a=(0,ve.w)()){super(t),this.instanceSettings=t,this.templateSrv=a,this.uploadedJson=null,this.init=async()=>{const r=await(0,ut.s)(this._request("/api/status/buildinfo").pipe((0,Y.T)(n=>n),(0,be.W)(n=>(console.error("Failure in retrieving build information",n.data.message),(0,M.of)({error:n,data:{version:null}})))));this.tempoVersion=r.data.version},this.handleMetricsSummary=(r,n,d)=>{if((0,D.rR)("grafana_traces_metrics_summary_queried",{datasourceType:"tempo",app:d.app??"",grafana_version:P.$.buildInfo.version,filterCount:r.groupBy?.length??0}),n==="{}")return(0,M.of)({error:{message:"Please ensure you do not have an empty query. This is so filters are applied and the metrics summary is not generated from all spans."},data:Me});const l=r.groupBy?this.formatGroupBy(r.groupBy):"";return this._request("/api/metrics/summary",{q:n,groupBy:l,start:d.range.from.unix(),end:d.range.to.unix()}).pipe((0,Y.T)(i=>i.data.summaries?i.data.summaries.some(u=>u.series.length>0)?{data:Rr(i.data.summaries,n,this.instanceSettings)}:{error:{message:G("No series data. Ensure you are using an up to date version of Tempo")},data:Me}:{error:{message:G(`No summary data for '${l}'. Note: the metrics summary API only considers spans of kind = server. You can check if the attributes exist by running a TraceQL query like { attr_key = attr_value && kind = server }`)},data:Me}),(0,be.W)(i=>(0,M.of)({error:{message:G(i.data.message)},data:Me})))},this.formatGroupBy=r=>r?.filter(n=>n.tag).map(n=>n.scope===R.d.Unscoped?`.${n.tag}`:n.scope!==R.d.Intrinsic?`${n.scope}.${n.tag}`:n.tag).join(", "),this.hasGroupBy=r=>r.groupBy?.find(n=>n.tag),this.handleTraceQlQuery=(r,n,d)=>P.$.featureToggles.traceQLStreaming&&this.isFeatureAvailable("streaming")?this.handleStreamingSearch(r,n.traceql,d):this._request("/api/search",{q:d,limit:r.targets[0].limit??pe,spss:r.targets[0].spss??Ie,start:r.range.from.unix(),end:r.range.to.unix()}).pipe((0,Y.T)(l=>({data:(0,ue.bT)(l.data.traces,this.instanceSettings,n.traceql[0].tableType)})),(0,be.W)(l=>(0,M.of)({error:{message:G(l.data.message)},data:[]}))),this.handleTraceQlMetricsQuery=(r,n)=>this._request("/api/metrics/query_range",{query:n,start:r.range.from.unix(),end:r.range.to.unix()}).pipe((0,Y.T)(d=>({data:(0,ue.TG)(n,d.data)})),(0,be.W)(d=>(0,M.of)({error:{message:G(d.data.message)},data:[]}))),this.getLokiSearchDS=()=>{const r=this.tracesToLogs?.lokiSearch!==!1&&this.lokiSearch===void 0?this.tracesToLogs?.datasourceUid:void 0;return this.lokiSearch?.datasourceUid??r},this.tracesToLogs=t.jsonData.tracesToLogs,this.serviceMap=t.jsonData.serviceMap,this.search=t.jsonData.search,this.nodeGraph=t.jsonData.nodeGraph,this.lokiSearch=t.jsonData.lokiSearch,this.traceQuery=t.jsonData.traceQuery,this.languageProvider=new ta(this),this.search?.filters||(this.search={...this.search,filters:[{id:"service-name",tag:"service.name",operator:"=",scope:R.d.Resource},{id:"span-name",tag:"name",operator:"=",scope:R.d.Span}]}),this.variables=new jr(this)}async executeVariableQuery(t){if(t.type===void 0)return new Promise(()=>[]);switch(t.type){case ht.LabelNames:return await this.labelNamesQuery();case ht.LabelValues:return this.labelValuesQuery(t.label);default:throw Error("Invalid query type: "+t.type)}}async labelNamesQuery(){return await this.languageProvider.fetchTags(),this.languageProvider.getAutocompleteTags().filter(a=>a!==void 0).map(a=>({text:a}))}async labelValuesQuery(t){if(!t)return[];let a;try{const r=(this.languageProvider.tagsV2||[]).flatMap(d=>d.tags.map(l=>({scope:d.name,name:l}))).find(d=>d.name===t)?.scope;if(!r)throw Error(`Scope for tag ${t} not found`);const n=r==="intrinsic"?t:`${r}.${t}`;a=await this.languageProvider.getOptionsV2(n)}catch{a=await this.languageProvider.getOptionsV1(t)}return a.flatMap(r=>r.value!==void 0?[{text:r.value}]:[])}isFeatureAvailable(t){const a=this.tempoVersion??kr;try{return lr().gte(a,Wr[t])}catch{return!0}}query(t){const a=[],r=t.targets.filter(l=>!l.hide),n=(0,q.groupBy)(r,l=>l.queryType||"traceql");if(n.clear)return(0,M.of)({data:[],state:de.Gu.Done});const d=this.getLokiSearchDS();if(d&&n.search?.length>0){(0,D.rR)("grafana_traces_loki_search_queried",{datasourceType:"tempo",app:t.app??"",grafana_version:P.$.buildInfo.version,hasLinkedQueryExpr:!!(n.search[0].linkedQuery?.expr&&n.search[0].linkedQuery?.expr!=="")});const l=(0,ne.l)();a.push((0,_e.H)(l.get(d)).pipe((0,pt.Z)(i=>{const c={...t,targets:n.search.map(m=>m.linkedQuery)},p=i.instanceSettings.jsonData.derivedFields?.filter(m=>m.datasourceUid===this.uid&&m.matcherRegex).map(m=>m.matcherRegex)||[];if(!p||p.length===0)return(0,nr.$)(()=>new Error("No Loki datasource configured for search. Set up Derived Fields for traces in a Loki datasource settings and link it to this Tempo datasource."));{const m=i.query(c);return(0,_e.H)(m).pipe((0,Y.T)(g=>g.error?g:(0,ue._2)(g,this.uid,this.name,p)))}})))}if(n.nativeSearch?.length)try{(0,D.rR)("grafana_traces_search_queried",{datasourceType:"tempo",app:t.app??"",grafana_version:P.$.buildInfo.version,hasServiceName:!!n.nativeSearch[0].serviceName,hasSpanName:!!n.nativeSearch[0].spanName,resultLimit:n.nativeSearch[0].limit??"",hasSearch:!!n.nativeSearch[0].search,minDuration:n.nativeSearch[0].minDuration??"",maxDuration:n.nativeSearch[0].maxDuration??""});const l={startTime:t.range.from.unix(),endTime:t.range.to.unix()},i=this.applyVariables(n.nativeSearch[0],t.scopedVars),c=this.buildSearchQuery(i,l);a.push(this._request("/api/search",c).pipe((0,Y.T)(u=>({data:[(0,ue.qS)(u.data.traces,this.instanceSettings)]})),(0,be.W)(u=>(0,M.of)({error:{message:G(u.data.message)},data:[]}))))}catch(l){return(0,M.of)({error:{message:l instanceof Error?l.message:"Unknown error occurred"},data:[]})}if(n.traceql?.length)try{const i=this.applyVariables(n.traceql[0],t.scopedVars)?.query||"";this.isTraceIdQuery(i)?((0,D.rR)("grafana_traces_traceID_queried",{datasourceType:"tempo",app:t.app??"",grafana_version:P.$.buildInfo.version,hasQuery:i!==""}),a.push(this.handleTraceIdQuery(t,n.traceql))):this.isTraceQlMetricsQuery(i)?((0,D.rR)("grafana_traces_traceql_metrics_queried",{datasourceType:"tempo",app:t.app??"",grafana_version:P.$.buildInfo.version,query:i??""}),a.push(this.handleTraceQlMetricsQuery(t,i))):((0,D.rR)("grafana_traces_traceql_queried",{datasourceType:"tempo",app:t.app??"",grafana_version:P.$.buildInfo.version,query:i??"",streaming:P.$.featureToggles.traceQLStreaming}),a.push(this.handleTraceQlQuery(t,n,i)))}catch(l){return(0,M.of)({error:{message:l instanceof Error?l.message:"Unknown error occurred"},data:[]})}if(n.traceqlSearch?.length)try{if(P.$.featureToggles.metricsSummary){const i=n.traceqlSearch.find(c=>this.hasGroupBy(c));if(i){const c=this.applyVariables(i,t.scopedVars);a.push(this.handleMetricsSummary(c,Ce(c.filters),t))}}const l=P.$.featureToggles.metricsSummary?n.traceqlSearch.filter(i=>!this.hasGroupBy(i)):n.traceqlSearch;if(l.length>0){const i=this.applyVariables(l[0],t.scopedVars),c=Ce(i.filters);(0,D.rR)("grafana_traces_traceql_search_queried",{datasourceType:"tempo",app:t.app??"",grafana_version:P.$.buildInfo.version,query:c??"",streaming:P.$.featureToggles.traceQLStreaming}),P.$.featureToggles.traceQLStreaming&&this.isFeatureAvailable("streaming")?a.push(this.handleStreamingSearch(t,l,c)):a.push(this._request("/api/search",{q:c,limit:t.targets[0].limit??pe,spss:t.targets[0].spss??Ie,start:t.range.from.unix(),end:t.range.to.unix()}).pipe((0,Y.T)(u=>({data:(0,ue.bT)(u.data.traces,this.instanceSettings,n.traceqlSearch[0].tableType)})),(0,be.W)(u=>(0,M.of)({error:{message:G(u.data.message)},data:[]}))))}}catch(l){return(0,M.of)({error:{message:l instanceof Error?l.message:"Unknown error occurred"},data:[]})}if(n.upload?.length)if(this.uploadedJson){(0,D.rR)("grafana_traces_json_file_uploaded",{datasourceType:"tempo",app:t.app??"",grafana_version:P.$.buildInfo.version});const l=JSON.parse(this.uploadedJson),i=l.batches,c=Array.isArray(l)&&l.some(u=>u?.meta?.preferredVisualisationType==="nodeGraph");i?a.push((0,M.of)((0,ue.q0)(l.batches,this.nodeGraph?.enabled))):c?a.push((0,M.of)({data:l,state:de.Gu.Done})):a.push((0,M.of)({error:{message:"Unable to parse uploaded data."},data:[]}))}else a.push((0,M.of)({data:[],state:de.Gu.Done}));if(this.serviceMap?.datasourceUid&&n.serviceMap?.length>0){(0,D.rR)("grafana_traces_service_graph_queried",{datasourceType:"tempo",app:t.app??"",grafana_version:P.$.buildInfo.version,hasServiceMapQuery:!!n.serviceMap[0].serviceMapQuery});const l=this.serviceMap.datasourceUid,i=this.uid;a.push(_r(t,l,i).pipe((0,Bt.H)(c=>Br(t,c,l).pipe((0,Bt.H)(u=>Gr(t,u,l,i))))))}return(0,Yt.h)(...a)}isTraceQlMetricsQuery(t){const a=/\|\s*(rate|count_over_time|avg_over_time|max_over_time|min_over_time|quantile_over_time)\s*\(/;return!!t.trim().match(a)}isTraceIdQuery(t){const a=/^[0-9A-Fa-f]*$/;return!!t.trim().match(a)}applyTemplateVariables(t,a){return this.applyVariables(t,a)}interpolateVariablesInQueries(t,a){return!t||t.length===0?[]:t.map(r=>({...r,datasource:this.getRef(),...this.applyVariables(r,a)}))}applyVariables(t,a){const r={...t};return t.linkedQuery&&(r.linkedQuery={...t.linkedQuery,expr:this.templateSrv.replace(t.linkedQuery?.expr??"",a)}),t.filters&&(r.filters=t.filters.map(n=>{const d={...n,tag:this.templateSrv.replace(n.tag??"",a)};return n.value&&(d.value=typeof n.value=="string"?this.templateSrv.replace(n.value??"",a,xe.$m.Pipe):n.value.map(l=>this.templateSrv.replace(l??"",a,xe.$m.Pipe))),d})),{...r,query:this.templateSrv.replace(t.query??"",a,xe.$m.Pipe),serviceName:this.templateSrv.replace(t.serviceName??"",a),spanName:this.templateSrv.replace(t.spanName??"",a),search:this.templateSrv.replace(t.search??"",a),minDuration:this.templateSrv.replace(t.minDuration??"",a),maxDuration:this.templateSrv.replace(t.maxDuration??"",a),serviceMapQuery:Array.isArray(t.serviceMapQuery)?t.serviceMapQuery.map(n=>this.templateSrv.replace(n,a)):this.templateSrv.replace(t.serviceMapQuery??"",a)}}handleTraceIdQuery(t,a){const r=a.filter(d=>d.query).map(d=>({...d,query:d.query?.trim(),queryType:"traceId"}));if(!r.length)return _t.w;const n=this.traceIdQueryRequest(t,r);return super.query(n).pipe((0,Y.T)(d=>d.error?d:(0,ue.kX)(d,this.instanceSettings,this.nodeGraph?.enabled)))}traceIdQueryRequest(t,a){const r={...t,targets:a};return this.traceQuery?.timeShiftEnabled?r.range=t.range&&{...t.range,from:t.range.from.subtract(Gt.intervalToMs(this.traceQuery?.spanStartTimeShift||"30m"),"milliseconds"),to:t.range.to.add(Gt.intervalToMs(this.traceQuery?.spanEndTimeShift||"30m"),"milliseconds")}:r.range={from:(0,Be.KQ)(0),to:(0,Be.KQ)(0),raw:{from:(0,Be.KQ)(0),to:(0,Be.KQ)(0)}},r}handleStreamingSearch(t,a,r){return r===""?_t.w:(0,Yt.h)(...a.map(n=>Vr({...n,query:r},this,t,this.instanceSettings)))}async metadataRequest(t,a={}){return await(0,ut.s)(this._request(t,a,{method:"GET",hideFromInspector:!0}))}_request(t,a,r){const n=a?ir.kM.serializeParams(a):"",d=`${this.instanceSettings.url}${t}${n.length?`?${n}`:""}`,l={...r,url:d};return(0,he.AI)().fetch(l)}async testDatasource(){const t={headers:{},method:"GET",url:`${this.instanceSettings.url}/api/echo`};return await(0,ut.s)((0,he.AI)().fetch(t).pipe((0,pt.Z)(()=>(0,M.of)({status:"success",message:"Data source successfully connected."})),(0,be.W)(a=>(0,M.of)({status:"error",message:G(a.data.message,"Unable to connect with Tempo")}))))}getQueryDisplayText(t){return t.queryType!=="nativeSearch"?t.query??"":["serviceName","spanName","search","minDuration","maxDuration","limit"].filter(r=>t[r]).map(r=>`${(0,q.startCase)(r)}: ${t[r]}`).join(", ")}buildSearchQuery(t,a){let r=t.search??"",n=(0,q.pick)(t,["minDuration","maxDuration","limit"]);if(n=(0,q.pickBy)(n,q.identity),t.serviceName&&(r+=` service.name="${t.serviceName}"`),t.spanName&&(r+=` name="${t.spanName}"`),n.limit||(n.limit=pe),n.minDuration){if(n.minDuration=this.templateSrv.replace(n.minDuration??""),!(0,We.pp)(n.minDuration))throw new Error("Please enter a valid min duration.");n.minDuration=n.minDuration.replace(/\s/g,"")}if(n.maxDuration){if(n.maxDuration=this.templateSrv.replace(n.maxDuration??""),!(0,We.pp)(n.maxDuration))throw new Error("Please enter a valid max duration.");n.maxDuration=n.maxDuration.replace(/\s/g,"")}if(!Number.isInteger(n.limit)||n.limit<=0)throw new Error("Please enter a valid limit.");let d={tags:r,...n};return a&&(d.start=a.startTime,d.end=a.endTime),d}}function St(e,t){return(0,_e.H)((0,ne.l)().get(t)).pipe((0,pt.Z)(a=>a.query(e)))}function _r(e,t,a){const r=Tt(e);return St(r,t).pipe((0,mt.$)(),(0,Y.T)(n=>{const d=n.find(p=>!!p.error);if(d)throw new Error(G(d.error?.message));const{nodes:l,edges:i}=(0,k.yz)(n,e.range);if(l.fields.length>0&&i.fields.length>0){const p=l.fields[0].values.length,m=i.fields[0].values.length;(0,D.rR)("grafana_traces_service_graph_size",{datasourceType:"tempo",grafana_version:P.$.buildInfo.version,nodeLength:p,edgeLength:m})}const{serviceMapIncludeNamespace:c,refId:u}=e.targets[0];return l.refId=u,i.refId=u,c?(l.fields[0].config=He(t,a,"__data.fields.title","__data.fields[0]",void 0,{targetNamespace:"__data.fields.subtitle"}),i.fields[0].config=He(t,a,"__data.fields.targetName","__data.fields.target","__data.fields.sourceName",{targetNamespace:"__data.fields.targetNamespace",sourceNamespace:"__data.fields.sourceNamespace"})):(l.fields[0].config=He(t,a,"__data.fields.id","__data.fields[0]"),i.fields[0].config=He(t,a,"__data.fields.target","__data.fields.target","__data.fields.source")),{nodes:l,edges:i,state:de.Gu.Done}}))}function Br(e,t,a){const r=Tt(e);return r.targets=na([Pe(k.hN,k.uW,e)]),St(r,a).pipe((0,mt.$)(),(0,Y.T)(n=>{const d=n.find(l=>!!l.error);if(d)throw new Error(G(d.error?.message));return{rates:n[0]?.data??[],nodes:t.nodes,edges:t.edges}}))}function Gr(e,t,a,r){let n=[],d="",l=[],i=[];if(t.rates[0]&&e.app===or.Jk.Explore){const p=t.rates[0].fields.find(m=>m.name==="span_name");p&&p.values&&(i=p.values)}else t.rates&&t.rates.map(p=>{const m=p.fields.find(g=>g.labels?.span_name);m&&i.push(m.labels?.span_name)});const c=Zr(i);c.length>0&&(d=Pe(k.Zh,'span_name=~"'+c.join("|")+'"',e),n.push(d),c.map(p=>{const m=Pe(k.XF,'span_name=~"'+p+'"',e);l.push(m),n.push(m)}));const u=Tt(e);return u.targets=na(n),St(u,a).pipe((0,mt.$)(),(0,Y.T)(p=>{const m=p.find(O=>!!O.error);if(m)throw new Error(G(m.error?.message));const g=qr(e,t,p[0],d,l,a,r);return g.fields.length===0?{data:[t.nodes,t.edges],state:de.Gu.Done}:{data:[g,t.nodes,t.edges],state:de.Gu.Done}}))}function De(e,t,a,r){return{url:"",title:e,internal:{query:{expr:t,range:!r,exemplar:!r,instant:r},datasourceUid:a,datasourceName:(0,ne.l)().getInstanceSettings(a)?.name??""}}}function Zr(e){return e.map(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\\\$&"))}function He(e,t,a,r,n,d){let l=n?`client="\${${n}}",`:"",i=`server="\${${a}}"`,c="server";if(d!==void 0){const{targetNamespace:u}=d;if(i+=`,server_service_namespace="\${${u}}"`,c+=", server_service_namespace",l){const{sourceNamespace:p}=d;l+=`client_service_namespace="\${${p}}",`,c+=", client_service_namespace"}}return{links:[De("Request rate",`sum by (client, ${c})(rate(${k.OB}{${l}${i}}[$__rate_interval]))`,e,!1),De("Request histogram",`histogram_quantile(0.9, sum(rate(${k.dk}{${l}${i}}[$__rate_interval])) by (le, client, ${c}))`,e,!1),De("Failed request rate",`sum by (client, ${c})(rate(${k.sL}{${l}${i}}[$__rate_interval]))`,e,!1),ra("View traces",`\${${r}}`,"",t)]}}function ra(e,t,a,r){let n={refId:"A",queryType:"traceqlSearch",filters:[]};return t!==""&&n.filters.push({id:"service-name",scope:R.d.Resource,tag:"service.name",value:t,operator:"=",valueType:"string"}),a!==""&&n.filters.push({id:"span-name",scope:R.d.Span,tag:"name",value:a,operator:"=",valueType:"string"}),{url:"",title:e,internal:{query:n,datasourceUid:r,datasourceName:(0,ne.l)().getInstanceSettings(r)?.name??""}}}function Tt(e){return{...e,targets:k.lp.map(t=>{const{serviceMapQuery:a,serviceMapIncludeNamespace:r}=e.targets[0],n=r?", client_service_namespace, server_service_namespace":"",l=(Array.isArray(a)?a:[a]).map(i=>`sum by (client, server${n}) (rate(${t}${i||""}[$__range]))`);return{format:"table",refId:t,expr:l.join(" OR "),instant:!0}})}}function qr(e,t,a,r,n,d,l){let i={fields:[]};const c=t.rates.filter(m=>m.refId===Pe(k.hN,k.uW,e)),u=a.data.filter(m=>m.refId===r),p=a.data.filter(m=>n.includes(m.refId??""));if(c.length>0&&c[0].fields?.length>2&&(i.fields.push({...c[0].fields[1],name:"Name",config:{filterable:!1}}),i.fields.push({...c[0].fields[2],name:"Rate",config:{links:[De("Rate",yt(Pe(k.hN,'span_name="${__data.fields[0]}"',e)),d,!1)],decimals:2}}),i.fields.push({...c[0].fields[2],name:" ",labels:null,config:{color:{mode:"continuous-BlPu"},custom:{cellOptions:{mode:xe.eX.Lcd,type:xe.ob.Gauge}},decimals:3}})),u.length>0&&u[0].fields?.length>2){const m=u[0].fields[1]?.values??[],g=u[0].fields[2]?.values??[];let O={};m.map((y,z)=>{O[y]={value:g[z]}});const S=sa({...c},O);i.fields.push({...u[0].fields[2],name:"Error Rate",values:S,config:{links:[De("Error Rate",yt(Pe(k.Zh,'span_name="${__data.fields[0]}"',e)),d,!1)],decimals:2}}),i.fields.push({...u[0].fields[2],name:" ",values:S,labels:null,config:{color:{mode:"continuous-RdYlGr"},custom:{cellOptions:{mode:xe.eX.Lcd,type:xe.ob.Gauge}},decimals:3}})}if(p.length>0){let m={};p.forEach(g=>{if(g.fields.length>1){const O=g.refId?.includes('span_name=~"')?'span_name=~"':'span_name="',S=g.refId?.split(O)[1].split('"}')[0];m[S]={value:g.fields[1].values[0]}}}),Object.keys(m).length>0&&i.fields.push({...p[0].fields[1],name:"Duration (p90)",values:sa({...c},m),config:{links:[De("Duration",yt(Pe(k.XF,'span_name="${__data.fields[0]}"',e)),d,!1)],unit:"s"}})}return i.fields.length>0&&i.fields[0].values&&i.fields.push({name:"Links",type:K.PU.string,values:i.fields[0].values.map(()=>"Tempo"),config:{links:[ra("Tempo","","${__data.fields[0]}",l)]}}),i}function Pe(e,t,a){let r=a.targets[0]?.serviceMapQuery??"";const i=(Array.isArray(r)?r:[r]).map(c=>{const u=c.match(/^{(.*)}$/);return u?.length&&(c=u[1]),c=c.replace("client","service").replace("server","service"),c.includes("span_name")?e.params.concat(c):e.params.concat(c).concat(t).filter(p=>p)}).map(c=>e.expr.replace("{}","{"+c.join(",")+"}")).join(" OR ");return e.topk?`topk(${e.topk}, ${i})`:i}function yt(e){return e=e.replace("topk(5, ","").replace(" by (span_name))",""),e.replace("__range","__rate_interval")}function sa(e,t){const a=e[0]?.fields[1]?.values??[];let r=[];for(let n=0;n<a.length;n++)Object.keys(t).includes(a[n])?r.push(t[a[n]].value):r.push("0");return r}function na(e){return e.map(t=>({refId:t,expr:t,instant:!0}))}var da=o(32372);class Kr{constructor(t){this.triggerCharacters=["="," "],this.cachedValues={},this.languageProvider=t.languageProvider}provideCompletionItems(t,a){if(!(this.monaco&&this.editor))throw new Error("provideCompletionItems called before CompletionProvider was initialized");if(this.editor.getModel()?.id!==t.id)return{suggestions:[]};const{range:r,offset:n}=Jr(this.monaco,t,a),d=this.getSituation(t.getValue(),n);return this.getCompletions(d).then(i=>{const c=i.length.toString().length;return{suggestions:i.map((p,m)=>({kind:Hr(p.type,this.monaco),label:p.label,insertText:p.insertText,sortText:m.toString().padStart(c,"0"),range:r}))}})}async getTagValues(t){let a;return this.cachedValues.hasOwnProperty(t)?a=this.cachedValues[t]:(a=await this.languageProvider.getOptionsV1(t),this.cachedValues[t]=a),a}async getCompletions(t){switch(t.type){case"UNKNOWN":return[];case"EMPTY":return this.getTagsCompletions();case"IN_NAME":return this.getTagsCompletions();case"IN_VALUE":const a=await this.getTagValues(t.tagName),r=[],n=d=>`"${d.label}"`;return a.forEach(d=>{d?.label&&r.push({label:d.label,insertText:n(d),type:"TAG_VALUE"})}),r;default:throw new Error(`Unexpected situation ${t}`)}}getTagsCompletions(){return this.languageProvider.getAutocompleteTags().sort((a,r)=>a.localeCompare(r,void 0,{sensitivity:"accent"})).map(a=>({label:a,insertText:a,type:"TAG_NAME"}))}getSituation(t,a){if(t===""||a===0||t[t.length-1]===" ")return{type:"EMPTY"};const r=t.substring(0,a),n=/(?<key>[^= ]+)(?<equals>=)?(?<value>([^ "]+)|"([^"]*)")?/,d=r.match(new RegExp(n,"g"));if(d?.length){const i=d[d.length-1].match(n);if(i){const c=i.groups?.key,u=i.groups?.equals;return c?u?{type:"IN_VALUE",tagName:c}:{type:"IN_NAME"}:{type:"EMPTY"}}}return{type:"EMPTY"}}}function Hr(e,t){switch(e){case"TAG_NAME":return t.languages.CompletionItemKind.Enum;case"KEYWORD":return t.languages.CompletionItemKind.Keyword;case"OPERATOR":return t.languages.CompletionItemKind.Operator;case"TAG_VALUE":return t.languages.CompletionItemKind.EnumMember;case"SCOPE":return t.languages.CompletionItemKind.Class;default:throw new Error(`Unexpected CompletionType: ${e}`)}}function Jr(e,t,a){const r=t.getWordAtPosition(a),n=r!=null?e.Range.lift({startLineNumber:a.lineNumber,endLineNumber:a.lineNumber,startColumn:r.startColumn,endColumn:r.endColumn}):e.Range.fromPositions(a),d={column:a.column,lineNumber:a.lineNumber};return{offset:t.getOffsetAt(d),range:n}}const es={id:"tagsfield",extensions:[".tagsfield"],aliases:["tagsfield"],mimetypes:[],def:{language:{ignoreCase:!1,defaultToken:"",tokenPostfix:".tagsfield",operators:["="],symbols:/[=><!~?:&|+\-*\/^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-z_.][\w./_-]*(?=\s*(=|!=|>|<|>=|<=|=~|!~))/,"tag"],[/[a-zA-Z_.]\w*/,{cases:{"@default":"identifier"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d+/,"number"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],clauses:[[/[^(,)]/,"tag"],[/\)/,"identifier","@pop"]],whitespace:[[/[ \t\r\n]+/,"white"]]}},languageConfiguration:{wordPattern:/(-?\d*\.\d\w*)|([^`~!#%^&*()\-=+\[{\]}\\|;:'",.<>\/?\s]+)/g,brackets:[["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{}}}};function ts(e){const{onChange:t,onBlur:a,placeholder:r}=e,n=ss(e.datasource),d=(0,T.$j)(),l=ds(d,r);return s.createElement(da.B,{value:e.value,language:Ae,onBlur:a,onChange:t,containerStyles:l.queryField,monacoOptions:{folding:!1,fontSize:14,lineNumbers:"off",overviewRulerLanes:0,renderLineHighlight:"none",scrollbar:{vertical:"hidden",verticalScrollbarSize:8,horizontal:"hidden",horizontalScrollbarSize:0},scrollBeyondLastLine:!1,wordWrap:"on"},onBeforeEditorMount:ns,onEditorDidMount:(i,c)=>{n(i,c),as(i,c,l),rs(i)}})}function as(e,t,a){const r=[{range:new t.Range(1,1,1,1),options:{className:a.placeholder,isWholeLine:!0}}];let n=[];const d=()=>{const l=e.getModel();if(!l)return;const i=l.getValueLength()===0?r:[];n=l.deltaDecorations(n,i)};d(),e.onDidChangeModelContent(d)}function rs(e){const t=e.getDomNode(),a=()=>{if(t){const r=Math.min(1e3,e.getContentHeight()),n=parseInt(t.style.width,10);t.style.width=`${n}px`,t.style.height=`${r}px`,e.layout({width:n,height:r})}};e.onDidContentSizeChange(a),a()}function ss(e){const t=(0,s.useRef)(new Kr({languageProvider:e.languageProvider}));(0,s.useEffect)(()=>{(async()=>{try{await e.languageProvider.start()}catch(n){n instanceof Error&&Qe(Te(ye("Error",n)))}})()},[e]);const a=(0,s.useRef)(null);return(0,s.useEffect)(()=>()=>{a.current?.()},[]),(r,n)=>{t.current.editor=r,t.current.monaco=n;const{dispose:d}=n.languages.registerCompletionItemProvider(Ae,t.current);a.current=d}}let la=!1;const Ae="tagsfield";function ns(e){if(!la){la=!0;const{aliases:t,extensions:a,mimetypes:r,def:n}=es;e.languages.register({id:Ae,aliases:t,extensions:a,mimetypes:r}),e.languages.setMonarchTokensProvider(Ae,n.language),e.languages.setLanguageConfiguration(Ae,n.languageConfiguration)}}const ds=(e,t)=>({queryField:(0,h.css)({borderRadius:e.shape.radius.default,border:`1px solid ${e.components.input.borderColor}`,flex:1}),placeholder:(0,h.css)({"::after":{content:`'${t}'`,fontFamily:e.typography.fontFamilyMonospace,opacity:.3}})}),ia="e.g. 1.2s, 100ms",ls=({datasource:e,query:t,onChange:a,onBlur:r,onRunQuery:n})=>{const d=(0,T.of)(is),l=(0,s.useMemo)(()=>new ta(e),[e]),[i,c]=(0,s.useState)(),[u,p]=(0,s.useState)(),[m,g]=(0,s.useState)(null),[O,S]=(0,s.useState)({}),[y,z]=(0,s.useState)({serviceName:!1,spanName:!1}),_=(0,s.useCallback)(async(E,U="")=>{const fe=E==="serviceName"?"service.name":"name";z(X=>({...X,[E]:!0}));try{return(await l.getOptionsV1(fe)).filter(x=>x.value?(0,Ya.I)(x.value,U).found:!1)}catch(X){return(0,he.NF)(X)&&X?.status===404?g(X):X instanceof Error&&Qe(Te(ye("Error",X))),[]}finally{z(X=>({...X,[E]:!1}))}},[l]);(0,s.useEffect)(()=>{(async()=>{try{const[U,fe]=await Promise.all([_("serviceName"),_("spanName")]);t.serviceName&&(0,ve.w)().containsTemplate(t.serviceName)&&U.push((0,jt.z)(t.serviceName)),c(U),t.spanName&&(0,ve.w)().containsTemplate(t.spanName)&&fe.push((0,jt.z)(t.spanName)),p(fe)}catch(U){(0,he.NF)(U)&&U?.status===404?g(U):U instanceof Error&&Qe(Te(ye("Error",U)))}})()},[l,_,t.serviceName,t.spanName]);const v=E=>{E.key==="Enter"&&(E.shiftKey||E.ctrlKey)&&n()},I=(0,s.useCallback)(E=>{a({...t,search:E})},[a,t]),L=(0,ve.w)();return s.createElement(s.Fragment,null,s.createElement("div",{className:d.container},s.createElement(Se.F,{title:"Deprecated query type",severity:"warning"},"This query type has been deprecated and will be removed in Grafana v10.3. Please migrate to another Tempo query type."),s.createElement(C.C,null,s.createElement(Q.I,{label:"Service Name",labelWidth:14,grow:!0},s.createElement(Z.l6,{inputId:"service",options:i,onOpenMenu:()=>{_("serviceName")},isLoading:y.serviceName,value:i?.find(E=>E?.value===t.serviceName)||t.serviceName,onChange:E=>{a({...t,serviceName:E?.value})},placeholder:"Select a service",isClearable:!0,onKeyDown:v,"aria-label":"select-service-name",allowCustomValue:!0}))),s.createElement(C.C,null,s.createElement(Q.I,{label:"Span Name",labelWidth:14,grow:!0},s.createElement(Z.l6,{inputId:"spanName",options:u,onOpenMenu:()=>{_("spanName")},isLoading:y.spanName,value:u?.find(E=>E?.value===t.spanName)||t.spanName,onChange:E=>{a({...t,spanName:E?.value})},placeholder:"Select a span",isClearable:!0,onKeyDown:v,"aria-label":"select-span-name",allowCustomValue:!0}))),s.createElement(C.C,null,s.createElement(Q.I,{label:"Tags",labelWidth:14,grow:!0,tooltip:"Values should be in logfmt."},s.createElement(ts,{placeholder:"http.status_code=200 error=true",value:t.search||"",onChange:I,onBlur:r,datasource:e}))),s.createElement(C.C,null,s.createElement(Q.I,{label:"Min Duration",invalid:!!O.minDuration,labelWidth:14,grow:!0},s.createElement(ze.p,{id:"minDuration",value:t.minDuration||"",placeholder:ia,onBlur:()=>{const E=L.replace(t.minDuration??"");t.minDuration&&!(0,We.pp)(E)?S({...O,minDuration:!0}):S({...O,minDuration:!1})},onChange:E=>a({...t,minDuration:E.currentTarget.value}),onKeyDown:v}))),s.createElement(C.C,null,s.createElement(Q.I,{label:"Max Duration",invalid:!!O.maxDuration,labelWidth:14,grow:!0},s.createElement(ze.p,{id:"maxDuration",value:t.maxDuration||"",placeholder:ia,onBlur:()=>{const E=L.replace(t.maxDuration??"");t.maxDuration&&!(0,We.pp)(E)?S({...O,maxDuration:!0}):S({...O,maxDuration:!1})},onChange:E=>a({...t,maxDuration:E.currentTarget.value}),onKeyDown:v}))),s.createElement(C.C,null,s.createElement(Q.I,{label:"Limit",invalid:!!O.limit,labelWidth:14,grow:!0,tooltip:"Maximum number of returned results"},s.createElement(ze.p,{id:"limit",value:t.limit||"",placeholder:`Default: ${pe}`,type:"number",onChange:E=>{let U=E.currentTarget.value?parseInt(E.currentTarget.value,10):void 0;U&&(!Number.isInteger(U)||U<=0)?S({...O,limit:!0}):S({...O,limit:!1}),a({...t,limit:E.currentTarget.value?parseInt(E.currentTarget.value,10):void 0})},onKeyDown:v})))),m?s.createElement(Se.F,{title:"Unable to connect to Tempo search",severity:"info",className:d.alert},"Please ensure that Tempo is configured with search enabled. If you would like to hide this tab, you can configure it in the ",s.createElement("a",{href:`/datasources/edit/${e.uid}`},"datasource settings"),"."):null)},is=e=>({container:(0,h.css)({maxWidth:"500px"}),alert:(0,h.css)({maxWidth:"75ch",marginTop:e.spacing(2)})});var os=o(28848),cs=o.n(os);function us({query:e,lang:t,className:a}){const r=(0,T.$j)(),n=ps(r),d=cs().highlight(e,t.grammar,t.name);return s.createElement("div",{className:(0,h.cx)(n.editorField,"prism-syntax-highlight",a),"aria-label":"selector",dangerouslySetInnerHTML:{__html:d}})}const ps=e=>({editorField:(0,h.css)({fontFamily:e.typography.fontFamilyMonospace,fontSize:e.typography.bodySmall.fontSize})});var ms=o(9e4),Et=o(81580),oa=o(51440),gs=o(42941),Os=o(83195),fs=o(82762),ca=o(67061),hs=o(56034),ua=o(14578);function vs({title:e,children:t,collapsedInfo:a,queryStats:r}){const[n,d]=(0,gs.A)(!1),l=(0,T.of)(Ss);return s.createElement("div",{className:l.wrapper},s.createElement(fs.S,{className:l.collapse,collapsible:!0,isOpen:n,onToggle:d,label:s.createElement(ca.B,{gap:0},s.createElement("h6",{className:l.title},e),!n&&s.createElement("div",{className:l.description},a.map((i,c)=>s.createElement("span",{key:c},i))))},s.createElement("div",{className:l.body},t)),r&&P.$.featureToggles.lokiQuerySplitting&&s.createElement(hs.m,{content:"Note: the query will be split into multiple parts and executed in sequence. Query limits will only apply each individual part."},s.createElement(ua.I,{tabIndex:0,name:"info-circle",className:l.tooltip,size:"sm"})),r&&s.createElement("p",{className:l.stats},Ts(r)))}const Ss=e=>({collapse:(0,h.css)({backgroundColor:"unset",border:"unset",marginBottom:0,["> button"]:{padding:e.spacing(0,1)}}),wrapper:(0,h.css)({width:"100%",display:"flex",justifyContent:"space-between",alignItems:"baseline"}),title:(0,h.css)({flexGrow:1,overflow:"hidden",fontSize:e.typography.bodySmall.fontSize,fontWeight:e.typography.fontWeightMedium,margin:0}),description:(0,h.css)({color:e.colors.text.secondary,fontSize:e.typography.bodySmall.fontSize,fontWeight:e.typography.bodySmall.fontWeight,paddingLeft:e.spacing(2),gap:e.spacing(2),display:"flex"}),body:(0,h.css)({display:"flex",gap:e.spacing(2),flexWrap:"wrap"}),stats:(0,h.css)({margin:"0px",color:e.colors.text.secondary,fontSize:e.typography.bodySmall.fontSize}),tooltip:(0,h.css)({marginRight:e.spacing(.25)})}),Ts=e=>e.message?e.message:`This query will process approximately ${ys(e)}.`,ys=e=>{const{text:t,suffix:a}=(0,Os.j_)("bytes")(e.bytes,1);return t+a},pa=(e,t)=>{const a=parseInt(e,10);return isNaN(a)?t:a},Qt=s.memo(({onChange:e,query:t})=>{t.hasOwnProperty("limit")||(t.limit=pe),t.hasOwnProperty("tableType")||(t.tableType=R.Jv.Traces);const a=l=>{e({...t,limit:pa(l.currentTarget.value,pe)})},r=l=>{e({...t,spss:pa(l.currentTarget.value,Ie)})},n=l=>{e({...t,tableType:l})},d=[`Limit: ${t.limit||pe}`,`Spans Limit: ${t.spss||Ie}`,`Table Format: ${t.tableType===R.Jv.Traces?"Traces":"Spans"}`];return s.createElement(s.Fragment,null,s.createElement(ms.U,null,s.createElement(vs,{title:"Options",collapsedInfo:d},s.createElement(Et.c,{label:"Limit",tooltip:"Maximum number of traces to return."},s.createElement(oa.D,{className:"width-4",placeholder:"auto",type:"number",min:1,defaultValue:t.limit||pe,onCommitChange:a,value:t.limit})),s.createElement(Et.c,{label:"Span Limit",tooltip:"Maximum number of spans to return for each span set."},s.createElement(oa.D,{className:"width-4",placeholder:"auto",type:"number",min:1,defaultValue:t.spss||Ie,onCommitChange:r,value:t.spss})),s.createElement(Et.c,{label:"Table Format",tooltip:"How the query data should be displayed in the results table"},s.createElement(j.z,{options:[{label:"Traces",value:R.Jv.Traces},{label:"Spans",value:R.Jv.Spans}],value:t.tableType,onChange:n})))))});Qt.displayName="TempoQueryBuilderOptions";const Es=/^(\$\w+)|(\d+(?:\.\d)?\d*(?:us|µs|ns|ms|s|m|h))$/,Qs=()=>({noBoxShadow:(0,h.css)({boxShadow:"none","*:focus":{boxShadow:"none"}})}),ma=({filter:e,operators:t,updateFilter:a})=>{const r=(0,T.of)(Qs);let n=!1;return typeof e.value=="string"&&(n=e.value?!Es.test(e.value.concat("")):!1),s.createElement(N.Gy,{spacing:"none"},s.createElement(Z.l6,{className:r.noBoxShadow,inputId:`${e.id}-operator`,options:t.map(ea),value:e.operator,onChange:d=>{a({...e,operator:d?.value})},isClearable:!1,"aria-label":`select ${e.id} operator`,allowCustomValue:!0,width:8}),s.createElement(ze.p,{className:r.noBoxShadow,value:e.value,onChange:d=>{a({...e,value:d.currentTarget.value})},placeholder:"e.g. 100ms, 1.2s","aria-label":`select ${e.id} value`,invalid:n,width:18}))};var Je=o(3721);const Le=({label:e,tooltip:t,children:a})=>s.createElement(C.C,null,s.createElement(Q.I,{label:e,labelWidth:28,grow:!0,tooltip:t},a)),bs=e=>{const{datasource:t,onChange:a,query:r,isTagsLoading:n}=e,d=(0,T.of)(xs),l=()=>(0,Ye.A)().slice(0,8);(0,s.useEffect)(()=>{(!r.groupBy||r.groupBy.length===0)&&a({...r,groupBy:[{id:l(),scope:R.d.Span}]})},[a,r]);const i=g=>t.languageProvider.getMetricsSummaryTags(g.scope),c=()=>{p({id:l(),scope:R.d.Span})},u=g=>{a({...r,groupBy:r.groupBy?.filter(O=>O.id!==g.id)})},p=g=>{const O={...r};O.groupBy||=[];const S=O.groupBy.findIndex(y=>y.id===g.id);S>=0?O.groupBy=ft(O.groupBy,S,g):O.groupBy.push(g),a(O)},m=Object.values(R.d).map(g=>({label:g,value:g}));return s.createElement(Le,{label:"Aggregate by",tooltip:"Select one or more tags to see the metrics summary. Note: the metrics summary API only considers spans of kind = server."},s.createElement(s.Fragment,null,r.groupBy?.map((g,O)=>s.createElement("div",{key:g.id},s.createElement(N.Gy,{spacing:"none",width:"auto"},s.createElement(Z.l6,{"aria-label":`Select scope for filter ${O+1}`,onChange:S=>{p({...g,scope:S?.value,tag:""})},options:m,placeholder:"Select scope",value:g.scope}),s.createElement(Z.l6,{"aria-label":`Select tag for filter ${O+1}`,isClearable:!0,isLoading:n,key:g.tag,onChange:S=>{p({...g,tag:S?.value})},options:i(g)?.map(S=>({label:S,value:S})),placeholder:"Select tag",value:g.tag||""}),(g.tag||(r.groupBy?.length??0)>1)&&s.createElement(Je.Z,{"aria-label":`Remove tag for filter ${O+1}`,icon:"times",onClick:()=>u(g),tooltip:"Remove tag",title:`Remove tag for filter ${O+1}`,variant:"secondary"}),g.tag&&O===(r.groupBy?.length??0)-1&&s.createElement("span",{className:d.addTag},s.createElement(Je.Z,{"aria-label":"Add tag",icon:"plus",onClick:()=>c(),tooltip:"Add tag",variant:"secondary"})))))))},xs=e=>({addTag:(0,h.css)({marginLeft:e.spacing(1)})}),Rs=()=>({dropdown:(0,h.css)({boxShadow:"none"})}),bt=({filter:e,datasource:t,updateFilter:a,isTagsLoading:r,tags:n,setError:d,hideScope:l,hideTag:i,hideValue:c,query:u,isMulti:p=!0,allowCustomValue:m=!0})=>{const g=(0,T.of)(Rs),O=(0,s.useMemo)(()=>gt(e),[e]),[S,y]=(0,s.useState)(e.operator),[z,_]=(0,s.useState)(e.value),v=async()=>{try{return e.tag?await t.languageProvider.getOptionsV2(O,u):[]}catch(x){(0,he.NF)(x)&&x?.status===404?d(x):x instanceof Error&&Qe(Te(ye("Error",x)))}return[]},{loading:I,value:L}=(0,f.A)(v,[O,t.languageProvider,d,u]);e.value&&!Array.isArray(e.value)&&L&&!L.find(x=>x.value===e.value)&&L.push({label:e.value.toString(),value:e.value.toString(),type:e.valueType}),(0,s.useEffect)(()=>{Array.isArray(e.value)&&e.value.length>1&&e.operator!=="=~"&&e.operator!=="!~"&&(y(e.operator),a({...e,operator:"=~"})),Array.isArray(e.value)&&e.value.length<=1&&(z?.length||0)>1&&a({...e,operator:S,value:e.value[0]})},[z,S,a,e]),(0,s.useEffect)(()=>{_(e.value)},[e.value]);const E=Object.values(R.d).filter(x=>x!==R.d.Intrinsic).map(x=>({label:x,value:x})),U=L?.filter(x=>x.type===L[0]?.type),fe=L?.length===U?.length?L?.[0]?.type:void 0;let X=qt;switch(fe){case"keyword":X=ur;break;case"string":X=pr;break;case"int":case"float":X=mr}const je=x=>{const Ft=(0,ve.w)().getVariables();return[...x||[],...Ft.map(La=>({label:`$${La.name}`,value:`$${La.name}`}))]};return s.createElement(N.Gy,{spacing:"none",width:"auto"},!l&&s.createElement(Z.l6,{className:g.dropdown,inputId:`${e.id}-scope`,options:je(E),value:e.scope,onChange:x=>{a({...e,scope:x?.value})},placeholder:"Select scope","aria-label":`select ${e.id} scope`}),!i&&s.createElement(Z.l6,{className:g.dropdown,inputId:`${e.id}-tag`,isLoading:r,options:je((e.tag!==void 0?(0,q.uniq)([e.tag,...n]):n).map(x=>({label:x,value:x}))),value:e.tag,onChange:x=>{a({...e,tag:x?.value,value:[]})},placeholder:"Select tag",isClearable:!0,"aria-label":`select ${e.id} tag`,allowCustomValue:!0}),s.createElement(Z.l6,{className:g.dropdown,inputId:`${e.id}-operator`,options:je(X.map(ea)),value:e.operator,onChange:x=>{a({...e,operator:x?.value})},isClearable:!1,"aria-label":`select ${e.id} operator`,allowCustomValue:!0,width:8}),!c&&s.createElement(Z.l6,{className:g.dropdown,inputId:`${e.id}-value`,isLoading:I,options:je(L),value:e.value,onChange:x=>{Array.isArray(x)?a({...e,value:x.map(Ft=>Ft.value),valueType:x[0]?.type||fe}):a({...e,value:x?.value,valueType:x?.type||fe})},placeholder:"Select value",isClearable:!0,"aria-label":`select ${e.id} value`,allowCustomValue:m,isMulti:p,allowCreateWhileLoading:!0}))},Ps=e=>({vertical:(0,h.css)({display:"flex",flexDirection:"column",gap:e.spacing(.25)}),horizontal:(0,h.css)({display:"flex",flexDirection:"row",gap:e.spacing(1)}),addTag:(0,h.css)({marginLeft:e.spacing(1)})}),ga=({updateFilter:e,deleteFilter:t,filters:a,datasource:r,setError:n,staticTags:d,isTagsLoading:l,hideValues:i,requireTagAndValue:c,query:u})=>{const p=(0,T.of)(Ps),m=()=>(0,Ye.A)().slice(0,8),g=(0,s.useCallback)(()=>e({id:m(),operator:"=",scope:R.d.Span}),[e]);(0,s.useEffect)(()=>{a?.length||g()},[a,g]);const O=y=>{const z=r.languageProvider.getTags(y.scope);return yr(z,d)},S=y=>c?y.tag&&y.value&&y.value.length>0:y.tag;return s.createElement("div",{className:p.vertical},a?.map((y,z)=>s.createElement("div",{className:p.horizontal,key:y.id},s.createElement(bt,{filter:y,datasource:r,setError:n,updateFilter:e,tags:O(y),isTagsLoading:l,hideValue:i,query:u}),(S(y)||a.length>1)&&s.createElement(Je.Z,{"aria-label":`Remove tag with ID ${y.id}`,variant:"secondary",icon:"times",onClick:()=>t?.(y),tooltip:"Remove tag"}),S(y)&&z===a.length-1&&s.createElement("span",{className:p.addTag},s.createElement(Je.Z,{"aria-label":"Add tag",variant:"secondary",icon:"plus",onClick:g,tooltip:"Add tag"})))))},ws=["min-duration","max-duration","status"],Cs=({datasource:e,query:t,onChange:a,onClearResults:r,app:n})=>{const d=(0,T.of)(Is),[l,i]=(0,s.useState)(null),[c,u]=(0,s.useState)(!0),[p,m]=(0,s.useState)(""),g=(0,ve.w)(),O=(0,s.useCallback)(v=>{const I={...t};I.filters||=[];const L=I.filters.findIndex(E=>E.id===v.id);L>=0?I.filters=ft(I.filters,L,v):I.filters.push(v),a(I)},[a,t]),S=v=>{a({...t,filters:t.filters.filter(I=>I.id!==v.id)})};(0,s.useEffect)(()=>{m(Ce(t.filters||[]))},[t]);const y=(0,s.useCallback)(v=>t.filters?.find(I=>I.id===v),[t.filters]);(0,s.useEffect)(()=>{(async()=>{try{await e.languageProvider.start(),u(!1)}catch(I){I instanceof Error&&Qe(Te(ye("Error",I)))}})()},[e]),(0,s.useEffect)(()=>{e.search?.filters?.filter(v=>v.value).forEach(v=>{y(v.id)||O(v)})},[e.search?.filters,y,O]);const z=e.search?.filters?.map(v=>v.tag)||[];z.push("duration"),z.push("traceDuration");const _=(t.filters||[]).filter(v=>!ws.includes(v.id)&&(e.search?.filters?.findIndex(I=>I.id===v.id)||0)===-1&&v.id!=="duration-type");return s.createElement(s.Fragment,null,s.createElement("div",{className:d.container},s.createElement("div",null,e.search?.filters?.map(v=>v.tag&&s.createElement(Le,{key:v.id,label:Tr(v),tooltip:`Filter your search by ${gt(v)}. To modify the default filters shown for search visit the Tempo datasource configuration page.`},s.createElement(bt,{filter:y(v.id)||v,datasource:e,setError:i,updateFilter:O,tags:[],hideScope:!0,hideTag:!0,query:p}))),s.createElement(Le,{label:"Status"},s.createElement(bt,{filter:y("status")||{id:"status",tag:"status",scope:R.d.Intrinsic,operator:"="},datasource:e,setError:i,updateFilter:O,tags:[],hideScope:!0,hideTag:!0,query:p,isMulti:!1,allowCustomValue:!1})),s.createElement(Le,{label:"Duration",tooltip:"The trace or span duration, i.e. end - start time of the trace/span. Accepted units are ns, ms, s, m, h"},s.createElement(N.Gy,{spacing:"none"},s.createElement(Z.l6,{options:[{label:"span",value:"span"},{label:"trace",value:"trace"}],value:y("duration-type")?.value??"span",onChange:v=>{const I=y("duration-type")||{id:"duration-type",value:"span"};O({...I,value:v?.value})},"aria-label":"duration type"}),s.createElement(ma,{filter:y("min-duration")||{id:"min-duration",tag:"duration",operator:">",valueType:"duration"},operators:[">",">="],updateFilter:O}),s.createElement(ma,{filter:y("max-duration")||{id:"max-duration",tag:"duration",operator:"<",valueType:"duration"},operators:["<","<="],updateFilter:O}))),s.createElement(Le,{label:"Tags"},s.createElement(ga,{filters:_,datasource:e,setError:i,updateFilter:O,deleteFilter:S,staticTags:z,isTagsLoading:c,query:p,requireTagAndValue:!0})),P.$.featureToggles.metricsSummary&&s.createElement(bs,{datasource:e,onChange:a,query:t,isTagsLoading:c})),s.createElement("div",{className:d.rawQueryContainer},s.createElement(us,{query:g.replace(p),lang:{grammar:hr,name:"traceql"}}),s.createElement(H.$n,{variant:"secondary",size:"sm",onClick:()=>{(0,D.rR)("grafana_traces_copy_to_traceql_clicked",{app:n??"",grafana_version:P.$.buildInfo.version,location:"search_tab"}),r();const v=Ce(t.filters||[]);a({...t,query:v,queryType:"traceql"})}},"Edit in TraceQL")),s.createElement(Qt,{onChange:a,query:t})),l?s.createElement(Se.F,{title:"Unable to connect to Tempo search",severity:"info",className:d.alert},"Please ensure that Tempo is configured with search enabled. If you would like to hide this tab, you can configure it in the ",s.createElement("a",{href:`/datasources/edit/${e.uid}`},"datasource settings"),"."):null)},Is=e=>({alert:(0,h.css)({maxWidth:"75ch",marginTop:e.spacing(2)}),container:(0,h.css)({display:"flex",gap:"4px",flexWrap:"wrap",flexDirection:"column"}),rawQueryContainer:(0,h.css)({alignItems:"center",backgroundColor:e.colors.background.secondary,display:"flex",justifyContent:"space-between",padding:e.spacing(1)})});var Oa=o(38401),Ds=o(72635),xt=o(83684);const fa=90,ha=({datasource:e,onChange:t,disabled:a,filterKey:r,allFilters:n})=>{const d=()=>va(e,r,n),l=()=>$s(e,r,n);return r===null?s.createElement("div",{className:"gf-form","data-testid":"AdHocFilterKey-add-key-wrapper"},s.createElement(xt.s,{disabled:a,className:"query-segment-key",Component:zs,value:r,onChange:t,loadOptions:d,inputMinWidth:fa})):s.createElement("div",{className:"gf-form","data-testid":"AdHocFilterKey-key-wrapper"},s.createElement(xt.s,{disabled:a,className:"query-segment-key",value:r,onChange:t,loadOptions:l,inputMinWidth:fa}))},et="-- remove filter --",Ns={label:et,value:et},zs=s.createElement("span",{className:"gf-form-label query-part","aria-label":"Add Filter"},s.createElement(ua.I,{name:"plus"})),va=async(e,t,a)=>{const r=await(0,ne.l)().get(e);if(!r||!r.getTagKeys)return[];const n=a.filter(l=>l.key!==t);return(await r.getTagKeys({filters:n})).map(l=>({label:l.text,value:l.text}))},$s=async(e,t,a)=>{const r=await va(e,t,a);return[Ns,...r]};var Ms=o(43127);const As=({datasource:e,disabled:t,onChange:a,filterKey:r,filterValue:n,placeHolder:d,allFilters:l})=>{const i=()=>Ls(e,r,l);return s.createElement("div",{className:"gf-form","data-testid":"AdHocFilterValue-value-wrapper"},s.createElement(xt.s,{className:"query-segment-value",disabled:t,placeholder:d,value:n,onChange:a,loadOptions:i}))},Ls=async(e,t,a)=>{const r=await(0,ne.l)().get(e);if(!r||!r.getTagValues)return[];const n=(0,Ms.E2)(),d=a.filter(i=>i.key!==t);return(await r.getTagValues({key:t,filters:d,timeRange:n})).map(i=>({label:i.text,value:i.text}))},Vs=["=","!=","<",">","=~","!~"].map(e=>({label:e,value:e})),Fs=({value:e,disabled:t,onChange:a})=>s.createElement(Oa.Y,{className:"query-segment-operator",value:e,disabled:t,options:Vs,onChange:a}),Sa=({datasource:e,filter:{key:t,operator:a,value:r},onKeyChange:n,onOperatorChange:d,onValueChange:l,placeHolder:i,allFilters:c,disabled:u})=>s.createElement(s.Fragment,null,s.createElement(ha,{disabled:u,datasource:e,filterKey:t,onChange:n,allFilters:c}),s.createElement("div",{className:"gf-form"},s.createElement(Fs,{disabled:u,value:a,onChange:d})),s.createElement(As,{disabled:u,datasource:e,filterKey:t,filterValue:r,allFilters:c,onChange:l,placeHolder:i})),Us=Ds.default.t,js=(e,t,a)=>Us(e,t,a),Xs=({datasource:e,appendBefore:t,onCompleted:a,allFilters:r})=>{const[n,d]=(0,s.useState)(null),[l,i]=(0,s.useState)("="),c=(0,s.useCallback)(m=>{if(m.value!==et){d(m.value??"");return}d(null)},[d]),u=(0,s.useCallback)(m=>i(m.value??""),[i]),p=(0,s.useCallback)(m=>{a({value:m.value??"",operator:l,key:n}),d(null),i("=")},[a,l,n]);return n===null?s.createElement(ha,{datasource:e,filterKey:n,onChange:c,allFilters:r}):s.createElement(s.Fragment,{key:"filter-builder"},t,s.createElement(Sa,{datasource:e,filter:{key:n,value:"",operator:l},placeHolder:js("variable.adhoc.placeholder","Select value"),onKeyChange:c,onOperatorChange:u,onValueChange:p,allFilters:r}))},Ta=({label:e})=>s.createElement("div",{className:"gf-form"},s.createElement("span",{className:"gf-form-label query-keyword"},e));class Ws extends s.PureComponent{constructor(){super(...arguments),this.onChange=(t,a)=>r=>{const{filters:n}=this.props,{value:d}=r;return r.value===et?this.props.removeFilter(t):this.props.changeFilter(t,{...n[t],[a]:d})},this.appendFilterToVariable=t=>{this.props.addFilter(t)}}render(){const{filters:t,disabled:a}=this.props;return s.createElement("div",{className:"gf-form-inline"},this.renderFilters(t,a),!a&&s.createElement(Xs,{datasource:this.props.datasource,appendBefore:t.length>0?s.createElement(Ta,{label:"AND"}):null,onCompleted:this.appendFilterToVariable,allFilters:this.getAllFilters()}))}getAllFilters(){return this.props.baseFilters?this.props.baseFilters.concat(this.props.filters):this.props.filters}renderFilters(t,a){return t.length===0&&a?s.createElement(Oa.Y,{disabled:a,value:"No filters",options:[],onChange:()=>{}}):t.reduce((r,n,d)=>(r.length>0&&r.push(s.createElement(Ta,{label:"AND",key:`condition-${d}`})),r.push(this.renderFilterSegments(n,d,a)),r),[])}renderFilterSegments(t,a,r){return s.createElement(s.Fragment,{key:`filter-${a}`},s.createElement(Sa,{disabled:r,datasource:this.props.datasource,filter:t,onKeyChange:this.onChange(a,"key"),onOperatorChange:this.onChange(a,"operator"),onValueChange:this.onChange(a,"value"),allFilters:this.getAllFilters()}))}}function ks({graphDatasourceUid:e,query:t,onChange:a}){const r=(0,T.of)(_s),n=(0,f.A)(()=>Ut(e),[e]),[d,l]=(0,s.useState)(void 0);if((0,s.useEffect)(()=>{async function u(p){const m=await p.getTagKeys({filters:[{key:"__name__",operator:"=~",value:"traces_service_graph_request_server_seconds_sum|traces_service_graph_request_total|traces_service_graph_request_failed_total",condition:""}]});l(!!m.length)}!n.loading&&n.value&&u(n.value)},[n]),n.loading)return null;const i=n.value;if(!e)return Rt("No service graph datasource selected","Please set up a service graph datasource in the datasource settings",r);if(e&&!i)return Rt("No service graph data found","Service graph datasource is configured but the data source no longer exists. Please configure existing data source to use the service graph functionality",r);const c=Ys((Array.isArray(t.serviceMapQuery)?t.serviceMapQuery[0]:t.serviceMapQuery)||"");return s.createElement("div",null,s.createElement(C.C,null,s.createElement(Q.I,{label:"Filter",labelWidth:14,grow:!0},s.createElement(Ws,{datasource:{uid:e},filters:c,baseFilters:[{key:"__name__",operator:"=~",value:"traces_service_graph_request_total|traces_spanmetrics_calls_total",condition:""}],addFilter:u=>{a({...t,serviceMapQuery:Pt([...c,u])})},removeFilter:u=>{const p=[...c];p.splice(u,1),a({...t,serviceMapQuery:Pt(p)})},changeFilter:(u,p)=>{const m=[...c];m.splice(u,1,p),a({...t,serviceMapQuery:Pt(m)})}}))),d===!1?Rt("No service graph data found","Please ensure that service graph metrics are set up correctly",r):null)}function Rt(e,t,a){return s.createElement(Se.F,{title:e,severity:"info",className:a.alert},t," according to the"," ",s.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://grafana.com/docs/grafana/latest/datasources/tempo/service-graph/",className:a.link},"Tempo documentation"),".")}function Ys(e){let t,a=[];const r=/([\w_]+)(=|!=|<|>|=~|!~)"(.*?)"/g;for(;(t=r.exec(e))!==null;)a.push({key:t[1],operator:t[2],value:t[3],condition:""});return a}function Pt(e){return`{${e.map(t=>`${t.key}${t.operator}"${t.value}"`).join(",")}}`}const _s=e=>({alert:(0,h.css)({maxWidth:"75ch",marginTop:e.spacing(2)}),link:(0,h.css)({color:e.colors.text.link,textDecoration:"underline"})}),Bs={};var Gs=(e=>(e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.INTERNAL=1]="INTERNAL",e[e.SERVER=2]="SERVER",e[e.CLIENT=3]="CLIENT",e[e.PRODUCER=4]="PRODUCER",e[e.CONSUMER=5]="CONSUMER",e))(Gs||{}),Zs=(e=>(e[e.Error=7e3]="Error",e[e.Info=3e3]="Info",e[e.Success=3e3]="Success",e[e.Warning=5e3]="Warning",e))(Zs||{});const qs=e=>(0,h.css)({position:"absolute",zIndex:e.zIndex.portal,top:0,right:10}),Ks={error:7e3,info:3e3,success:3e3,warning:5e3},Hs=e=>{const t=qs((0,T.$j)()),[a,r]=(0,s.useState)(!1),[n,d]=(0,s.useState)();return(0,s.useEffect)(()=>()=>{n&&clearTimeout(n)},[n]),(0,s.useEffect)(()=>{if(e.text!==""){r(!0);const l=setTimeout(()=>{r(!1)},Ks[e.severity]);d(l)}},[e.severity,e.text]),s.createElement(s.Fragment,null,a&&s.createElement(Se.F,{className:t,elevated:!0,title:e.text,severity:e.severity}))};var ya=o(48820);const wt=ya.U1.deserialize({version:14,states:"1pO]QPOOP!pOPOOO]QPO'#CkO#dQPO'#CjO%wQQO'#ClOOQO'#DP'#DPOOQO'#DO'#DOO&OQPO'#DOO&TQSO'#C{OOQO'#C|'#C|O&]QPO'#C|O&hQPO'#DRO&mQPO'#DSO&rQPO'#DUOOQO'#DW'#DWO&wQPO'#DVOOQO'#Cj'#CjQ'PQPOOOOQO'#C`'#C`P'nO!bO'#C^POOO)C?S)C?SO'yQPO,59VO(QQSO,59hO(]QPO,59TO(}QPO,58zO)UQPO,59VO)UQPO,59VO)UQPO,59VO)UQPO,59VO)UQPO,59VO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26A0 LineComment BlockComment TraceQL SpansetPipelineExpression And Gt Desc Lt Anc Or Pipe ExperimentalOp WrappedSpansetPipeline SpansetPipeline SpansetExpression SpansetFilter FieldExpression FieldOp Static String Integer Float Duration TemplateVariable IntrinsicField Parent AttributeField Identifier Resource Span ScalarFilter ScalarExpression ScalarOp Aggregate AggregateExpression ComparisonOp GroupOperation SelectOperation SelectArgs CoalesceOperation MetricsOperation MetricsOperationType MetricsArgs MetricsQuery MetricsQueryExpression",maxTerm:98,skippedNodes:[0,1,2,46],repeatNodeCount:1,tokenData:"&5x~R!`X^%Tpq%Tqr%xrs'Qst(dtu*juv2cvw3_wx(dxy3jyz3wz{2c{|2c|}3|}!O4R!O!P4[!P!Q4a!Q[sv(dwx(dz|(d}!^(d!a#Q(d#R#o(d#s;'S(d;'S;=`*T<%lO(dp(iZlpOp(drs)[sv(dwx(dz|(d}!^(d!a#Q(d#R#o(d#s;'S(d;'S;=`*T<%lO(dp)_VOr)[rs(ds#O)[#O#P)t#P;'S)[;'S;=`)}<%lO)[p)wQrs)[#O#P)[p*QP;=`<%l)[p*WP;=`<%l(dt*^Qrs'Q#O#P'Qt*gP;=`<%l'Qv*oelpOp(drs,Qst,jtu,juv,jwx,jz|,j}![(d![!],j!]!^,j!a!b,j!b!c,j!c!},j!}#Q(d#R#S,j#S#T,j#T#o,j#o#p-y#s;'S(d;'S;=`*T<%lO(dv,TVOr,Qrs,js#O,Q#O#P-j#P;'S,Q;'S;=`-s<%lO,Qv,qZhUlpOp,jrs,Qsv,jwx,jz|,j}!^,j!a#Q,j#R#o,j#s;'S,j;'S;=`-d<%lO,jv-gP;=`<%l,jv-mQrs,Q#O#P,Qv-vP;=`<%l,Qv-|^rs.xst/btu/buv/bwx/bz|/b![!]/b!]!^/b!a!b/b!b!c/b!c!}/b#R#S/b#S#T/b#T#o/bv.{VOr.xrs/bs#O.x#O#P2S#P;'S.x;'S;=`2]<%lO.xv/e^Op/brs.xsv/bwx/bz|/b}![/b![!]0a!]!^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=19,tn=20,Ud=21,jd=22,Xd=23,Wd=24,Dt=25,an=26,Ve=27,rn=28,sn=29,nn=30,xa=31,dn=32,kd=33,rt=34,Yd=35,Ra=36,Nt=37,zt=38,ln=39,_d=40,Bd=41,Gd=42,Zd=43,qd=44,Kd=45;function Pa(e,t){const a=e.cursorAt(t);do if(a.from===t||a.to===t){const{node:r}=a;if(r.type.isError)return r}while(a.next());return null}function on(e,t){return e[t]}function me(e,t){let a=e;for(const[r,n]of t)if(a=on(a,r),a===null||n.find(d=>d===a?.type.id)===void 0)return null;return a}function st(e,t){return t.slice(e.from===e.to?e.from-1:e.from,e.to)}function cn(e,t){return e.every((a,r)=>a===t[r])}function un(e,t){if(e==="")return{query:e,type:"EMPTY"};const a=wt.parse(e);let r=t;for(;r-1>=0&&e[r-1]===" ";)r-=1;let n=Pa(a,r);n||(n=Pa(a,r-1));const d=n!=null?n.cursor():a.cursorAt(r),l=d.node,i=[d.type.id];for(;d.parent();)i.push(d.type.id);let c;for(let u of pn)cn(u.path,i)&&(c=u.fun(l,e,r,t));return{query:e,...c??{type:"UNKNOWN"}}}const le=0,pn=[{path:[le,Ve],fun:mn},{path:[le,ee],fun:Ca},{path:[le,at],fun:fn},{path:[le,rt],fun:nt},{path:[le,Dt],fun:nt},{path:[le,Nt],fun:nt},{path:[le,zt],fun:nt},{path:[le,tt],fun:On},{path:[le,xa,en],fun:gn},{path:[ee],fun:wa},{path:[at],fun:wa},{path:[tt],fun:Ia},{path:[Js],fun:Ia},{path:[tn,It],fun:Ca}],$t=(e,t,a)=>{const r=l=>{const i=me(l,[["firstChild",[Ve]]]),c=i?st(i,t):"",u=c.indexOf(".");return c.slice(0,u)};if(t[a-1]===" ")return;const n=me(e,[["firstChild",[ee]]]);if(n)return{type:"SPANSET_IN_NAME_SCOPE",scope:r(n)};const d=me(e,[["parent",[at]],["firstChild",[ee]]]);if(d&&t[a]!==" ")return{type:"SPANSET_IN_NAME_SCOPE",scope:r(d)}};function wa(e,t,a,r){const n=$t(e,t,r);if(n)return n;let d=me(e,[["firstChild",[ee]],["firstChild",[Ve]]]);return d?{type:"SPANSET_EXPRESSION_OPERATORS"}:(d=me(e,[["lastChild",[ee]],["lastChild",[ee]],["lastChild",[It]]]),d?{type:"SPANFIELD_COMBINING_OPERATORS"}:(d=me(e,[["lastChild",[ee]]]),d?{type:"SPANSET_EXPRESSION_OPERATORS"}:{type:"SPANSET_EMPTY"}))}function mn(e,t){const a=me(e,[["parent",[Ve]]]),r=a?st(a,t):"";if(r===".")return{type:"SPANSET_ONLY_DOT"};const n=r.indexOf("."),d=r.slice(0,n);return["span","resource","parent"].find(l=>l===d)?{type:"SPANSET_IN_NAME_SCOPE",scope:d}:{type:"SPANSET_IN_NAME"}}function Ca(e,t,a,r){const n=$t(e,t,r);if(n)return n;if(me(e,[["parent",[It]],["parent",[ee]],["prevSibling",[Ct]]])){let d=e.parent?.parent?.prevSibling?.prevSibling;if(d)return{type:"SPANSET_IN_VALUE",tagName:st(d,t),betweenQuotes:!0}}if(e.prevSibling?.type.id===Ct){let d=e.prevSibling?.prevSibling;if(d)return{type:"SPANSET_IN_VALUE",tagName:st(d,t),betweenQuotes:!1}}return e.prevSibling?.type.name==="And"||e.prevSibling?.type.name==="Or"?{type:"SPANSET_EMPTY"}:{type:"SPANSET_IN_THE_MIDDLE"}}function gn(e,t,a){if(e.prevSibling?.type.id!==Ra)return{type:"SPANSET_COMPARISON_OPERATORS"}}function Ia(e,t,a){let r=e.firstChild;try{for(r=e.firstChild;r.to<a;)r=r.nextSibling}catch(n){console.error("Unexpected error while searching for previous node",n)}return r?.type.id===Ea||r?.type.id===Qa?{type:"NEW_SPANSET"}:{type:"SPANSET_COMBINING_OPERATORS"}}function nt(e,t,a){const r=e?.parent;if(r&&[Dt,rt,Nt,zt,ln].includes(r.type.id))return{type:"ATTRIBUTE_FOR_FUNCTION"}}function On(e,t,a){return e.prevSibling?.type.id===ba?{type:"SPANSET_PIPELINE_AFTER_OPERATOR"}:{type:"NEW_SPANSET"}}function fn(e,t,a){const r=$t(e,t,a);return r||{type:"SPANSET_EXPRESSION_OPERATORS_WITH_MISSING_CLOSED_BRACE"}}const $=class{constructor(e){this.triggerCharacters=["{",".","[","(","=","~"," ",'"'],this.cachedValues={},this.languageProvider=e.languageProvider,this.registerInteractionCommandId=null}provideCompletionItems(e,t){if(!(this.monaco&&this.editor))throw new Error("provideCompletionItems called before CompletionProvider was initialized");if(this.editor.getModel()?.id!==e.id)return{suggestions:[]};const{range:a,offset:r}=vn(this.monaco,e,t),n=un(e.getValue(),r);return(n!=null?this.getCompletions(n):Promise.resolve([])).then(l=>{const i=l.length.toString().length;return{suggestions:l.map((u,p)=>{const m={kind:hn(u.type,this.monaco),label:u.label,insertText:u.insertText,insertTextRules:u.insertTextRules,detail:u.detail,documentation:u.documentation,sortText:p.toString().padStart(i,"0"),range:a,command:{id:this.registerInteractionCommandId||"noOp",title:"Report Interaction",arguments:[u.label,u.type]}};return Sn(m,u.type,e,r),m})}})}setRegisterInteractionCommandId(e){this.registerInteractionCommandId=e}async getTagValues(e,t){let a;const r=`${e}:${t}`;return this.cachedValues.hasOwnProperty(r)?a=this.cachedValues[r]:(a=await this.languageProvider.getOptionsV2(e,t),this.cachedValues[r]=a),a}async getCompletions(e){switch(e.type){case"UNKNOWN":return[];case"EMPTY":return this.getScopesCompletions("{ ","$0 }").concat(this.getIntrinsicsCompletions("{ ","$0 }")).concat(this.getTagsCompletions("{ ."));case"SPANSET_EMPTY":return this.getScopesCompletions().concat(this.getIntrinsicsCompletions()).concat(this.getTagsCompletions("."));case"SPANSET_ONLY_DOT":return this.getTagsCompletions();case"SPANSET_IN_THE_MIDDLE":return[...$.comparisonOps,...$.logicalOps].map(l=>({...l,type:"OPERATOR"}));case"SPANSET_EXPRESSION_OPERATORS_WITH_MISSING_CLOSED_BRACE":return[...$.comparisonOps,...$.logicalOps].map(l=>({...l,type:"OPERATOR"}));case"SPANSET_IN_NAME":return this.getScopesCompletions().concat(this.getIntrinsicsCompletions()).concat(this.getTagsCompletions());case"SPANSET_IN_NAME_SCOPE":return this.getTagsCompletions(void 0,e.scope);case"SPANSET_EXPRESSION_OPERATORS":return[...$.comparisonOps,...$.logicalOps,...$.arithmeticOps].map(l=>({...l,type:"OPERATOR"}));case"SPANFIELD_COMBINING_OPERATORS":return[...$.logicalOps,...$.arithmeticOps,...$.comparisonOps].map(l=>({...l,type:"OPERATOR"}));case"SPANSET_COMBINING_OPERATORS":return $.spansetOps.map(l=>({...l,type:"OPERATOR"}));case"SPANSET_PIPELINE_AFTER_OPERATOR":const t=$.functions.map(l=>({...l,insertTextRules:this.monaco?.languages.CompletionItemInsertTextRule?.InsertAsSnippet,type:"FUNCTION"})),a=this.getScopesCompletions().concat(this.getIntrinsicsCompletions()).concat(this.getTagsCompletions("."));return[...t,...a];case"SPANSET_COMPARISON_OPERATORS":return $.comparisonOps.map(l=>({...l,type:"OPERATOR"}));case"SPANSET_IN_VALUE":let r;try{r=await this.getTagValues(e.tagName,e.query)}catch(l){(0,he.NF)(l)?Qe(Te(ye(l.data.error,new Error(l.data.message)))):l instanceof Error&&Qe(Te(ye("Error",l)))}const n=[],d=l=>e.betweenQuotes?l.label:l.type==="string"?`"${l.label}"`:l.label;return r?.forEach(l=>{l?.label&&n.push({label:l.label,insertText:d(l),type:"TAG_VALUE"})}),n;case"SPANSET_AFTER_VALUE":return $.logicalOps.map(l=>({label:l.label,insertText:l.insertText+"}",type:"OPERATOR"}));case"NEW_SPANSET":return this.getScopesCompletions("{ ","$0 }").concat(this.getIntrinsicsCompletions("{ ","$0 }")).concat(this.getTagsCompletions("."));case"ATTRIBUTE_FOR_FUNCTION":return this.getScopesCompletions().concat(this.getIntrinsicsCompletions()).concat(this.getTagsCompletions("."));default:throw new Error(`Unexpected situation ${e}`)}}getTagsCompletions(e,t){return this.languageProvider.getTraceqlAutocompleteTags(t).sort((r,n)=>r.localeCompare(n,void 0,{sensitivity:"accent"})).map(r=>({label:r,insertText:(e||"")+r,type:"TAG_NAME"}))}getIntrinsicsCompletions(e,t){return Ge.map(a=>({label:a,insertText:(e||"")+a+(t||""),type:"KEYWORD",insertTextRules:this.monaco?.languages.CompletionItemInsertTextRule?.InsertAsSnippet}))}getScopesCompletions(e,t){return Kt.map(a=>({label:a,insertText:(e||"")+a+(t||""),type:"SCOPE",insertTextRules:this.monaco?.languages.CompletionItemInsertTextRule?.InsertAsSnippet}))}};let ge=$;ge.arithmeticOps=[{label:"+",insertText:"+",detail:"Plus"},{label:"-",insertText:"-",detail:"Minus"},{label:"*",insertText:"*",detail:"Times"},{label:"/",insertText:"/",detail:"Over"}],ge.logicalOps=[{label:"&&",insertText:"&&",detail:"And",documentation:"And (intersection) operator. Checks that both conditions found matches."},{label:"||",insertText:"||",detail:"Or",documentation:"Or (union) operator. Checks that either condition found matches."}],ge.comparisonOps=[{label:"=",insertText:"=",detail:"Equality"},{label:"!=",insertText:"!=",detail:"Inequality"},{label:">",insertText:">",detail:"Greater than"},{label:">=",insertText:">=",detail:"Greater than or equal to"},{label:"<",insertText:"<",detail:"Less than"},{label:"<=",insertText:"<=",detail:"Less than or equal to"},{label:"=~",insertText:"=~",detail:"Regular expression"},{label:"!~",insertText:"!~",detail:"Negated regular expression"}],ge.structuralOps=[{label:">>",insertText:">>",detail:"Descendant",documentation:"Descendant operator. Looks for spans matching {condB} that are descendants of a span matching {condA}"},{label:">",insertText:">",detail:"Child",documentation:"Child operator. Looks for spans matching {condB} that are direct child spans of a parent matching {condA}"},{label:"<<",insertText:"<<",detail:"Ancestor",documentation:"Ancestor operator. Looks for spans matching {condB} that are ancestors of a span matching {condA}"},{label:"<",insertText:"<",detail:"Parent",documentation:"Parent operator. Looks for spans matching {condB} that are direct parent spans of a child matching {condA}"},{label:"~",insertText:"~",detail:"Sibling",documentation:"Sibling operator. Checks that spans matching {condA} and {condB} are siblings of the same parent span."}],ge.spansetOps=[{label:"|",insertText:"|",detail:"Pipe"},...$.logicalOps,...$.structuralOps],ge.spansetAggregatorOps=[{label:"count",insertText:"count()$0",detail:"Number of spans",documentation:"Counts the number of spans in a spanset"},{label:"avg",insertText:"avg($0)",detail:"Average of attribute",documentation:"Computes the average of a given numeric attribute or intrinsic for a spanset."},{label:"max",insertText:"max($0)",detail:"Max value of attribute",documentation:"Computes the maximum value of a given numeric attribute or intrinsic for a spanset."},{label:"min",insertText:"min($0)",detail:"Min value of attribute",documentation:"Computes the minimum value of a given numeric attribute or intrinsic for a spanset."},{label:"sum",insertText:"sum($0)",detail:"Sum value of attribute",documentation:"Computes the sum value of a given numeric attribute or intrinsic for a spanset."}],ge.functions=[...$.spansetAggregatorOps,{label:"by",insertText:"by($0)",detail:"Grouping of attributes",documentation:"Groups by arbitrary attributes."},{label:"select",insertText:"select($0)",detail:"Selection of fields",documentation:"Selects arbitrary fields from spans."}];function hn(e,t){switch(e){case"TAG_NAME":return t.languages.CompletionItemKind.Enum;case"KEYWORD":return t.languages.CompletionItemKind.Keyword;case"OPERATOR":return t.languages.CompletionItemKind.Operator;case"TAG_VALUE":return t.languages.CompletionItemKind.EnumMember;case"SCOPE":return t.languages.CompletionItemKind.Class;case"FUNCTION":return t.languages.CompletionItemKind.Function;default:throw new Error(`Unexpected CompletionType: ${e}`)}}function vn(e,t,a){const r=t.getWordAtPosition(a),n=r!=null?e.Range.lift({startLineNumber:a.lineNumber,endLineNumber:a.lineNumber,startColumn:r.startColumn,endColumn:r.endColumn}):e.Range.fromPositions(a),d={column:a.column,lineNumber:a.lineNumber};return{offset:t.getOffsetAt(d),range:n}}function Sn(e,t,a,r){if(t==="TAG_NAME"){const n=a.getValue().substring(0,r).match(/(span\.|resource\.|\.)?([\w./-]*)$/);if(n){const d=n[1],l=n[2];l&&(!d&&e.insertText[0]!=="."&&(e.insertText="."+e.insertText),e.range={...e.range,startColumn:r-l.length+1})}}}const Tn=e=>{switch(e.parent?.type.id){case ee:switch(e.prevSibling?.type.id){case Ea:case Qa:return"Invalid value after logical operator.";case Ct:return"Invalid value after comparison or arithmetic operator.";default:return"Invalid operator after field expression."}case at:return e.prevSibling?.type.id===ee?"Invalid comparison operator after field expression.":"Invalid expression for spanset.";case tt:switch(e.prevSibling?.type.id){case tt:return"Invalid spanset combining operator after spanset expression.";case ba:return"Invalid aggregation operator after pipepile operator.";default:return"Invalid spanset expression after spanset combining operator."}case Dt:case rt:return"Invalid expression for aggregator operator.";case Nt:return"Invalid expression for by operator.";case zt:return"Invalid expression for select operator.";case Ve:return"Invalid expression for spanset.";case xa:switch(e.prevSibling?.type.id){case Ra:return"Invalid value after comparison operator.";case dn:if(e.prevSibling?.firstChild?.type.id===rt)return"Invalid comparison operator after aggregator operator.";default:return"Invalid value after comparison operator."}default:return"Invalid query."}},Da=e=>{if(e.trim()==="")return[];const t=/^[0-9A-Fa-f]*$/;if(e.trim().match(t))return[];const a=wt.parse(e),r=[];return a.iterate({enter:n=>{n.type.id===0&&r.push(n.node)}}),r},Mt=(e,t,a)=>{const r=[...yn(e.MarkerSeverity.Error,t,a),...En(e.MarkerSeverity.Warning,t)];e.editor.setModelMarkers(t,"owner",r)},yn=(e,t,a)=>a.map(r=>{const n=Tn(r);return Na(e,n,t,r.from,r.to)}),En=(e,t)=>{let a=[];const r=t.getValue(),n=wt.parse(r);if(r.indexOf(".")>-1){const l=n.cursorAt(0);do{const{node:i}=l;if(i.type.id===rn&&i.prevSibling?.type.id!==an&&i.prevSibling?.type.id!==sn&&i.prevSibling?.type.id!==nn){const c=i.prevSibling?i.prevSibling.from:i.from-1,u=i.prevSibling?i.prevSibling.to:i.from-1,p="Add resource or span scope to attribute to improve query performance.";a.push(Na(e,p,t,c,u))}}while(l.next())}return a},Na=(e,t,a,r,n)=>{let d=0,l=0,i=r,c=n;for(;i>0;)d++,i-=a.getLineLength(d)+1;for(;c>0;)l++,c-=a.getLineLength(l)+1;return{message:t,severity:e,startLineNumber:d,endLineNumber:l,startColumn:i+a.getLineLength(d)+2,endColumn:c+a.getLineLength(l)+2}};function Qn(e){const[t,a]=(0,s.useState)(""),{query:r,onChange:n,onRunQuery:d,placeholder:l}=e,i=wn(e.datasource,a),c=(0,T.$j)(),u=In(c,l),p=(0,s.useRef)(r);p.current=r;const m=S=>{n({...p.current,query:S})},g=(0,s.useRef)(d);g.current=d;const O=(0,s.useRef)();return s.createElement(s.Fragment,null,s.createElement(da.B,{value:r.query||"",language:Fe,onBlur:m,onChange:m,containerStyles:u.queryField,readOnly:e.readOnly,monacoOptions:{folding:!1,fontSize:14,lineNumbers:"off",overviewRulerLanes:0,renderLineHighlight:"none",scrollbar:{vertical:"hidden",verticalScrollbarSize:8,horizontal:"hidden",horizontalScrollbarSize:0},scrollBeyondLastLine:!1,wordWrap:"on"},onBeforeEditorMount:Cn,onEditorDidMount:(S,y)=>{e.readOnly||(i(S,y,Rn(S)),xn(S,y,()=>g.current()),bn(S,y,u)),Pn(S);const z=S.getModel();if(z){const _=Da(z.getValue());Mt(y,z,_)}S.onDidChangeModelContent(_=>{const v=S.getModel();if(!v)return;window.clearTimeout(O.current);const I=Da(v.getValue()),L=_.changes[0].rangeOffset;Mt(y,v,I.filter(E=>!(E.from<=L&&L<=E.to))),O.current=window.setTimeout(()=>{Mt(y,v,I)},500)})}}),t&&s.createElement(Hs,{severity:"error",text:t}))}function bn(e,t,a){const r=[{range:new t.Range(1,1,1,1),options:{className:a.placeholder,isWholeLine:!0}}];let n=[];const d=()=>{const l=e.getModel();if(!l)return;const i=l.getValueLength()===0?r:[];n=l.deltaDecorations(n,i)};d(),e.onDidChangeModelContent(d)}function xn(e,t,a){e.addAction({id:"run-query",label:"Run Query",keybindings:[t.KeyMod.Shift|t.KeyCode.Enter],contextMenuGroupId:"navigation",contextMenuOrder:1.5,run:function(){a()}})}function Rn(e){return e.addCommand(0,function(t,a,r){const n={datasourceType:"tempo",type:r};r!=="TAG_VALUE"&&(n.label=a),(0,D.rR)("grafana_traces_traceql_completion",n)})}function Pn(e){const t=e.getDomNode(),a=()=>{if(t){const r=Math.min(1e3,e.getContentHeight()),n=parseInt(t.style.width,10);t.style.width=`${n}px`,t.style.height=`${r}px`,e.layout({width:n,height:r})}};e.onDidContentSizeChange(a),a()}function wn(e,t){const a=(0,s.useRef)(new ge({languageProvider:e.languageProvider}));(0,s.useEffect)(()=>{(async()=>{try{await e.languageProvider.start()}catch(d){d instanceof Error&&(console.error(d),t(d.message))}})()},[e,t]);const r=(0,s.useRef)(null);return(0,s.useEffect)(()=>()=>{r.current?.()},[]),(n,d,l)=>{a.current.editor=n,a.current.monaco=d,a.current.setRegisterInteractionCommandId(l);const{dispose:i}=d.languages.registerCompletionItemProvider(Fe,a.current);r.current=i}}let za=!1;const Fe="traceql";function Cn(e){if(!za){za=!0;const{aliases:t,extensions:a,mimetypes:r,def:n}=fr;e.languages.register({id:Fe,aliases:t,extensions:a,mimetypes:r}),e.languages.setMonarchTokensProvider(Fe,n.language),e.languages.setLanguageConfiguration(Fe,n.languageConfiguration)}}const In=(e,t)=>({queryField:(0,h.css)({borderRadius:e.shape.radius.default,border:`1px solid ${e.components.input.borderColor}`,flex:1}),placeholder:(0,h.css)({"::after":{content:`'${t}'`,fontFamily:e.typography.fontFamilyMonospace,opacity:.3}})});function Dn(e){const t=(0,T.of)(Nn),a=(0,q.defaults)(e.query,Bs),[r,n]=(0,s.useState)(()=>{const d=Ce(a.filters||[]);return d===a.query||d==="{}"});return s.createElement(s.Fragment,null,s.createElement(w.c,null,"Build complex queries using TraceQL to select a list of traces."," ",s.createElement("a",{rel:"noreferrer",target:"_blank",href:"https://grafana.com/docs/tempo/latest/traceql/"},"Documentation")),!r&&s.createElement("div",{className:t.copyContainer},s.createElement("span",null,"Continue editing the query from the Search tab?"),s.createElement(H.$n,{variant:"secondary",size:"sm",onClick:()=>{(0,D.rR)("grafana_traces_copy_to_traceql_clicked",{app:e.app??"",grafana_version:P.$.buildInfo.version,location:"traceql_tab"}),e.onClearResults(),e.onChange({...a,query:Ce(a.filters||[])}),n(!0)},style:{marginLeft:"10px"}},"Copy query from Search")),s.createElement(Qn,{placeholder:"Enter a TraceQL query or trace ID (run with Shift+Enter)",query:a,onChange:e.onChange,datasource:e.datasource,onRunQuery:e.onRunQuery}),s.createElement("div",{className:t.optionsContainer},s.createElement(Qt,{query:a,onChange:e.onChange})))}const Nn=e=>({optionsContainer:(0,h.css)({marginTop:"10px"}),copyContainer:(0,h.css)({backgroundColor:e.colors.background.secondary,padding:e.spacing(.5,1),fontSize:e.typography.body.fontSize})}),zn="traceql";class $n extends s.PureComponent{constructor(t){super(t),this.onChangeLinkedQuery=a=>{const{query:r,onChange:n}=this.props;n({...r,linkedQuery:{...a,refId:"linked"}})},this.onRunLinkedQuery=()=>{this.props.onRunQuery()},this.onClearResults=()=>{const{onChange:a,query:r,onRunQuery:n}=this.props;a({...r,queryType:"clear"}),n()},this.state={uploadModalOpen:!1}}async componentDidMount(){(!this.props.query.queryType||this.props.query.queryType==="clear")&&this.props.onChange({...this.props.query,queryType:zn})}render(){const{query:t,onChange:a,datasource:r,app:n}=this.props,d=r.getLokiSearchDS(),l=r.serviceMap?.datasourceUid;let i=[{value:"traceqlSearch",label:"Search"},{value:"traceql",label:"TraceQL"},{value:"serviceMap",label:"Service Graph"}];return d&&(r?.search?.hide?i.unshift({value:"search",label:"Search"}):i.push({value:"search",label:"Loki Search"})),(t.spanName||t.serviceName||t.search||t.maxDuration||t.minDuration||t.queryType==="nativeSearch")&&i.unshift({value:"nativeSearch",label:"[Deprecated] Search"}),s.createElement(s.Fragment,null,s.createElement(ae.a,{title:"Upload trace",isOpen:this.state.uploadModalOpen,onDismiss:()=>this.setState({uploadModalOpen:!1})},s.createElement("div",{className:(0,h.css)({padding:this.props.theme.spacing(2)})},s.createElement(oe.gH,{options:{multiple:!1},onLoad:c=>{if(typeof c!="string"&&c!==null)throw Error(`Unexpected result type: ${typeof c}`);this.props.datasource.uploadedJson=c,a({...t,queryType:"upload"}),this.setState({uploadModalOpen:!1}),this.props.onRunQuery()}}))),s.createElement(C.C,null,s.createElement(Q.I,{label:"Query type",grow:!0},s.createElement(N.Gy,{spacing:"sm",align:"center",justify:"space-between"},s.createElement(j.z,{options:i,value:t.queryType,onChange:c=>{(0,D.rR)("grafana_traces_query_type_changed",{datasourceType:"tempo",app:n??"",grafana_version:P.$.buildInfo.version,newQueryType:c,previousQueryType:t.queryType??""}),this.onClearResults(),a({...t,queryType:c})},size:"md"}),s.createElement(H.$n,{variant:"secondary",size:"sm",onClick:()=>{this.setState({uploadModalOpen:!0})}},"Import trace")))),t.queryType==="search"&&s.createElement(ka,{logsDatasourceUid:d,query:t,onRunQuery:this.onRunLinkedQuery,onChange:this.onChangeLinkedQuery}),t.queryType==="nativeSearch"&&s.createElement(ls,{datasource:this.props.datasource,query:t,onChange:a,onBlur:this.props.onBlur,onRunQuery:this.props.onRunQuery}),t.queryType==="traceqlSearch"&&s.createElement(Cs,{datasource:this.props.datasource,query:t,onChange:a,onBlur:this.props.onBlur,app:n,onClearResults:this.onClearResults}),t.queryType==="serviceMap"&&s.createElement(ks,{graphDatasourceUid:l,query:t,onChange:a}),t.queryType==="traceql"&&s.createElement(Dn,{datasource:this.props.datasource,query:t,onRunQuery:this.props.onRunQuery,onChange:a,app:n,onClearResults:this.onClearResults}))}}const Mn=(0,T.cV)($n);var An=o(68704),Ln=o(77657),Vn=o(17466),Fn=o(66025),$a=o(91062),Un=o(32346),dt=o(29020),Ue=o(35931),At=o(43549),jn=o(90057),Ma=o(16817),A=o(22391),Lt=o(55882),Vt=o(15292),Xn=o(63009),Wn=o(3988);function kn(e){const t=Yn(e.profileTypes);return s.createElement(Wn.v,{placeholder:e.placeholder,separator:"-",displayAllSelectedLevels:!0,initialValue:e.initialProfileTypeId,allowCustomValue:!0,onSelect:e.onChange,options:t,changeOnSelect:!1,width:e.width??26})}function Yn(e){return(0,s.useMemo)(()=>{if(!e)return[];let t=new Map;for(let a of e){let r=[];a.id.indexOf(":")>-1&&(r=a.id.split(":"));const[n,d]=r;t.has(n)||t.set(n,{label:n,value:n,items:[]}),t.get(n)?.items.push({label:d,value:a.id})}return Array.from(t.values())},[e])}function Hd(e){const[t,a]=useState();return useEffect(()=>{(async()=>{const r=await e.getProfileTypes();a(r)})()},[e]),t}function _n({options:e,onOptionsChange:t}){const a=(0,s.useMemo)(()=>["grafana-pyroscope-datasource"],[]),[r,n]=(0,s.useState)([]),d=(0,s.useMemo)(()=>{let c=r.length===0?"No profile types found":"Select profile type";return e.jsonData.tracesToProfiles?.datasourceUid||(c="Please select profiling data source"),c},[e.jsonData.tracesToProfiles?.datasourceUid,r]),{value:l}=(0,Ma.A)(async()=>await(0,ne.l)().get(e.jsonData.tracesToProfiles?.datasourceUid),[e.jsonData.tracesToProfiles?.datasourceUid]),{value:i}=(0,Ma.A)(async()=>{if(l instanceof Zt.iy&&a.includes(l.type)&&l.uid===e.jsonData.tracesToProfiles?.datasourceUid)return await l?.getResource("profileTypes")},[l]);return(0,s.useEffect)(()=>{n(i??[])},[i]),s.createElement("div",{className:(0,h.css)({width:"100%"})},s.createElement(C.C,null,s.createElement(Q.I,{tooltip:"The profiles data source the trace is going to navigate to",label:"Data source",labelWidth:26},s.createElement(Lt.s,{inputId:"trace-to-profiles-data-source-picker",filter:c=>a.includes(c.type),current:e.jsonData.tracesToProfiles?.datasourceUid,noDefault:!0,width:40,onChange:c=>{(0,A.lO)({onOptionsChange:t,options:e},"tracesToProfiles",{...e.jsonData.tracesToProfiles,datasourceUid:c.uid})}}))),s.createElement(C.C,null,s.createElement(Q.I,{tooltip:"Tags that will be used in the query. Default tags: 'service.name', 'service.namespace'",label:"Tags",labelWidth:26},s.createElement(Xn.l,{values:e.jsonData.tracesToProfiles?.tags??[],onChange:c=>{(0,A.lO)({onOptionsChange:t,options:e},"tracesToProfiles",{...e.jsonData.tracesToProfiles,tags:c})}}))),s.createElement(C.C,null,s.createElement(Q.I,{tooltip:"Profile type that will be used in the query",label:"Profile type",labelWidth:26},s.createElement(kn,{profileTypes:r,placeholder:d,initialProfileTypeId:e.jsonData.tracesToProfiles?.profileTypeId,onChange:c=>{(0,A.lO)({onOptionsChange:t,options:e},"tracesToProfiles",{...e.jsonData.tracesToProfiles,profileTypeId:c})},width:40}))),s.createElement(C.C,null,s.createElement(Q.I,{tooltip:"Use a custom query with the possibility to interpolate variables from the trace or span",label:"Use custom query",labelWidth:26},s.createElement(Vt.K,{id:"profilesCustomQuerySwitch",value:e.jsonData.tracesToProfiles?.customQuery,onChange:c=>(0,A.lO)({onOptionsChange:t,options:e},"tracesToProfiles",{...e.jsonData.tracesToProfiles,customQuery:c.currentTarget.checked})}))),e.jsonData.tracesToProfiles?.customQuery&&s.createElement(Q.I,{label:"Query",labelWidth:26,tooltip:"The query that will run when navigating from a trace to profiles data source. Interpolate tags using the `$__tags` keyword",grow:!0},s.createElement(ze.p,{label:"Query",type:"text",allowFullScreen:!0,value:e.jsonData.tracesToProfiles?.query||"",onChange:c=>(0,A.lO)({onOptionsChange:t,options:e},"tracesToProfiles",{...e.jsonData.tracesToProfiles,query:c.currentTarget.value})})))}const Bn=({options:e,onOptionsChange:t})=>s.createElement($a.A,{title:"Trace to profiles",description:s.createElement(Ue.H,{description:"Navigate from a trace span to the selected data source's profiles.",suffix:`${e.type}/configure-tempo-data-source/#trace-to-profiles`,feature:"trace to profiles"}),isCollapsible:!0,isInitiallyOpen:!0},s.createElement(_n,{options:e,onOptionsChange:t}));var Gn=o(33309),Zn=o(61653),Ne=o(25994),qn=o(17081),Aa=o(20323);function Kn({options:e,onOptionsChange:t}){const a=(0,T.of)(lt),r=d=>`Time shift for ${d} of search`,n=d=>`Shifts the ${d} of the time range when searching by TraceID. Searching can return traces that do not fully fall into the search time range, so we recommend using higher time shifts for longer traces. Default: 30m (Time units can be used here, for example: 5s, 1m, 3h`;return s.createElement("div",{className:a.container},s.createElement(Q.I,{label:"Use time range in query",tooltip:"The time range can be used when there are performance issues or timeouts since it will narrow down the search to the defined range. Default: disabled",labelWidth:26},s.createElement(Vt.K,{id:"enable-time-shift",value:e.jsonData.traceQuery?.timeShiftEnabled||!1,onChange:d=>{(0,A.lO)({onOptionsChange:t,options:e},"traceQuery",{...e.jsonData.traceQuery,timeShiftEnabled:d.currentTarget.checked})}})),s.createElement(Aa.e,{label:r("start"),tooltip:n("start"),value:e.jsonData.traceQuery?.spanStartTimeShift||"",disabled:!e.jsonData.traceQuery?.timeShiftEnabled,onChange:d=>{(0,A.lO)({onOptionsChange:t,options:e},"traceQuery",{...e.jsonData.traceQuery,spanStartTimeShift:d})},isInvalidError:At.FJ}),s.createElement(Aa.e,{label:r("end"),tooltip:n("end"),value:e.jsonData.traceQuery?.spanEndTimeShift||"",disabled:!e.jsonData.traceQuery?.timeShiftEnabled,onChange:d=>{(0,A.lO)({onOptionsChange:t,options:e},"traceQuery",{...e.jsonData.traceQuery,spanEndTimeShift:d})},isInvalidError:At.FJ}))}const lt=e=>({infoText:(0,h.css)({paddingBottom:e.spacing(2),color:e.colors.text.secondary}),container:(0,h.css)({width:"100%"}),row:(0,h.css)({alignItems:"baseline"})});function Hn({options:e,onOptionsChange:t}){const a=(0,T.of)(lt),r=e.jsonData.tracesToLogs?.lokiSearch!==!1?e.jsonData.tracesToLogs?.datasourceUid:void 0;return r&&e.jsonData.lokiSearch===void 0&&(0,A.lO)({onOptionsChange:t,options:e},"lokiSearch",{datasourceUid:r}),s.createElement("div",{className:a.container},s.createElement(C.C,{className:a.row},s.createElement(Q.I,{tooltip:"The Loki data source with the service graph data",label:"Data source",labelWidth:26},s.createElement(Lt.s,{inputId:"loki-search-data-source-picker",pluginId:"loki",current:e.jsonData.lokiSearch?.datasourceUid,noDefault:!0,width:40,onChange:n=>(0,A.lO)({onOptionsChange:t,options:e},"lokiSearch",{datasourceUid:n.uid})})),e.jsonData.lokiSearch?.datasourceUid?s.createElement(H.$n,{type:"button",variant:"secondary",size:"sm",fill:"text",onClick:()=>{(0,A.lO)({onOptionsChange:t,options:e},"lokiSearch",{datasourceUid:void 0})}},"Clear"):null))}function Jn({options:e,onOptionsChange:t}){const a=(0,T.of)(lt);return s.createElement("div",{className:a.container},s.createElement(C.C,{className:a.row},s.createElement(Q.I,{tooltip:"The Prometheus data source with the service graph data",label:"Data source",labelWidth:26},s.createElement(Lt.s,{inputId:"service-graph-data-source-picker",pluginId:"prometheus",current:e.jsonData.serviceMap?.datasourceUid,noDefault:!0,width:40,onChange:r=>(0,A.lO)({onOptionsChange:t,options:e},"serviceMap",{datasourceUid:r.uid})})),e.jsonData.serviceMap?.datasourceUid?s.createElement(H.$n,{type:"button",variant:"secondary",size:"sm",fill:"text",onClick:()=>{(0,A.lO)({onOptionsChange:t,options:e},"serviceMap",{datasourceUid:void 0})}},"Clear"):null))}function ed({options:e,onOptionsChange:t,datasource:a}){const r=async()=>{if(!a)throw new Error("Unable to retrieve datasource");try{await a.languageProvider.start()}catch(p){throw new Error(G(p.data.message,"Unable to query Tempo"))}},{error:n,loading:d}=(0,f.A)(r,[a,e]),l=(0,s.useCallback)(p=>{let m=e.jsonData.search?.filters;m||=[];const g=m.findIndex(O=>O.id===p.id);g>=0?m=ft(m,g,p):m.push(p),(0,A.lO)({onOptionsChange:t,options:e},"search",{...e.jsonData.search,filters:m})},[t,e]),i=p=>{(0,A.lO)({onOptionsChange:t,options:e},"search",{...e.jsonData.search,filters:e.jsonData.search?.filters?.filter(m=>m.id!==p.id)})};(0,s.useEffect)(()=>{e.jsonData.search?.filters||(0,A.lO)({onOptionsChange:t,options:e},"search",{...e.jsonData.search,filters:[{id:"service-name",tag:"service.name",operator:"=",scope:R.d.Resource},{id:"span-name",tag:"name",operator:"=",scope:R.d.Span}]})},[t,e]);const c=["duration"],u=e.jsonData.search?.filters?.find(p=>!p.tag);return s.createElement(s.Fragment,null,a?s.createElement(ga,{updateFilter:l,deleteFilter:i,filters:e.jsonData.search?.filters||[],datasource:a,setError:()=>{},staticTags:c,isTagsLoading:d,hideValues:!0,query:"{}"}):s.createElement("div",null,"Invalid data source, please create a valid data source and try again"),n&&s.createElement(Se.F,{title:"Unable to fetch TraceQL tags",severity:"error",topSpacing:1},n.message),u&&s.createElement(Se.F,{title:"Please ensure each filter has a selected tag",severity:"warning",topSpacing:1}))}function td({options:e,onOptionsChange:t}){const a=(0,T.of)(lt),r=(0,ne.l)(),n=async()=>await r.get({type:e.type,uid:e.uid}),{value:d}=(0,f.A)(n,[r,e]);return s.createElement("div",{className:a.container},s.createElement(C.C,{className:a.row},s.createElement(Q.I,{tooltip:"Removes the search tab from the query editor",label:"Hide search",labelWidth:26},s.createElement(Vt.K,{id:"hideSearch",value:e.jsonData.search?.hide,onChange:l=>(0,A.lO)({onOptionsChange:t,options:e},"search",{...e.jsonData.search,hide:l.currentTarget.checked})}))),s.createElement(C.C,{className:a.row},s.createElement(Q.I,{tooltip:"Configures which fields are available in the UI",label:"Static filters",labelWidth:26},s.createElement(ed,{datasource:d,options:e,onOptionsChange:t}))))}const ad=({options:e,onOptionsChange:t})=>{const a=(0,T.of)(rd);return s.createElement("div",{className:a.container},s.createElement(An.I,{dataSourceName:"Tempo",docsLink:"https://grafana.com/docs/grafana/latest/datasources/tempo",hasRequiredFields:!1}),s.createElement(Ne.c,{spacing:4}),s.createElement(Ln.u,{config:e,onChange:t,urlPlaceholder:"http://localhost:3200"}),s.createElement(Ne.c,{spacing:4}),s.createElement(Vn.N,{...(0,Fn.pe)({config:e,onChange:t})}),s.createElement(Ne.c,{spacing:4}),s.createElement(At.T0,{options:e,onOptionsChange:t}),s.createElement(Ne.c,{spacing:4}),P.$.featureToggles.traceToMetrics?s.createElement(s.Fragment,null,s.createElement(jn.$,{options:e,onOptionsChange:t}),s.createElement(Ne.c,{spacing:4})):null,s.createElement(Bn,{options:e,onOptionsChange:t}),s.createElement(Ne.c,{spacing:4}),s.createElement($a.A,{title:"Additional settings",description:"Additional settings are optional settings that can be configured for more control over your data source.",isCollapsible:!0,isInitiallyOpen:!1},s.createElement(ca.B,{gap:5,direction:"column"},s.createElement(Un.g,{config:e,onChange:t}),P.$.secureSocksDSProxyEnabled&&s.createElement(s.Fragment,null,s.createElement(qn.Y,{options:e,onOptionsChange:t})),s.createElement(dt.I,{title:"Service graph",description:s.createElement(Ue.H,{description:"Select a Prometheus data source that contains the service graph data.",suffix:"tempo/configure-tempo-data-source/#service-graph",feature:"the service graph"})},s.createElement(Jn,{options:e,onOptionsChange:t})),s.createElement(Gn.m,{options:e,onOptionsChange:t}),s.createElement(dt.I,{title:"Tempo search",description:s.createElement(Ue.H,{description:"Modify how traces are searched.",suffix:"tempo/configure-tempo-data-source/#tempo-search",feature:"Tempo search"})},s.createElement(td,{options:e,onOptionsChange:t})),s.createElement(dt.I,{title:"Loki search",description:s.createElement(Ue.H,{description:"Select a Loki data source to search for traces. Derived fields must be configured in the Loki data source.",suffix:"tempo/configure-tempo-data-source/#loki-search",feature:"Loki search"})},s.createElement(Hn,{options:e,onOptionsChange:t})),s.createElement(dt.I,{title:"TraceID query",description:s.createElement(Ue.H,{description:"Modify how TraceID queries are run.",suffix:"tempo/configure-tempo-data-source/#traceid-query",feature:"the TraceID query"})},s.createElement(Kn,{options:e,onOptionsChange:t})),s.createElement(Zn.NI,{options:e,onOptionsChange:t}))))},rd=e=>({container:(0,h.css)({label:"container",marginBottom:e.spacing(2),maxWidth:"900px"})});var sd=o(17346);const nd=({payload:{dashboardId:e,orgId:t,grafanaVersion:a,queries:r}})=>{try{const n=r[sd.id];if(!n?.length)return;let d={grafana_version:a,dashboard_id:e,org_id:t,native_search_query_count:0,search_query_count:0,service_map_query_count:0,traceql_query_count:0,upload_query_count:0,native_search_queries_with_template_variables_count:0,search_queries_with_template_variables_count:0,service_map_queries_with_template_variables_count:0,traceql_queries_with_template_variables_count:0};for(const l of n)l.hide||(l.queryType==="nativeSearch"?(d.native_search_query_count++,(l.serviceName&&Oe(l.serviceName)||l.spanName&&Oe(l.spanName)||l.search&&Oe(l.search)||l.minDuration&&Oe(l.minDuration)||l.maxDuration&&Oe(l.maxDuration))&&d.native_search_queries_with_template_variables_count++):l.queryType==="search"?(d.search_query_count++,l.linkedQuery&&l.linkedQuery.expr&&Oe(l.linkedQuery.expr)&&d.search_queries_with_template_variables_count++):l.queryType==="serviceMap"?(d.service_map_query_count++,l.serviceMapQuery&&Oe(l.serviceMapQuery)&&d.service_map_queries_with_template_variables_count++):l.queryType==="traceql"?(d.traceql_query_count++,Oe(l.query)&&d.traceql_queries_with_template_variables_count++):l.queryType==="upload"&&d.upload_query_count++);(0,D.rR)("grafana_tempo_dashboard_loaded",d)}catch(n){console.error("error in tempo tracking handler",n)}},Oe=e=>(Array.isArray(e)?e:[e]).some(t=>(0,ve.w)().containsTemplate(t)),dd=new V.tD(Yr).setQueryEditor(Mn).setConfigEditor(ad).setQueryEditorHelp(te);(0,F.J7)().subscribe(b.gc,nd)}}]); //# sourceMappingURL=3543.eecef49ce94da5ee0418.js.map
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
static
---
0755
0.c88fc16b6533c8976681.js
11857 bytes
0644
0.c88fc16b6533c8976681.js.map
46011 bytes
0644
1118.6d1cbbd2070e00a7483d.js
9459 bytes
0644
1118.6d1cbbd2070e00a7483d.js.map
22012 bytes
0644
1121.6c31bf81768d3312b0d4.js
11557 bytes
0644
1121.6c31bf81768d3312b0d4.js.map
40274 bytes
0644
1122.1b3b5a9bdf4a2fc70a83.js
4310 bytes
0644
1122.1b3b5a9bdf4a2fc70a83.js.map
9301 bytes
0644
1133.cd705902767ed2e9bf55.js
107191 bytes
0644
1133.cd705902767ed2e9bf55.js.map
459177 bytes
0644
1216.ddb58ad09e0c4e3f4079.js
12860 bytes
0644
1216.ddb58ad09e0c4e3f4079.js.map
47906 bytes
0644
1282.2347f27d5b3a18a42a1e.js
2965 bytes
0644
1282.2347f27d5b3a18a42a1e.js.map
6699 bytes
0644
1345.8570fef914aafab94513.js
2223 bytes
0644
1345.8570fef914aafab94513.js.map
5201 bytes
0644
1347.8ad23b870a6e21306189.js
32035 bytes
0644
1347.8ad23b870a6e21306189.js.map
89851 bytes
0644
1420.f2553cafc235b7c32261.js
14576 bytes
0644
1420.f2553cafc235b7c32261.js.map
32839 bytes
0644
1438.897db349b7f48a15b9eb.js
2830 bytes
0644
1438.897db349b7f48a15b9eb.js.map
6911 bytes
0644
1446.babd36e7134aac1046c4.js
1832 bytes
0644
1446.babd36e7134aac1046c4.js.map
3282 bytes
0644
1488.ff35935a06f41b02b6cc.js
316 bytes
0644
1488.ff35935a06f41b02b6cc.js.map
1206 bytes
0644
1560.30962127c91e5eae9982.js
8916 bytes
0644
1560.30962127c91e5eae9982.js.map
20515 bytes
0644
1660.e1f66118fb028d12074f.js
21866 bytes
0644
1660.e1f66118fb028d12074f.js.map
71039 bytes
0644
1698.68ff1ef08e94a87836b3.js
12570 bytes
0644
1698.68ff1ef08e94a87836b3.js.map
46006 bytes
0644
1708.f42a783c0f6c7a317d49.js
2249 bytes
0644
1708.f42a783c0f6c7a317d49.js.map
2954 bytes
0644
1710.d96221051fceaf8c89dd.js
10172 bytes
0644
1710.d96221051fceaf8c89dd.js.map
22097 bytes
0644
1740.e57d920c47a11759ade4.js
6204 bytes
0644
1740.e57d920c47a11759ade4.js.map
13740 bytes
0644
1888.0ede69d3190c536744b9.js
6822 bytes
0644
1888.0ede69d3190c536744b9.js.map
15421 bytes
0644
1914.58113477b565d57e8bfe.js
10710 bytes
0644
1914.58113477b565d57e8bfe.js.map
23555 bytes
0644
198.b84c0e4f5759344ae05a.js
8267 bytes
0644
198.b84c0e4f5759344ae05a.js.map
19446 bytes
0644
205.6c51b5e35c8147226738.js
3542 bytes
0644
205.6c51b5e35c8147226738.js.map
8376 bytes
0644
2058.0e5df44647184aaf02e2.js
1252 bytes
0644
2058.0e5df44647184aaf02e2.js.map
4744 bytes
0644
2077.12b2df3682085a92a810.js
34133 bytes
0644
2077.12b2df3682085a92a810.js.map
122011 bytes
0644
2094.259625d8acf28b9c7361.js
16518 bytes
0644
2094.259625d8acf28b9c7361.js.map
41269 bytes
0644
21.afca69f2d336e287a655.js
6172 bytes
0644
21.afca69f2d336e287a655.js.map
17305 bytes
0644
2136.9c8dcd43d3af327f51f5.js
498667 bytes
0644
2136.9c8dcd43d3af327f51f5.js.map
1908011 bytes
0644
2228.cf629cf4a83c5b6c2671.js
269 bytes
0644
2228.cf629cf4a83c5b6c2671.js.map
457 bytes
0644
2244.9324c28eca7d2ffb7568.js
3396 bytes
0644
2244.9324c28eca7d2ffb7568.js.map
7683 bytes
0644
2261.ac6a26854d5acee00776.js
106373 bytes
0644
2261.ac6a26854d5acee00776.js.map
478562 bytes
0644
2278.bdd73b14b6337c6b14e4.js
5754 bytes
0644
2278.bdd73b14b6337c6b14e4.js.map
13399 bytes
0644
2398.3de0e7aa3057b7dcf9da.js
8016 bytes
0644
2398.3de0e7aa3057b7dcf9da.js.map
18383 bytes
0644
2514.c86950e9813e27962050.js
1983 bytes
0644
2514.c86950e9813e27962050.js.map
4863 bytes
0644
2571.345ecfd2b82551018f2e.js
162139 bytes
0644
2571.345ecfd2b82551018f2e.js.map
2046 bytes
0644
2586.972e9a7d564398afee76.js
6385 bytes
0644
2586.972e9a7d564398afee76.js.map
14676 bytes
0644
2658.f4100815829c4d37d35c.js
5432 bytes
0644
2658.f4100815829c4d37d35c.js.map
13650 bytes
0644
2686.2fbaa7db9c01d59cad8d.js
2815 bytes
0644
2686.2fbaa7db9c01d59cad8d.js.map
6564 bytes
0644
2692.20098ad0182743d98d62.js
2282 bytes
0644
2692.20098ad0182743d98d62.js.map
5680 bytes
0644
2694.a31d749361a36eb167da.js
2726 bytes
0644
2694.a31d749361a36eb167da.js.map
3618 bytes
0644
2745.2e5ec1fdf377d2940fb4.js
33584 bytes
0644
2745.2e5ec1fdf377d2940fb4.js.map
120277 bytes
0644
2962.4c3147d8ee365fe296ef.js
7640 bytes
0644
2962.4c3147d8ee365fe296ef.js.map
17621 bytes
0644
3042.248a4194805a8500fd28.js
19010 bytes
0644
3042.248a4194805a8500fd28.js.map
38148 bytes
0644
3062.4e9a427c2a59d53f902e.js
4663 bytes
0644
3062.4e9a427c2a59d53f902e.js.map
10650 bytes
0644
3082.c09cff56c35d736ee8b6.js
52872 bytes
0644
3082.c09cff56c35d736ee8b6.js.map
56822 bytes
0644
3096.8d41728a4f5010bc56a2.js
4378 bytes
0644
3096.8d41728a4f5010bc56a2.js.map
10739 bytes
0644
3098.f22ad6dab13d06477be0.js
31462 bytes
0644
3098.f22ad6dab13d06477be0.js.map
85588 bytes
0644
3182.1d531f28507c00e391fc.js
13817 bytes
0644
3182.1d531f28507c00e391fc.js.map
26653 bytes
0644
3407.666eb88a718e66b93f72.js
34425 bytes
0644
3407.666eb88a718e66b93f72.js.map
103716 bytes
0644
3418.d31d882b87bd5a2ef66f.js
33061 bytes
0644
3418.d31d882b87bd5a2ef66f.js.map
114234 bytes
0644
3541.8d063e3d43d55745d89b.js
20582 bytes
0644
3541.8d063e3d43d55745d89b.js.map
67154 bytes
0644
3543.eecef49ce94da5ee0418.js
136752 bytes
0644
3543.eecef49ce94da5ee0418.js.map
446118 bytes
0644
3622.976b1aef94b333e450b9.js
1260 bytes
0644
3622.976b1aef94b333e450b9.js.map
2819 bytes
0644
3686.102abfc00452299017bb.js
87 bytes
0644
3718.3993946b7a0eb8f64b4d.js
23620 bytes
0644
3718.3993946b7a0eb8f64b4d.js.map
92024 bytes
0644
3726.3adfe210678d2cd26969.js
31765 bytes
0644
3726.3adfe210678d2cd26969.js.map
118227 bytes
0644
398.4e93ffb675609ea7a9c6.js
2990 bytes
0644
398.4e93ffb675609ea7a9c6.js.map
7145 bytes
0644
4114.953b39a9ce57caa0e87a.js
2536 bytes
0644
4114.953b39a9ce57caa0e87a.js.map
6028 bytes
0644
4120.67bf5d203ed4a2eb5f1b.js
3229 bytes
0644
4120.67bf5d203ed4a2eb5f1b.js.map
7533 bytes
0644
4209.c7060d489834063658f5.js
17352 bytes
0644
4209.c7060d489834063658f5.js.map
30980 bytes
0644
4254.c5f4a5512b252e3a5796.js
71716 bytes
0644
4254.c5f4a5512b252e3a5796.js.map
237783 bytes
0644
4289.d5662b0904798ff437e9.js
16496 bytes
0644
4289.d5662b0904798ff437e9.js.map
32015 bytes
0644
4334.bc078c368a20ed3257b6.js
2598 bytes
0644
4334.bc078c368a20ed3257b6.js.map
6308 bytes
0644
4630.b604ea691184ba563d59.js
5585 bytes
0644
4630.b604ea691184ba563d59.js.map
11866 bytes
0644
4680.358dfdd92851f69ecc97.js
4573 bytes
0644
4680.358dfdd92851f69ecc97.js.map
10841 bytes
0644
4698.696713071ff5d9929a11.js
3682 bytes
0644
4698.696713071ff5d9929a11.js.map
8967 bytes
0644
4787.bd938ea7cb58d64ee246.js
738 bytes
0644
4787.bd938ea7cb58d64ee246.js.map
2168 bytes
0644
4839.17a10e0ceca3eb8954b4.js
39585 bytes
0644
4839.17a10e0ceca3eb8954b4.js.map
145699 bytes
0644
494.8cf705bc1ea509187c88.js
3796 bytes
0644
494.8cf705bc1ea509187c88.js.map
8987 bytes
0644
4958.cd447d877778fc5af081.js
4923 bytes
0644
4958.cd447d877778fc5af081.js.map
11000 bytes
0644
4962.0da526ad79f816a15985.js
2242 bytes
0644
4962.0da526ad79f816a15985.js.map
4978 bytes
0644
50.7b1e44d5b9dbbed566be.js
617497 bytes
0644
50.7b1e44d5b9dbbed566be.js.map
2271464 bytes
0644
5017.003cacead1bba1cba035.js
3567142 bytes
0644
5017.003cacead1bba1cba035.js.map
13214665 bytes
0644
5130.4d31108de97088a3b014.js
2850 bytes
0644
5130.4d31108de97088a3b014.js.map
6536 bytes
0644
5196.064b914693b6a5591a48.js
4035 bytes
0644
5196.064b914693b6a5591a48.js.map
10273 bytes
0644
5240.eceb5f73f807ac22d800.js
704 bytes
0644
5240.eceb5f73f807ac22d800.js.map
2618 bytes
0644
5277.ce6608b6f47246e32767.js
269 bytes
0644
5277.ce6608b6f47246e32767.js.map
457 bytes
0644
5280.4348c762594edebf7d0e.js
16657 bytes
0644
5280.4348c762594edebf7d0e.js.map
89146 bytes
0644
5356.eabc0dc2021a3814a65f.js
10156 bytes
0644
5356.eabc0dc2021a3814a65f.js.map
25249 bytes
0644
5358.7c5e9e1b192582f3082d.js
6173 bytes
0644
5358.7c5e9e1b192582f3082d.js.map
19652 bytes
0644
5364.ac21c32fd45a27bc998a.js
3070 bytes
0644
5364.ac21c32fd45a27bc998a.js.map
7368 bytes
0644
5398.d0c11aa7c1232f4afe44.js
81872 bytes
0644
5398.d0c11aa7c1232f4afe44.js.map
769414 bytes
0644
5428.e85b0800b30feca9d7dc.js
330175 bytes
0644
5428.e85b0800b30feca9d7dc.js.map
530929 bytes
0644
5511.93023985e5c5efe49ae2.js
21275 bytes
0644
5511.93023985e5c5efe49ae2.js.map
93188 bytes
0644
5550.9284e42acc3f2bbdfc9d.js
7039 bytes
0644
5550.9284e42acc3f2bbdfc9d.js.map
16382 bytes
0644
558.701e8b4db7b852c4a10d.js
12211 bytes
0644
558.701e8b4db7b852c4a10d.js.map
24505 bytes
0644
5618.638c32d58d896f3f7261.js
3348 bytes
0644
5618.638c32d58d896f3f7261.js.map
8181 bytes
0644
5648.cb3fd92dbbc06f7d45d2.js
57392 bytes
0644
5648.cb3fd92dbbc06f7d45d2.js.map
60585 bytes
0644
5786.db7abc3b8e4f474a8f7b.js
5325 bytes
0644
5786.db7abc3b8e4f474a8f7b.js.map
11885 bytes
0644
5807.f05d997ece5811bbc849.js
2922915 bytes
0644
5807.f05d997ece5811bbc849.js.map
10524334 bytes
0644
5950.30ec6aaa9dcece6c3b3c.js
4616249 bytes
0644
5950.30ec6aaa9dcece6c3b3c.js.map
19277501 bytes
0644
6018.f4de7ac19ac8f0c774e6.js
5861 bytes
0644
6018.f4de7ac19ac8f0c774e6.js.map
13314 bytes
0644
6029.0549a3fcb50e73c4b256.js
409895 bytes
0644
6029.0549a3fcb50e73c4b256.js.map
998408 bytes
0644
6185.883629fcc773b4968b24.js
2258 bytes
0644
6185.883629fcc773b4968b24.js.map
4788 bytes
0644
6263.e4ef9aaa3073ebacc3a5.js
54594 bytes
0644
6263.e4ef9aaa3073ebacc3a5.js.map
242030 bytes
0644
6302.257b2eb06c25ee74090e.js
8440 bytes
0644
6302.257b2eb06c25ee74090e.js.map
19322 bytes
0644
6359.f824c85233ec703f8cea.js
11411 bytes
0644
6359.f824c85233ec703f8cea.js.map
41881 bytes
0644
6377.45d36c143a694fc45bd3.js
20571 bytes
0644
6377.45d36c143a694fc45bd3.js.map
79590 bytes
0644
6378.27b1e6d863a0a3b85962.js
977993 bytes
0644
6378.27b1e6d863a0a3b85962.js.map
3865587 bytes
0644
6414.192cf271de6ecbbbcb11.js
3984 bytes
0644
6414.192cf271de6ecbbbcb11.js.map
9134 bytes
0644
6446.b4b93ee91aa1bb57ea93.js
7731 bytes
0644
6446.b4b93ee91aa1bb57ea93.js.map
17485 bytes
0644
6464.f379e014f9909e621de6.js
34429 bytes
0644
6464.f379e014f9909e621de6.js.map
113303 bytes
0644
6499.9f52e0855fd4782a8b45.js
78297 bytes
0644
6499.9f52e0855fd4782a8b45.js.map
273155 bytes
0644
6587.bfb1ca0c32c6f325b0df.js
135004 bytes
0644
6587.bfb1ca0c32c6f325b0df.js.map
541974 bytes
0644
660.838743295c2108f3492d.js
43101 bytes
0644
660.838743295c2108f3492d.js.map
100340 bytes
0644
6678.a615dbe07b8a3e591e66.js
14725 bytes
0644
6678.a615dbe07b8a3e591e66.js.map
51145 bytes
0644
680.1a328432fae403eacab3.js
53846 bytes
0644
680.1a328432fae403eacab3.js.map
57615 bytes
0644
6830.0c200fec1efc2be388e2.js
5811 bytes
0644
6830.0c200fec1efc2be388e2.js.map
13972 bytes
0644
6934.fa19d392db34411fb300.js
168944 bytes
0644
6934.fa19d392db34411fb300.js.map
540337 bytes
0644
6940.9c5d3a2dcf9d7d58fa2c.js
3408 bytes
0644
6940.9c5d3a2dcf9d7d58fa2c.js.map
8039 bytes
0644
6969.f8f153735314f9426000.js
1119 bytes
0644
6969.f8f153735314f9426000.js.map
4230 bytes
0644
6990.cc2f5674128929a3f870.js
4418 bytes
0644
6990.cc2f5674128929a3f870.js.map
10503 bytes
0644
7048.117de444b1e1cb5a1360.js
4365 bytes
0644
7048.117de444b1e1cb5a1360.js.map
10316 bytes
0644
7166.480da6892ee84ee8bb53.js
593985 bytes
0644
7166.480da6892ee84ee8bb53.js.map
2430098 bytes
0644
7200.dc60128b9d612fc7b5b0.js
3634 bytes
0644
7200.dc60128b9d612fc7b5b0.js.map
8184 bytes
0644
7246.3adf293a34fa2043387b.js
4306 bytes
0644
7246.3adf293a34fa2043387b.js.map
9084 bytes
0644
7400.024c96bd5b99b8b47a63.js
14112 bytes
0644
7400.024c96bd5b99b8b47a63.js.map
64001 bytes
0644
7409.24316c87d08c1053c46a.js
3287 bytes
0644
7409.24316c87d08c1053c46a.js.map
11649 bytes
0644
7455.845968885abe369e6479.js
19801 bytes
0644
7455.845968885abe369e6479.js.map
77213 bytes
0644
7466.09e6e197d2507f62097d.js
11670 bytes
0644
7466.09e6e197d2507f62097d.js.map
24830 bytes
0644
7515.95323f0dfbd0de010e5c.js
1083 bytes
0644
7515.95323f0dfbd0de010e5c.js.map
1321 bytes
0644
7613.6334cff4df12cc157522.js
808779 bytes
0644
7613.6334cff4df12cc157522.js.map
991378 bytes
0644
7836.6a7e4207e70fc2dc235f.js
7192 bytes
0644
7836.6a7e4207e70fc2dc235f.js.map
17613 bytes
0644
7882.1a3cc418752c83396970.js
3743 bytes
0644
7882.1a3cc418752c83396970.js.map
14950 bytes
0644
7886.485c46f14540aa23cf70.js
8668 bytes
0644
7886.485c46f14540aa23cf70.js.map
20124 bytes
0644
7914.2b1a06c504df18e20fe4.js
2390 bytes
0644
7914.2b1a06c504df18e20fe4.js.map
6418 bytes
0644
7982.6761217193d3060dbf0e.js
188973 bytes
0644
7982.6761217193d3060dbf0e.js.map
1737667 bytes
0644
8054.094788468423bb88ee68.js
38124 bytes
0644
8054.094788468423bb88ee68.js.map
132296 bytes
0644
8107.92bd414247a1d05c014f.js
5144 bytes
0644
8107.92bd414247a1d05c014f.js.map
15320 bytes
0644
8230.2eedae6021a4715c6dea.js
2413 bytes
0644
8230.2eedae6021a4715c6dea.js.map
5812 bytes
0644
8332.f4b05d2f028641445650.js
3177 bytes
0644
8332.f4b05d2f028641445650.js.map
7186 bytes
0644
8334.c95ec0eb6900c0cf7e89.js
7803 bytes
0644
8334.c95ec0eb6900c0cf7e89.js.map
17714 bytes
0644
8390.1fd9505094c8cf8830ab.js
2096 bytes
0644
8390.1fd9505094c8cf8830ab.js.map
5157 bytes
0644
84.a6f8658e6a033d642231.js
30608 bytes
0644
84.a6f8658e6a033d642231.js.map
142543 bytes
0644
8494.4470c87b7093ddf70db7.js
2180 bytes
0644
8494.4470c87b7093ddf70db7.js.map
4863 bytes
0644
8542.1391ab96a455b01963a7.js
1514 bytes
0644
8542.1391ab96a455b01963a7.js.map
3249 bytes
0644
8566.e05562713181c6ca30fe.js
3852 bytes
0644
8566.e05562713181c6ca30fe.js.map
8781 bytes
0644
8730.3dcdd8cbf22c63b45d78.js
2109 bytes
0644
8730.3dcdd8cbf22c63b45d78.js.map
2893 bytes
0644
8786.1b0e43b80c82c73e2096.js
1535 bytes
0644
8786.1b0e43b80c82c73e2096.js.map
4055 bytes
0644
8902.37d0b14aa6ef24687b7b.js
2673 bytes
0644
8902.37d0b14aa6ef24687b7b.js.map
5993 bytes
0644
8990.5a822b8788ebf0bdba81.js
3969 bytes
0644
8990.5a822b8788ebf0bdba81.js.map
9161 bytes
0644
9034.200fc7a09b466256c9a9.js
3486 bytes
0644
9034.200fc7a09b466256c9a9.js.map
8180 bytes
0644
9038.7ae2448b9cc5c423aeca.js
4937 bytes
0644
9038.7ae2448b9cc5c423aeca.js.map
11973 bytes
0644
9118.3121c6b96ec7dc211973.js
48311 bytes
0644
9118.3121c6b96ec7dc211973.js.map
62149 bytes
0644
9150.9eb62d45f9b21cb38850.js
10056 bytes
0644
9150.9eb62d45f9b21cb38850.js.map
21143 bytes
0644
9199.9897e268d6d13e834d4c.js
2307 bytes
0644
9199.9897e268d6d13e834d4c.js.map
8853 bytes
0644
9320.c403e78b78aa6df1d0bd.js
336139 bytes
0644
9320.c403e78b78aa6df1d0bd.js.map
1624993 bytes
0644
9355.421530b20c759bb75633.js
22098 bytes
0644
9355.421530b20c759bb75633.js.map
66961 bytes
0644
9384.a0d5fc49f1b15b3e311e.js
2855 bytes
0644
9384.a0d5fc49f1b15b3e311e.js.map
3717 bytes
0644
9390.fa2af7f3d3d9600c08ee.js
4201 bytes
0644
9390.fa2af7f3d3d9600c08ee.js.map
9682 bytes
0644
946.f2494c0c39a9590349b9.js
9194 bytes
0644
946.f2494c0c39a9590349b9.js.map
22193 bytes
0644
9510.4cfa85a51931dc20573a.js
2949 bytes
0644
9510.4cfa85a51931dc20573a.js.map
6939 bytes
0644
9521.de2a74ca5eb365810ca5.js
46306 bytes
0644
9521.de2a74ca5eb365810ca5.js.map
51040 bytes
0644
9538.996ade7a03ccdb01942d.js
64493 bytes
0644
9538.996ade7a03ccdb01942d.js.map
49212 bytes
0644
9569.a8d60b39654a160cb917.js
27965 bytes
0644
9569.a8d60b39654a160cb917.js.map
99160 bytes
0644
9643.b408884004ca73c102bc.js
627 bytes
0644
9643.b408884004ca73c102bc.js.map
2195 bytes
0644
968.22e079d28acb4131d34c.js
4001 bytes
0644
968.22e079d28acb4131d34c.js.map
9740 bytes
0644
970.a61e37b9b897c8098261.js
5239 bytes
0644
970.a61e37b9b897c8098261.js.map
13858 bytes
0644
9711.d6e977bd60f0e5ba673d.js
13555 bytes
0644
9711.d6e977bd60f0e5ba673d.js.map
43973 bytes
0644
9737.3340c89ea96d33307cc7.js
1001 bytes
0644
9737.3340c89ea96d33307cc7.js.map
3504 bytes
0644
9739.5a801055fcf72bf4d06f.js
1147 bytes
0644
9739.5a801055fcf72bf4d06f.js.map
4390 bytes
0644
9772.49e918c9331237552c0b.js
141 bytes
0644
9772.49e918c9331237552c0b.js.map
416 bytes
0644
9838.b8f01dc360f0c2151291.js
4003 bytes
0644
9838.b8f01dc360f0c2151291.js.map
8118 bytes
0644
AdminAuthentication.b7044adf53b669e61a87.js
22504 bytes
0644
AdminAuthentication.b7044adf53b669e61a87.js.map
67352 bytes
0644
AdminEditOrgPage.96fb6c37346641f44246.js
6369 bytes
0644
AdminEditOrgPage.96fb6c37346641f44246.js.map
20602 bytes
0644
AdminFeatureTogglesPage.22157fe31f358f1c4f09.js
4939 bytes
0644
AdminFeatureTogglesPage.22157fe31f358f1c4f09.js.map
16531 bytes
0644
AdminListOrgsPage.f01c8496fd635e20124b.js
2702 bytes
0644
AdminListOrgsPage.f01c8496fd635e20124b.js.map
7735 bytes
0644
AdminSettings.845c6def917892a0c1f9.js
1903 bytes
0644
AdminSettings.845c6def917892a0c1f9.js.map
5580 bytes
0644
AlertAmRoutes.10a0d9a23a082caf12c8.js
54554 bytes
0644
AlertAmRoutes.10a0d9a23a082caf12c8.js.map
208792 bytes
0644
AlertGroups.efd523dc41621f9f7935.js
10088 bytes
0644
AlertGroups.efd523dc41621f9f7935.js.map
39108 bytes
0644
AlertRuleListIndex.f0b17a6119cc5ea575ed.js
44623 bytes
0644
AlertRuleListIndex.f0b17a6119cc5ea575ed.js.map
156842 bytes
0644
AlertRuleListLegacy.8e675db4469232c87308.js
6270 bytes
0644
AlertRuleListLegacy.8e675db4469232c87308.js.map
18086 bytes
0644
AlertSilences.4ff252ad4c0057124d5d.js
24687 bytes
0644
AlertSilences.4ff252ad4c0057124d5d.js.map
83377 bytes
0644
AlertTabCtrl.d3377d127a336a69beb5.js
9844 bytes
0644
AlertTabCtrl.d3377d127a336a69beb5.js.map
27934 bytes
0644
AlertingAdmin.e62f9c73a69abe6a1ac0.js
10523 bytes
0644
AlertingAdmin.e62f9c73a69abe6a1ac0.js.map
37393 bytes
0644
AlertingFeatureTogglePage.f971bb7b2ad4ceb0acbd.js
672 bytes
0644
AlertingFeatureTogglePage.f971bb7b2ad4ceb0acbd.js.map
1220 bytes
0644
AlertingHome.0d6be993ef4a3df37345.js
33492 bytes
0644
AlertingHome.0d6be993ef4a3df37345.js.map
106868 bytes
0644
AlertingRedirectToRule.37a0040f89e20b99b751.js
3648 bytes
0644
AlertingRedirectToRule.37a0040f89e20b99b751.js.map
10875 bytes
0644
AlertingRuleForm.66bb5b2724b31ae6a5a4.js
79931 bytes
0644
AlertingRuleForm.66bb5b2724b31ae6a5a4.js.map
292923 bytes
0644
AlertingUpgrade.c757b99e306db50cdb16.js
31333 bytes
0644
AlertingUpgrade.c757b99e306db50cdb16.js.map
98330 bytes
0644
AngularApp.7e72879caebef22a5217.js
72809 bytes
0644
AngularApp.7e72879caebef22a5217.js.map
102853 bytes
0644
ApiKeysPage.12b0cd511f7b1e9c50dc.js
8422 bytes
0644
ApiKeysPage.12b0cd511f7b1e9c50dc.js.map
23375 bytes
0644
BenchmarksPage.3a183df3d44714f9a96a.js
2941 bytes
0644
BenchmarksPage.3a183df3d44714f9a96a.js.map
9749 bytes
0644
ChangePasswordPage.5e0562f6a9674bd95cfe.js
470 bytes
0644
ChangePasswordPage.5e0562f6a9674bd95cfe.js.map
1195 bytes
0644
Connections.b53c715b9b9a782d8647.js
32448 bytes
0644
Connections.b53c715b9b9a782d8647.js.map
112998 bytes
0644
CorrelationsFeatureToggle.71addced22f59948b708.js
674 bytes
0644
CorrelationsFeatureToggle.71addced22f59948b708.js.map
1149 bytes
0644
CorrelationsPage.4e02feddf752bdf7cfe6.js
22725 bytes
0644
CorrelationsPage.4e02feddf752bdf7cfe6.js.map
69262 bytes
0644
CreateTeam.dbde5b87278cf087cc5e.js
3046 bytes
0644
CreateTeam.dbde5b87278cf087cc5e.js.map
9594 bytes
0644
DashboardImport.06e6c4c03113061aae6c.js
18153 bytes
0644
DashboardImport.06e6c4c03113061aae6c.js.map
58242 bytes
0644
DashboardListPage.dac1fe75fbaa4f9b1c23.js
30967 bytes
0644
DashboardListPage.dac1fe75fbaa4f9b1c23.js.map
108517 bytes
0644
DashboardPage.5e50193556ad6b828f5d.js
2786 bytes
0644
DashboardPage.5e50193556ad6b828f5d.js.map
8754 bytes
0644
DashboardPageProxy.9a6d60e5cac89c11c71c.js
65136 bytes
0644
DashboardPageProxy.9a6d60e5cac89c11c71c.js.map
226791 bytes
0644
DataTrailsPage.aa19ca6750eb3f91ac5d.js
331 bytes
0644
DataTrailsPage.aa19ca6750eb3f91ac5d.js.map
582 bytes
0644
EditNotificationChannelLegacy.75122e6dbfb215d89d81.js
10507 bytes
0644
EditNotificationChannelLegacy.75122e6dbfb215d89d81.js.map
37444 bytes
0644
EmbeddedDashboard.3856404d3d608c739864.js
1768 bytes
0644
EmbeddedDashboard.3856404d3d608c739864.js.map
5917 bytes
0644
FolderAlerting.a0fe69e3574320c8a74a.js
9633 bytes
0644
FolderAlerting.a0fe69e3574320c8a74a.js.map
29985 bytes
0644
FolderLibraryPanelsPage.95dd7bf6735e202a79d2.js
8599 bytes
0644
FolderLibraryPanelsPage.95dd7bf6735e202a79d2.js.map
25919 bytes
0644
LibraryPanelsPage.4a952d4aa9c21984995a.js
2704 bytes
0644
LibraryPanelsPage.4a952d4aa9c21984995a.js.map
7623 bytes
0644
ListPublicDashboardPage.469a693c4011a5193fcd.js
4713 bytes
0644
ListPublicDashboardPage.469a693c4011a5193fcd.js.map
14309 bytes
0644
MuteTimings.cb66b37f52c9ee3ce1da.js
20855 bytes
0644
MuteTimings.cb66b37f52c9ee3ce1da.js.map
58932 bytes
0644
NewNotificationChannelLegacy.1d57814bc534bb1a3681.js
9785 bytes
0644
NewNotificationChannelLegacy.1d57814bc534bb1a3681.js.map
32951 bytes
0644
NewOrgPage.2bb0e1cab09f0cbd0310.js
1325 bytes
0644
NewOrgPage.2bb0e1cab09f0cbd0310.js.map
3158 bytes
0644
NotificationsListLegacyPage.33212668898a6db361a8.js
2547 bytes
0644
NotificationsListLegacyPage.33212668898a6db361a8.js.map
6671 bytes
0644
NotificationsListPage.1eb9cb05bf88eee08291.js
1620 bytes
0644
NotificationsListPage.1eb9cb05bf88eee08291.js.map
3378 bytes
0644
NotificationsPage.d26b90d7348139106351.js
4646 bytes
0644
NotificationsPage.d26b90d7348139106351.js.map
25381 bytes
0644
OrgDetailsPage.2d5c98f188683c2e1d3b.js
6742 bytes
0644
OrgDetailsPage.2d5c98f188683c2e1d3b.js.map
17850 bytes
0644
PlaylistEditPage.d14b3673a1bb03ca0dbb.js
6892 bytes
0644
PlaylistEditPage.d14b3673a1bb03ca0dbb.js.map
19989 bytes
0644
PlaylistNewPage.13696f39b95b8416ede2.js
6583 bytes
0644
PlaylistNewPage.13696f39b95b8416ede2.js.map
19084 bytes
0644
PlaylistPage.8f45dcc09add615f90e8.js
7895 bytes
0644
PlaylistPage.8f45dcc09add615f90e8.js.map
25502 bytes
0644
PlaylistStartPage.8be462b13a24cddee188.js
275 bytes
0644
PlaylistStartPage.8be462b13a24cddee188.js.map
698 bytes
0644
PluginListPage.815b65d32380d0a800f7.js
12167 bytes
0644
PluginListPage.815b65d32380d0a800f7.js.map
43537 bytes
0644
PluginPage.c790de5e17a0b728dd3a.js
314 bytes
0644
PluginPage.c790de5e17a0b728dd3a.js.map
668 bytes
0644
ProfileFeatureTogglePage.a14257ebc5da1e8c85e0.js
552 bytes
0644
ProfileFeatureTogglePage.a14257ebc5da1e8c85e0.js.map
1012 bytes
0644
PublicDashboardPage.51c7c24941781e091898.js
4295 bytes
0644
PublicDashboardPage.51c7c24941781e091898.js.map
14393 bytes
0644
SelectOrgPage.695c19a5101a3a03ee28.js
1124 bytes
0644
SelectOrgPage.695c19a5101a3a03ee28.js.map
2993 bytes
0644
SendResetMailPage.f16b7172a87070f57227.js
1736 bytes
0644
SendResetMailPage.f16b7172a87070f57227.js.map
4350 bytes
0644
ServerStats.3fbd2493deb8f4598755.js
3863 bytes
0644
ServerStats.3fbd2493deb8f4598755.js.map
11534 bytes
0644
ServiceAccountCreatePage.4f989fb6cd2a41193ff0.js
2440 bytes
0644
ServiceAccountCreatePage.4f989fb6cd2a41193ff0.js.map
7939 bytes
0644
ServiceAccountPage.bc7c35b63b03ccc89628.js
14806 bytes
0644
ServiceAccountPage.bc7c35b63b03ccc89628.js.map
51593 bytes
0644
ServiceAccountsPage.baaa08c045390c05e276.js
14565 bytes
0644
ServiceAccountsPage.baaa08c045390c05e276.js.map
46399 bytes
0644
SignupInvited.81ad56aceb8dd1839e15.js
2360 bytes
0644
SignupInvited.81ad56aceb8dd1839e15.js.map
6096 bytes
0644
SnapshotListPage.519c760ed66124a771ff.js
3061 bytes
0644
SnapshotListPage.519c760ed66124a771ff.js.map
9043 bytes
0644
SoloPanelPage.c729750a88c3fa90d1cc.js
3229 bytes
0644
SoloPanelPage.c729750a88c3fa90d1cc.js.map
12316 bytes
0644
SoloPanelPageOld.6518c21ccaf29701fa97.js
1727 bytes
0644
SoloPanelPageOld.6518c21ccaf29701fa97.js.map
5509 bytes
0644
StoragePage.9b93a99e75f7f2842c11.js
14081 bytes
0644
StoragePage.9b93a99e75f7f2842c11.js.map
48740 bytes
0644
SupportBundles.567d512b3f919b8112e4.js
3058 bytes
0644
SupportBundles.567d512b3f919b8112e4.js.map
8751 bytes
0644
SupportBundlesCreate.fc6b6e4cf6366f751081.js
2779 bytes
0644
SupportBundlesCreate.fc6b6e4cf6366f751081.js.map
8882 bytes
0644
TeamList.2e23d37c91734f608f09.js
9019 bytes
0644
TeamList.2e23d37c91734f608f09.js.map
30348 bytes
0644
TeamPages.4f6177b4c6ec769c72d8.js
22839 bytes
0644
TeamPages.4f6177b4c6ec769c72d8.js.map
66001 bytes
0644
TestStuffPage.8ddabdd17d265b771b17.js
2654 bytes
0644
TestStuffPage.8ddabdd17d265b771b17.js.map
8058 bytes
0644
UserCreatePage.72e86cf2c9a3ce50cff3.js
1470 bytes
0644
UserCreatePage.72e86cf2c9a3ce50cff3.js.map
3788 bytes
0644
UserInvitePage.c8243c9cee4b06e10222.js
2576 bytes
0644
UserInvitePage.c8243c9cee4b06e10222.js.map
6594 bytes
0644
UserListPage.acbb5778a782ca90c7ba.js
25463 bytes
0644
UserListPage.acbb5778a782ca90c7ba.js.map
79671 bytes
0644
UserProfileEditPage.7cc4c218d9e4664250e3.js
14593 bytes
0644
UserProfileEditPage.7cc4c218d9e4664250e3.js.map
42901 bytes
0644
UsersListPage.1b61c82d62ca416b6f2f.js
8800 bytes
0644
UsersListPage.1b61c82d62ca416b6f2f.js.map
30059 bytes
0644
alert-rules-drawer-content.1fd9de3b496d077a5f3a.js
957 bytes
0644
alert-rules-drawer-content.1fd9de3b496d077a5f3a.js.map
3199 bytes
0644
alert-rules-toolbar-button.6f275f0d03748b6c297d.js
1429 bytes
0644
alert-rules-toolbar-button.6f275f0d03748b6c297d.js.map
4041 bytes
0644
alertmanagerPlugin.d13ca72afb3f996bb284.js
3810 bytes
0644
alertmanagerPlugin.d13ca72afb3f996bb284.js.map
10753 bytes
0644
app.b11fde05d43f9632a473.js
920821 bytes
0644
app.b11fde05d43f9632a473.js.map
69088 bytes
0644
assets-manifest.json
280835 bytes
0644
azureMonitorPlugin.0bc37a9d4e3bd8421cc0.js
232 bytes
0644
azureMonitorPlugin.0bc37a9d4e3bd8421cc0.js.map
600 bytes
0644
brace.fcd4b1c7e8b9264ab02c.js
371235 bytes
0644
brace.fcd4b1c7e8b9264ab02c.js.map
1132097 bytes
0644
canvasPanel.a46aa5e57d26b1fcc380.js
485254 bytes
0644
canvasPanel.a46aa5e57d26b1fcc380.js.map
2136916 bytes
0644
cloudMonitoringPlugin.c6ea431eae8e9ad2c7b1.js
198 bytes
0644
cloudMonitoringPlugin.c6ea431eae8e9ad2c7b1.js.map
555 bytes
0644
cloudwatchPlugin.06ef34f60000c4f7ea37.js
192 bytes
0644
cloudwatchPlugin.06ef34f60000c4f7ea37.js.map
544 bytes
0644
dark.7fa24d1908c1c96e6fcc.js
134 bytes
0644
elasticsearchPlugin.3f2edb012f5162b48903.js
214 bytes
0644
elasticsearchPlugin.3f2edb012f5162b48903.js.map
583 bytes
0644
explore-feature-toggle-page.897d9f08c342ad4c0702.js
612 bytes
0644
explore-feature-toggle-page.897d9f08c342ad4c0702.js.map
1280 bytes
0644
explore.476912733278e2a99729.js
165810 bytes
0644
explore.476912733278e2a99729.js.map
579148 bytes
0644
geomapPanel.14b9605971a38c51d262.js
417078 bytes
0644
geomapPanel.14b9605971a38c51d262.js.map
540371 bytes
0644
grafana.dark.8c716fbcf630eae84ced.css
209089 bytes
0644
grafana.light.b8b3904788f25480f4a1.css
209047 bytes
0644
grafanaPlugin.1cb208185a89de28dc3a.js
8654 bytes
0644
grafanaPlugin.1cb208185a89de28dc3a.js.map
28174 bytes
0644
graphPlugin.f47f722cdfc0ceb85136.js
70277 bytes
0644
graphPlugin.f47f722cdfc0ceb85136.js.map
243430 bytes
0644
graphitePlugin.d59175976346917781fe.js
75305 bytes
0644
graphitePlugin.d59175976346917781fe.js.map
272016 bytes
0644
heatmapPanel.f6f29a53ed0f682b4404.js
37545 bytes
0644
heatmapPanel.f6f29a53ed0f682b4404.js.map
158066 bytes
0644
influxdbPlugin.140a7777089f9559c11c.js
68843 bytes
0644
influxdbPlugin.140a7777089f9559c11c.js.map
265085 bytes
0644
jaegerPlugin.d254fd4a19ef0cb5b4f5.js
19727 bytes
0644
jaegerPlugin.d254fd4a19ef0cb5b4f5.js.map
65603 bytes
0644
light.af65e5ce03b9ed0aa2b1.js
134 bytes
0644
loki-query-field.a588d587d9d762b18f22.js
191 bytes
0644
loki-query-field.a588d587d9d762b18f22.js.map
548 bytes
0644
lokiPlugin.77364509de280321b6f8.js
185 bytes
0644
lokiPlugin.77364509de280321b6f8.js.map
536 bytes
0644
mixedPlugin.f36bd557a883d9a67538.js
180 bytes
0644
mssqlPlugin.88775f59ced74c2283c5.js
20457 bytes
0644
mssqlPlugin.88775f59ced74c2283c5.js.map
61420 bytes
0644
mysqlPlugin.72fb44411afd8165d201.js
17323 bytes
0644
mysqlPlugin.72fb44411afd8165d201.js.map
45415 bytes
0644
nodeGraphPanel.9a7cdd8efdae281cbe28.js
2107 bytes
0644
nodeGraphPanel.9a7cdd8efdae281cbe28.js.map
7132 bytes
0644
opentsdbPlugin.418b8c8ea0d97ed99edb.js
22866 bytes
0644
opentsdbPlugin.418b8c8ea0d97ed99edb.js.map
82180 bytes
0644
parcaPlugin.7f2e6dde7161b08ceed2.js
11184 bytes
0644
parcaPlugin.7f2e6dde7161b08ceed2.js.map
42340 bytes
0644
postgresPlugin.f88c598bae2653ae177b.js
18902 bytes
0644
postgresPlugin.f88c598bae2653ae177b.js.map
54304 bytes
0644
prom-query-field.ff217c474ea457bdd65e.js
14104 bytes
0644
prom-query-field.ff217c474ea457bdd65e.js.map
76811 bytes
0644
prometheusPlugin.2ba02c28d3f7293e903e.js
224 bytes
0644
prometheusPlugin.2ba02c28d3f7293e903e.js.map
699 bytes
0644
pyroscopePlugin.eb14b78419d619d90dca.js
22269 bytes
0644
pyroscopePlugin.eb14b78419d619d90dca.js.map
86896 bytes
0644
react-monaco-editor.988b1aa5e90b11f9941a.js
15759 bytes
0644
react-monaco-editor.988b1aa5e90b11f9941a.js.map
51544 bytes
0644
runtime.4b7e1b5735d2ed64b824.js
13640 bytes
0644
runtime.4b7e1b5735d2ed64b824.js.map
35122 bytes
0644
tableOldPlugin.8c72b8399d197aeebe16.js
25242 bytes
0644
tableOldPlugin.8c72b8399d197aeebe16.js.map
80497 bytes
0644
tempoPlugin.efa8c2a55984263b4b61.js
182 bytes
0644
tempoPlugin.efa8c2a55984263b4b61.js.map
529 bytes
0644
testDataDSPlugin.9717509b124d754e4f35.js
120550 bytes
0644
testDataDSPlugin.9717509b124d754e4f35.js.map
303302 bytes
0644
visjs-network.d93b3aa71ac24c8cde84.js
459653 bytes
0644
visjs-network.d93b3aa71ac24c8cde84.js.map
1951742 bytes
0644
zipkinPlugin.70f0f24b6d0b6e673ccb.js
13172 bytes
0644
zipkinPlugin.70f0f24b6d0b6e673ccb.js.map
46861 bytes
0644
N4ST4R_ID | Naxtarrr