Prometheus, Grafana, and Alert Manager

Use Prometheus, Grafana, and Alertmanager when you deploy the CDM.

After you’ve finished deploying the CDM, you can use the CDM as a sandbox to explore deployment with a different monitoring and alerting framework.

Remember, the CDM is a reference implementation and not for production use. When you create a project plan, you’ll need to determine how to monitor and send alerts in your production deployment.

To deploy Prometheus, Grafana, and Alertmanager:

  1. Deploy Prometheus, Grafana, and Alertmanager in your cluster. You can safely ignore info: skipping unknown hook: "crd-install" messages:

    $ /path/to/forgeops/bin/
    namespace/monitoring created
    "stable" has been added to your repositories
    Release "prometheus-operator" does not exist. Installing it now.
    manifest_sorter.go:175: info: skipping unknown hook: "crd-install"
    . . .
    NAME: prometheus-operator
    LAST DEPLOYED: Mon Aug 17 16:47:45 2020
    NAMESPACE: monitoring
    STATUS: deployed
    . . . condition met condition met condition met condition met condition met
    Release "forgerock-metrics" does not exist. Installing it now.
    NAME: forgerock-metrics
    LAST DEPLOYED: Mon Aug 17 16:48:27 2020
    NAMESPACE: monitoring
    STATUS: deployed
    TEST SUITE: None
  2. Check the status of the pods in the monitoring namespace until all the pods are ready:

    $ kubectl get pods --namespace monitoring
    NAME                                                  READY STATUS    RESTARTS AGE
    alertmanager-prometheus-operator-alertmanager-0       2/2   Running   0        5m8s
    prometheus-operator-grafana-7b8598c98f-glhmn          2/2   Running   0        5m16s
    prometheus-operator-kube-state-metrics-. . .          1/1   Running   0        5m16s
    prometheus-operator-operator-55966c69dd-76v46         2/2   Running   0        5m16s
    prometheus-operator-prometheus-node-exporter-2tc48    1/1   Running   0        3m31s
    prometheus-operator-prometheus-node-exporter-4p4mr    1/1   Running   0        3m31s
    prometheus-operator-prometheus-node-exporter-4vz75    1/1   Running   0        3m31s
    prometheus-operator-prometheus-node-exporter-5vbnw    1/1   Running   0        3m32s
    prometheus-operator-prometheus-node-exporter-9vflt    1/1   Running   0        3m31s
    prometheus-operator-prometheus-node-exporter-bhmzn    1/1   Running   0        3m31s
    prometheus-operator-prometheus-node-exporter-hdjqm    1/1   Running   0        3m31s
    prometheus-operator-prometheus-node-exporter-hxwzw    1/1   Running   0        3m31s
    prometheus-operator-prometheus-node-exporter-kbrm9    1/1   Running   0        3m31s
    prometheus-operator-prometheus-node-exporter-ktpfs    1/1   Running   0        3m31s
    prometheus-operator-prometheus-node-exporter-sm85n    1/1   Running   0        3m31s
    prometheus-operator-prometheus-node-exporter-xntgk    1/1   Running   0        3m31s
    prometheus-prometheus-operator-prometheus-0           3/3   Running   1        4m57s

Next Step