Skip to content

Commit

Permalink
Update Telegraf config for 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MacroPower committed Jun 15, 2020
1 parent a7e6967 commit 5eb4388
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
20 changes: 12 additions & 8 deletions example/telegraf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5eb4388

Please sign in to comment.