-
Notifications
You must be signed in to change notification settings - Fork 1
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
Monitor VMs and containers with Prometheus and Grafana #26
Conversation
"./scripts/download_node_exporter.sh", | ||
"./scripts/create_node_exporter_service.sh", |
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.
Move download_node_exporter to packer while building image.
If done on TF -> Issue: no connection from github server.
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.
looks great! 🚀
added some questions and suggestions.
# expose cadvisor metrics | ||
- job_name: "cadvisor-container-on-sacrificial-vm" | ||
static_configs: | ||
- targets: ["sacrificial-vm:8080"] |
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.
why is this cadvisor
on 8080
while others 8088
? typo?
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.
cadvisor running on port 8080 as default.
but on our gateway port 8080 are being used by auth-test-config.
that's why i install cadvisor as container on gateway-vm and logger-vm.
because with docker it's possible & easier to do port-forwarding by using 8088:8080
# expose cadvisor metrics | ||
- job_name: "cadvisor-container-on-sacrificial-vm" | ||
static_configs: | ||
- targets: ["sacrificial-vm:8080"] |
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.
cadvisor running on port 8080 as default.
but on our gateway port 8080 are being used by auth-test-config.
that's why i install cadvisor as container on gateway-vm and logger-vm.
because with docker it's possible & easier to do port-forwarding by using 8088:8080
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.
LGTM! added one more question but we could do it in future PRs!
- Cadvisor on Gateway-VM: `8088` | ||
- Cadvisor on Logger-VM: `8088` | ||
- Cadvisor on Sacrificial-VM: `8080` |
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.
maybe use the same port for same services if possible. it could reduce future confusion and avoid mistakes.
(On /diagrams/infra.drawio.svg
it shows 8088
)
But we can definitely update it in the next PRs :)
Have added a card for it
https://github.com/paseaf/ContainerSSH-honeypot/projects/1#card-83701924
Description
This PR will
Testing the PR
http://<logger-vm>:3000
, here we can monitor all VMs and Containers.User: admin
Password: admin
Takeaways
Q&A
Screenshots: