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

Plat 594/ Replicate prometheus + add smtp env vars for grafana #169

Merged
merged 14 commits into from
Nov 21, 2022

Conversation

marrouchi
Copy link
Collaborator

@marrouchi marrouchi commented Nov 1, 2022

Motivation

1- In order to enable Grafana email alerts we need to enable SMTP and add support for configuring SMTP credentials.
2- Removed the "depends_on" property since it's ignored by docker swarm.
3- Expose grafana on port 3000 instead of 3030.
4- 2x replicas of prometheus : Both prometheus servers will scrape the same endpoints and thus (more or less) have the same data. I don't think we can use docker swarm replication though as they will need to be separate services so that Grafana only talks to one one of them else Grafana might see inconsistent data on subsequent queries (due to round robining). So we will need to define a service like prometheus and promenteus-backup as services with the exact some docker config. Then if we lose the node promenteus-main is on we can manually switch Grafana to promenteus-backup and still see historical data. The idea not to have 3 copies of Prometheus is just to unburden the metrics exporter endpoints and if we lose 2 nodes the whole cluster is stuffed anyways.

JIRA : https://jembiprojects.jira.com/browse/PLAT-594

message-bus-kafka/docker-compose.yml Outdated Show resolved Hide resolved
monitoring/package-metadata.json Outdated Show resolved Hide resolved
reverse-proxy-nginx/package-metadata.json Outdated Show resolved Hide resolved
@marrouchi marrouchi changed the title Plat 594/add smtp env vars for grafana Plat 594/ Replicate prometheus + add smtp env vars for grafana Nov 16, 2022
Copy link
Contributor

@michaelloosen michaelloosen left a comment

Choose a reason for hiding this comment

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

Looking good, just the one comment.

monitoring/docker-compose.cluster.yml Show resolved Hide resolved
Copy link
Contributor

@michaelloosen michaelloosen left a comment

Choose a reason for hiding this comment

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

LGTM

@michaelloosen michaelloosen marked this pull request as draft November 17, 2022 07:50
@michaelloosen michaelloosen marked this pull request as ready for review November 17, 2022 07:50
@michaelloosen michaelloosen marked this pull request as draft November 17, 2022 14:41
@michaelloosen michaelloosen marked this pull request as ready for review November 17, 2022 14:41
@michaelloosen michaelloosen merged commit 9dc12cc into main Nov 21, 2022
@michaelloosen michaelloosen deleted the PLAT-594/add-smtp-env-vars branch November 21, 2022 11:54
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.

4 participants