Skip to content

Commit 3f00772

Browse files
authored
docs(gateway): fix statsd configuration (#6664)
1 parent cb41478 commit 3f00772

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/web/docs/src/content/gateway/monitoring-tracing.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,7 @@ You can use `@graphql-mesh/plugin-statsd` plugin to collect and send metrics to
18041804
and InfluxDB's Telegraf StatsD services.
18051805

18061806
```sh npm2yarn
1807-
npm i @graphql-mesh/plugin-statsd hot-shots
1807+
npm i @graphql-mesh/plugin-statsd
18081808
```
18091809

18101810
Compatible with:
@@ -1834,7 +1834,6 @@ Available metrics:
18341834
<Tabs.Tab>
18351835

18361836
```ts filename="gateway.config.ts"
1837-
import { StatsD } from 'hot-shots'
18381837
import { defineConfig } from '@graphql-hive/gateway'
18391838
import useStatsD from '@graphql-mesh/plugin-statsd'
18401839

@@ -1843,9 +1842,9 @@ export const gatewayConfig = defineConfig({
18431842
useStatsD({
18441843
...pluginCtx,
18451844
// Configure `hot-shots` if only you need. You don't need to pass this if you don't need to configure it.
1846-
client: new StatsD({
1845+
client: {
18471846
port: 8020
1848-
}),
1847+
},
18491848
// results in `my-graphql-gateway.operations.count` instead of `graphql.operations.count`
18501849
prefix: 'my-graphql-gateway',
18511850
// If you wish to disable introspection logging

0 commit comments

Comments
 (0)