From 5eb43880751fc0f1eedd9a746deb43dca9d74d94 Mon Sep 17 00:00:00 2001 From: Jacob Colvin Date: Mon, 15 Jun 2020 16:22:05 -0400 Subject: [PATCH] Update Telegraf config for 1.0.0 --- example/telegraf.conf | 20 ++++++++++++-------- package.json | 3 ++- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/example/telegraf.conf b/example/telegraf.conf index febcd7f..491df1c 100644 --- a/example/telegraf.conf +++ b/example/telegraf.conf @@ -724,18 +724,22 @@ ## Tag keys is an array of keys that should be added as tags. Matching keys ## are no longer saved as fields. tag_keys = [ - "host", - "key" + "environment.host", + "options.key" ] ## Array of glob pattern strings keys that should be added as string fields. json_string_fields = [ - "description", - "login", - "key", - "name", - "lightTheme", - "orgRole" + "options.description", + "environment.timeRange.from", + "environment.timeRange.to", + "context.login", + "context.email", + "context.name", + "context.isGrafanaAdmin", + "context.timezone", + "context.locale", + "context.hasEditPermissionInFolders" ] ## Name key is the key to use as the measurement name. diff --git a/package.json b/package.json index 2ec35e8..f31195e 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "build": "grafana-toolkit plugin:build", "test": "grafana-toolkit plugin:test", "dev": "grafana-toolkit plugin:dev", - "watch": "grafana-toolkit plugin:dev --watch" + "watch": "grafana-toolkit plugin:dev --watch", + "telegraf": "docker run -p 8080:8080 -v $INIT_CWD/example/telegraf.conf:/etc/telegraf/telegraf.conf telegraf:latest" }, "author": { "name": "Jacob Colvin",