Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui/dataLoaders): Add swap to system bundle #11678

Merged
merged 1 commit into from
Feb 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## v2.0.0-alpha.2 [unreleased]

## Features

## Bug Fixes
1. [11678](https://github.com/influxdata/influxdb/pull/11678): Update the System Telegraf Plugin bundle to include the swap plugin

## UI Improvements


## v2.0.0-alpha.1 [2019-01-23]

### Release Notes
Expand Down
7 changes: 7 additions & 0 deletions ui/mocks/dummyData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
TelegrafPluginInputNet,
TelegrafPluginInputProcstat,
TelegrafPluginInputDocker,
TelegrafPluginInputSwap,
Task as TaskApi,
Organization,
} from 'src/api'
Expand Down Expand Up @@ -400,6 +401,12 @@ export const redisTelegrafPlugin = {
name: TelegrafPluginInputRedis.NameEnum.Redis,
}

export const swapTelegrafPlugin = {
...telegrafPlugin,
name: TelegrafPluginInputSwap.NameEnum.Swap,
configured: ConfigurationState.Configured,
}

export const redisPlugin = {
name: TelegrafPluginInputRedis.NameEnum.Redis,
type: TelegrafPluginInputRedis.TypeEnum.Input,
Expand Down
1 change: 1 addition & 0 deletions ui/src/dataLoaders/constants/pluginConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const pluginsByBundle: PluginBundles = {
TelegrafPluginInputMem.NameEnum.Mem,
TelegrafPluginInputNet.NameEnum.Net,
TelegrafPluginInputProcesses.NameEnum.Processes,
TelegrafPluginInputSwap.NameEnum.Swap,
],
[BundleName.Docker]: [TelegrafPluginInputDocker.NameEnum.Docker],
[BundleName.Kubernetes]: [TelegrafPluginInputKubernetes.NameEnum.Kubernetes],
Expand Down
2 changes: 2 additions & 0 deletions ui/src/dataLoaders/reducers/dataLoaders.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
token,
telegrafConfig,
dockerTelegrafPlugin,
swapTelegrafPlugin,
} from 'mocks/dummyData'
import {QUICKSTART_SCRAPER_TARGET_URL} from 'src/dataLoaders/constants/pluginConfigs'

Expand Down Expand Up @@ -506,6 +507,7 @@ describe('dataLoader reducer', () => {
memTelegrafPlugin,
netTelegrafPlugin,
processesTelegrafPlugin,
swapTelegrafPlugin,
])
)
})
Expand Down