Skip to content

isabella232/grafana-javascript-agent

 
 

Repository files navigation

Grafana JavaScript Agent

Grafana JavaScript Agent is a library that enables applications (both frontend and backend) to interact with external services like Grafana, Prometheus, Loki, Tempo etc.

The repository consists of multiple packages that should be combined depending on the needs, as well as a demo which can be ran by following the README.md file.

Packages

Core

@grafana/javascript-agent-core is the main package that provides the core functionality of the agent. The README.md file provides an overview of the architecture and the API of library.

Instrumentations

  1. @grafana/javascript-agent-instrumentation-console is a package for both, browsers and Node.js, which provides an automatic mechanism for collecting console events.
  2. @grafana/javascript-agent-instrumentation-errors is a browser package which provides an automatic mechanism for collecting unhandled exceptions and errors.
  3. @grafana/javascript-agent-instrumentation-tracing is a package for both, browsers and Node.js, which provides an automatic mechanism for tracing. FOR THE TIME BEING THIS PACKAGE IS A PLACEHOLDER.
  4. @grafana/javascript-agent-instrumentation-web-vitals is a browser package which collects web vitals metrics from the app.

Meta

  1. @grafana/javascript-agent-meta-browser is a browser package for collecting details about the browser, operating system and device type.
  2. @grafana/javascript-agent-meta-page is a browser package for collecting details about the current page (i.e. the URL, page title etc.).

Transports

  1. @grafana/javascript-agent-transport-console is a package for both, browsers and Node.js, which shows the collected data in the console.
  2. @grafana/javascript-agent-transport-fetch is a browser package for sending the collected data to a specified URL using fetch.

Integrations

  1. @grafana/javascript-agent-integration-angular is a package that enables easier integration in projects built with Angular. FOR THE TIME BEING THIS PACKAGE IS A PLACEHOLDER.
  2. @grafana/javascript-agent-integration-react is a package that enables easier integration in projects built with React. FOR THE TIME BEING THIS PACKAGE IS A PLACEHOLDER.

About

Monorepo for Grafana JavaScript Agent

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.5%
  • JavaScript 3.3%
  • Shell 0.2%