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

Logging service #52

Open
wants to merge 90 commits into
base: master
Choose a base branch
from
Open

Logging service #52

wants to merge 90 commits into from

Conversation

MasterSushiChef
Copy link
Member

@MasterSushiChef MasterSushiChef commented Apr 29, 2019

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
Copy link
Member

oldmud0 commented Jun 9, 2019

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.

services/lumberjack/test/service.test.js Show resolved Hide resolved
Comment on lines 113 to 115
test('clear data', async () => {
expect(service.clearData()).toBeTruthy();
});
Copy link
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
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
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