Skip to content
Open
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
24 changes: 12 additions & 12 deletions dist/main/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main/index.js.map

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions dist/post/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/post/index.js.map

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions dist/sc/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/sc/index.js.map

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions dist/scw/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/scw/index.js.map

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/statCollector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const WHITE = '#FFFFFF'
async function triggerStatCollect(): Promise<void> {
logger.debug('Triggering stat collect ...')
const response = await axios.post(
`http://localhost:${STAT_SERVER_PORT}/collect`
`http://127.0.0.1:${STAT_SERVER_PORT}/collect`
)
if (logger.isDebugEnabled()) {
logger.debug(`Triggered stat collect: ${JSON.stringify(response.data)}`)
Expand Down Expand Up @@ -220,7 +220,7 @@ async function getCPUStats(): Promise<ProcessedCPUStats> {
const systemLoadX: ProcessedStats[] = []

logger.debug('Getting CPU stats ...')
const response = await axios.get(`http://localhost:${STAT_SERVER_PORT}/cpu`)
const response = await axios.get(`http://127.0.0.1:${STAT_SERVER_PORT}/cpu`)
if (logger.isDebugEnabled()) {
logger.debug(`Got CPU stats: ${JSON.stringify(response.data)}`)
}
Expand All @@ -246,7 +246,7 @@ async function getMemoryStats(): Promise<ProcessedMemoryStats> {

logger.debug('Getting memory stats ...')
const response = await axios.get(
`http://localhost:${STAT_SERVER_PORT}/memory`
`http://127.0.0.1:${STAT_SERVER_PORT}/memory`
)
if (logger.isDebugEnabled()) {
logger.debug(`Got memory stats: ${JSON.stringify(response.data)}`)
Expand Down Expand Up @@ -279,7 +279,7 @@ async function getNetworkStats(): Promise<ProcessedNetworkStats> {

logger.debug('Getting network stats ...')
const response = await axios.get(
`http://localhost:${STAT_SERVER_PORT}/network`
`http://127.0.0.1:${STAT_SERVER_PORT}/network`
)
if (logger.isDebugEnabled()) {
logger.debug(`Got network stats: ${JSON.stringify(response.data)}`)
Expand All @@ -305,7 +305,7 @@ async function getDiskStats(): Promise<ProcessedDiskStats> {
const diskWriteX: ProcessedStats[] = []

logger.debug('Getting disk stats ...')
const response = await axios.get(`http://localhost:${STAT_SERVER_PORT}/disk`)
const response = await axios.get(`http://127.0.0.1:${STAT_SERVER_PORT}/disk`)
if (logger.isDebugEnabled()) {
logger.debug(`Got disk stats: ${JSON.stringify(response.data)}`)
}
Expand All @@ -331,7 +331,7 @@ async function getDiskSizeStats(): Promise<ProcessedDiskSizeStats> {

logger.debug('Getting disk size stats ...')
const response = await axios.get(
`http://localhost:${STAT_SERVER_PORT}/disk_size`
`http://127.0.0.1:${STAT_SERVER_PORT}/disk_size`
)
if (logger.isDebugEnabled()) {
logger.debug(`Got disk size stats: ${JSON.stringify(response.data)}`)
Expand Down
Loading