-
Notifications
You must be signed in to change notification settings - Fork 6
Dockerized Counter thing #67
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
Open
sailalithkanumuri8
wants to merge
6
commits into
eclipse-thingweb:main
Choose a base branch
from
sailalithkanumuri8:sai-dockerizing-counter
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
28b43d2
Added monitoring notifications
sailalithkanumuri 46adc01
Update .env
sailalithkanumuri8 de2b57b
Fixed monitering
sailalithkanumuri 1eef941
Merge branch 'sai-notifications-monitering' of github.com:sailalithka…
sailalithkanumuri fa3d8c5
Added counter to test-things
sailalithkanumuri 3f6caf4
Small edits
sailalithkanumuri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,14 @@ HC_INTERVAL=40s | |
HC_TIMEOUT=30s | ||
HC_RETRIES=3 | ||
HC_START_PERIOD=60s | ||
|
||
# Email Configuration (optional) | ||
SMTP_HOST=sandbox.smtp.mailtrap.io | ||
SMTP_PORT=2525 | ||
SMTP_USER=47aa65a98dd245 | ||
SMTP_PASS=b553f1f0235cde | ||
[email protected] | ||
|
||
# Telegram Configuration (optional) | ||
TELEGRAM_BOT_TOKEN=your-bot-token | ||
TELEGRAM_CHAT_ID=your-chat-id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# IN PORTS | ||
WEB_PORT_IN=80 | ||
MODBUS_ELEVATOR_PORT_IN=3179 | ||
COAP_SIMPLE_PORT_IN=5683 | ||
COAP_NEGOTIATION_PORT_IN=5684 | ||
SMART_HOME_SMART_CLOCK_PORT_IN=5685 | ||
TRAEFIK_DASHBOARD_PORT_IN=8080 | ||
|
||
# OUT PORTS | ||
WEB_PORT_OUT=80 | ||
MODBUS_ELEVATOR_PORT_OUT=3179 | ||
COAP_SIMPLE_PORT_OUT=5683 | ||
COAP_NEGOTIATION_PORT_OUT=5684 | ||
SMART_HOME_SMART_CLOCK_PORT_OUT=5685 | ||
TRAEFIK_DASHBOARD_PORT_OUT=8080 | ||
|
||
STACK_HOSTNAME="plugfest.thingweb.io" | ||
BROKER_URI="plugfest.thingweb.io" | ||
PORT=8087 | ||
|
||
LOKI_HOSTNAME="http://loki" | ||
LOKI_PORT=3100 | ||
|
||
# Healthcheck Parameters | ||
HC_INTERVAL=40s | ||
HC_TIMEOUT=30s | ||
HC_RETRIES=3 | ||
HC_START_PERIOD=60s | ||
|
||
# Email Configuration (optional) | ||
SMTP_HOST=smtp.gmail.com | ||
SMTP_PORT=465 | ||
SMTP_USER=email-here | ||
SMTP_PASS=app-password-here | ||
NOTIFICATION_EMAIL=recieving-email-here | ||
|
||
THINGS_TO_MONITOR=\ | ||
advanced-coffee-machine,http,localhost,3000,/http-advanced-coffee-machine;\ | ||
elevator,modbus,localhost,8502;\ | ||
calculator,http,localhost,3000,/http-express-calculator-simple;\ | ||
data-schema-thing,http,localhost,3000,/http-data-schema-thing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM node:18-alpine | ||
|
||
WORKDIR /app | ||
|
||
# Copy package files | ||
COPY package*.json ./ | ||
|
||
# Install dependencies | ||
RUN npm install | ||
|
||
# Copy source code | ||
COPY . . | ||
|
||
# Build TypeScript code | ||
RUN npm run build | ||
|
||
# Expose the API port | ||
EXPOSE 3000 | ||
|
||
# Set the default command to run the test script | ||
CMD ["npm", "run", "test:monitor"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MQTT broker should not be here but the counter thing should be added