Skip to content

Logging service - #52

Open
MasterSushiChef wants to merge 90 commits into
masterfrom
logging-service
Open

Logging service#52
MasterSushiChef wants to merge 90 commits into
masterfrom
logging-service

Conversation

@MasterSushiChef

@MasterSushiChef MasterSushiChef commented Apr 29, 2019

Copy link
Copy Markdown
Member

I'm still getting an undefined response from the requests in the service even if the urls are matching with the nocks

error: undefined {"errno":"ENOTFOUND","code":"ENOTFOUND","syscall":"getaddrinfo","hostname":"ping-test","host":"ping-test","port":"7000"}
error: undefined {"errno":"ENOTFOUND","code":"ENOTFOUND","syscall":"getaddrinfo","hostname":"forward-interop-test","host":"forward-interop-test","port":"4000"}
error: undefined {"errno":"ENOTFOUND","code":"ENOTFOUND","syscall":"getaddrinfo","hostname":"telemetry-test","host":"telemetry-test","port":"5000"}
error: undefined {"errno":"ENOTFOUND","code":"ENOTFOUND","syscall":"getaddrinfo","hostname":"forward-interop-test","host":"forward-interop-test","port":"4000"}
error: undefined {"errno":"ENOTFOUND","code":"ENOTFOUND","syscall":"getaddrinfo","hostname":"telemetry-test","host":"telemetry-test","port":"5000"}
console.log node_modules/nock/lib/interceptor.js:328
matching http://forward-interop-test:4000/api/upload-rate to GET http://forward-interop-test:4000/api/upload-rate: true

error: undefined {"errno":"ENOTFOUND","code":"ENOTFOUND","syscall":"getaddrinfo","hostname":"telemetry-test","host":"telemetry-test","port":"5000"}

Combine service_ping and device_ping
Added lumberjack to docker-compose
Added lumberjack to orchestra level make
Added additional env variables to Dockerfile
…of task queue

-Added getQueueLength to plane.js and router
-Set pstatus to offline if greater than env variable, queueLimit
@oldmud0

oldmud0 commented Jun 9, 2019

Copy link
Copy Markdown
Member

This branch will be squashed into one big commit on merge. I know it's not ideal, but I have tried rebasing interactively and the new history always turns out to be just as messy as the old one.

Comment thread services/lumberjack/test/service.test.js
Comment on lines -113 to -115
test('clear data', async () => {
expect(service.clearData()).toBeTruthy();
});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happened to this test?

Comment on lines +15 to +17
url: http://influx:8086
# <string> database name, if used
database: ${DB_NAME}
database: lumberjack

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I don't recommend changing this. It makes it more difficult to change hostnames and ports for alternate deployments. That is why we used the uavaustin/grafana image instead of the default grafana/grafana image.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't get the custom uavaustin/grafana image working. But for environment variable interpolation, base grafana allows us to do this. In the latest commit, I added back the environment variables in data sources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants