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

High Availability Setup (Spec) #1

Open
1 of 5 tasks
ntk148v opened this issue Jul 24, 2018 · 1 comment
Open
1 of 5 tasks

High Availability Setup (Spec) #1

ntk148v opened this issue Jul 24, 2018 · 1 comment

Comments

@ntk148v
Copy link
Owner

ntk148v commented Jul 24, 2018

HA Architecture (Quick Draft)

ha-architecture

  • Grafana HA under Loadbalancer (Haproxy/Nginx)

  • To run Prometheus in a highly available manner, two (or more) instances need to be running with the same configuration, that means they scrape the same targets, which in turn means they will have the same data in memory and on disk, which in turn means they are answering requests the same way. These Prometheus instance is under Loadbalancer (Haproxy/Nginx).

  • Prometheus instances only point to Grafana 1st instance as its data source. When Grafana 1st goes down, update existing datasource to Grafana 2nd instance.

  • Alertmanager HA solution.

How to implement it? Here is the useful links to follow.

Things to do - Work items

  • Update prometheus.yaml template if multiple prometheus and alertmanager was defined in inventory.

  • Update Grafana datasource config.

  • Add one more service to docker-compose: MySQL as Grafana dashboard database. Allow user to config it with grafana_database even it's in single mode.

  • Setup Loadbalancers with Grafana and Promtheus instances as backend.

  • Alertmanager HA config and setup!

Refer

@ntk148v
Copy link
Owner Author

ntk148v commented Jul 25, 2018

  • Loadbalancer: HaProxy + Keepalived.

    • Create role to setup HAProxy + Keepalived.
    • Update inventory.
  • Grafana dashboard database.

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

No branches or pull requests

1 participant