Skip to content

axiomhq/metrics-datasource

Repository files navigation

Axiom Metrics Datasource

A Grafana datasource plugin for querying metrics from Axiom.

Development

  1. Install dependencies

    npm install
  2. Build plugin in development mode and run in watch mode

    npm run dev
  3. Build plugin in production mode

    npm run build
  4. Run the tests (using Jest)

    # Runs the tests and watches for changes
    npm run test
    
    # Exits after running all the tests
    npm run test:ci
  5. Spin up a Grafana instance and run the plugin inside it (using Docker)

    npm run server
  6. Run the E2E tests (using Playwright)

    npm run e2e
  7. Run the linter

    npm run lint
    
    # or
    
    npm run lint:fix

Releasing

To trigger a release, push a version tag:

  1. Run npm version <major|minor|patch>
  2. Run git push origin main --follow-tags

The release workflow will build, sign, and publish a GitHub release automatically.

Learn more

License

Apache-2.0

About

metrics datasource

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors