From 95cde75151f03569e89ea30781288f95d3233376 Mon Sep 17 00:00:00 2001 From: T <52665225+valamidev@users.noreply.github.com> Date: Sat, 7 Oct 2023 12:29:22 +0200 Subject: [PATCH] Fix readme --- README.md | 10 +++++----- package.json | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index dc7220f..36e5b61 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ npm i grafana-cloud-graphite To use this package, first import the GraphiteMetrics class: ```javascript -import { GraphiteMetrics } from "graphite-metrics-handler"; +import { GraphiteMetrics } from "grafana-cloud-graphite"; ``` Then, create a new instance of the class with your Graphite server options: @@ -34,14 +34,14 @@ Then, create a new instance of the class with your Graphite server options: const Metrics = new GraphiteMetrics({ userId: "5435231", // Grafana Graphite UserId token: "glc_kyupkp...", // Grafana Access Token - ingestEndpointURL: "https://something.grafana.net/graphite/metrics", + ingestEndpointURL: "https://something.grafana.net/graphite/metrics", namespace: "e2e", }); // Handle/Listen Metrics error - Metrics.on("error", (err) => { - console.error(err); - }); +Metrics.on("error", (err) => { + console.error(err); +}); ``` You can then register counters and interval metrics with the `registerCounter` method: diff --git a/package.json b/package.json index 02b116a..38b0841 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,11 @@ { "name": "grafana-cloud-graphite", - "version": "0.2.1", + "version": "0.2.3", "description": "NodeJS client for Grafana Cloud Graphite API", "repository": { "type": "git", "url": "git+https://github.com/valamidev/grafana-cloud-graphite.git" }, - "homepage": "https://github.com/valamidev/grafana-cloud-graphite#readme", "main": "dist/src/index.js", "engines": { "node": ">=16"