GithubHelp home page GithubHelp logo

Comments (16)

akvlad avatar akvlad commented on May 20, 2024

Hello. Do you request something like topK(5, rate({a="b"} | json [10m])) ?

from qryn.

gauravpareekk avatar gauravpareekk commented on May 20, 2024

I don't think so. This is the error we're seeing from Grafana dashboard end.

from qryn.

akvlad avatar akvlad commented on May 20, 2024

Well Not supported\nBad Request: Not supported in this case means that topK with | json or | logfmt is not supported.
Please try using | json a="obj.a" - json with parameters with topK.
I'll recheck the grafana agent but it seems like a human built request with | json and topk from grafana explore or a dashboard.

from qryn.

gauravpareekk avatar gauravpareekk commented on May 20, 2024

ok do we have a rebuilt dashboard that can be used?

from qryn.

gauravpareekk avatar gauravpareekk commented on May 20, 2024

I'm using the prebuilt dashboard and just imported that to grafana

from qryn.

akvlad avatar akvlad commented on May 20, 2024

can you please share a link to the prebuilt dashboard you use? is it from an open source?

from qryn.

akvlad avatar akvlad commented on May 20, 2024

another question. "reqId":"req-2k"
can you please filter the logs by req-2k string and paste the request causing the error?

from qryn.

akvlad avatar akvlad commented on May 20, 2024

do you have a widget named Top Exceptions inside the prebuilt dashboard?

from qryn.

gauravpareekk avatar gauravpareekk commented on May 20, 2024

Yes

from qryn.

akvlad avatar akvlad commented on May 20, 2024

I think I see the source of the prebuilt dashboard you have.
https://github.com/grafana/faro-web-sdk/blob/main/dashboards/frontend-application.json#L995
As you see at this line https://github.com/grafana/faro-web-sdk/blob/main/dashboards/frontend-application.json#L990C11-L990C23

topk(10, count(count_over_time({kind="exception", app="$app"} | logfmt [$__range])) by (value))

The request is not supported for now. We should either replace it or support it.
I'll think about that. Maybe it's easier to make a quick replacement.

from qryn.

gauravpareekk avatar gauravpareekk commented on May 20, 2024

sure, thanks. At this moment, we can't do anything about it?

from qryn.

akvlad avatar akvlad commented on May 20, 2024

We will suggest the requests replacements shortly.

from qryn.

akvlad avatar akvlad commented on May 20, 2024

Suggested replacements for some of widgets of the dashboard:

Top Exceptions
topk(10, count(count_over_time({kind="exception", app="$app"} | regexp "value=(?<value>([^\"]+|\"[^\"]+\"))" [$__range])) by (value))

Top URLs by Exception Count
topk(10, count(count_over_time({kind="exception", app="$app"} | regexp "page_url=(?<page_url>([^\"]+|\"[^\"]+\"))" [$__range])) by (page_url))

Top Browsers by Exception Count
topk(10, count(count_over_time({kind="exception", app="$app"} | regexp "browser_name=(?<browser_name>([^\"]+|\"[^\"]+\")).*browser_version=(?<browser_version>([^\"]+|\"[^\"]+\"))" [$__range])) by (browser_name, browser_version))

Popular Browsers
topk(10, count(count_over_time({app="$app",kind="measurement"} |= " ttfb=" | regexp "browser_name=(?<browser_name>([^\"]+|\"[^\"]+\")).*browser_version=(?<browser_version>([^\"]+|\"[^\"]+\"))" [$__range])) by (browser_name, browser_version))

Top Events
topk(10, count(count_over_time({kind="event", app="$app"} | regexp "event_name=(?<event_name>([^\"]+|\"[^\"]+\"))" [$__range])) by (event_name))

The Not supported error should not appear after the changes are made.

It's an interesting logic to replace logfmt to regexp if possible. Sounds like a feature request. Thanks for the issue.

from qryn.

gauravpareekk avatar gauravpareekk commented on May 20, 2024

thank you for helping here. We were able to pull the data. However, these ones are still throwing error

Cumulative Layout Shift, p75
quantile_over_time(0.75, {kind="measurement",app="$app"} |= " cls=" | logfmt | unwrap cls [5m]) by (app)

First Input Delay, p75
quantile_over_time(0.75, {kind="measurement",app="$app"} |= " fid=" | logfmt | unwrap fid [5m]) by (app)

Page Load, p75
quantile_over_time(0.75, {kind="measurement",app="$app"} |= " ttfb=" | logfmt | unwrap ttfb [5m]) by (app)

quantile_over_time(0.75, {kind="measurement",app="$app"} |= " fcp=" | logfmt | unwrap fcp [5m]) by (app)

quantile_over_time(0.75, {kind="measurement",app="$app"} |= " lcp=" | logfmt | unwrap lcp [5m]) by (app)

from qryn.

akvlad avatar akvlad commented on May 20, 2024

I see. Will provide the same replacement.
Feel free to do it yourself. Just replace | logfmt with | regexp "lcp=(?<lcp>([^\"]+|\"[^\"]+\"))"

from qryn.

gauravpareekk avatar gauravpareekk commented on May 20, 2024

thank you that worked

from qryn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.