diff --git a/docs/guides/druid/monitoring/images/druid-prometheus.png b/docs/guides/druid/monitoring/images/druid-prometheus.png new file mode 100644 index 0000000000..5d6d83ed1b Binary files /dev/null and b/docs/guides/druid/monitoring/images/druid-prometheus.png differ diff --git a/docs/guides/druid/monitoring/using-builtin-prometheus.md b/docs/guides/druid/monitoring/using-builtin-prometheus.md index a59d475fa2..1d1fc73509 100644 --- a/docs/guides/druid/monitoring/using-builtin-prometheus.md +++ b/docs/guides/druid/monitoring/using-builtin-prometheus.md @@ -341,7 +341,7 @@ Forwarding from [::1]:9090 -> 9090 Now, we can access the dashboard at `localhost:9090`. Open [http://localhost:9090](http://localhost:9090) in your browser. You should see the endpoint of `druid-with-monitoring-stats` service as one of the targets.
- +
Check the labels marked with red rectangle. These labels confirm that the metrics are coming from `Druid` cluster `druid-with-monitoring` through stats service `druid-with-monitoring-stats`. diff --git a/docs/guides/druid/monitoring/using-prometheus-operator.md b/docs/guides/druid/monitoring/using-prometheus-operator.md index d569b0230d..2a095b1f4c 100644 --- a/docs/guides/druid/monitoring/using-prometheus-operator.md +++ b/docs/guides/druid/monitoring/using-prometheus-operator.md @@ -187,7 +187,7 @@ Here, Let's create the druid object that we have shown above, ```bash -$ kubectl create -f https://github.com/kubedb/docs/raw/{{< param "info.version" >}}/docs/examples/druid/monitoring/druid-with-monirtoring.yaml +$ kubectl create -f https://github.com/kubedb/docs/raw/{{< param "info.version" >}}/docs/examples/druid/monitoring/yamls/druid-with-monirtoring.yaml druids.kubedb.com/druid-with-monitoring created ``` @@ -220,20 +220,20 @@ $ kubectl describe svc -n demo druid-with-monitoring-stats Name: druid-with-monitoring-stats Namespace: demo Labels: app.kubernetes.io/component=database - app.kubernetes.io/instance=druid-with-monitoring - app.kubernetes.io/managed-by=kubedb.com - app.kubernetes.io/name=druids.kubedb.com - kubedb.com/role=stats + app.kubernetes.io/instance=druid-with-monitoring + app.kubernetes.io/managed-by=kubedb.com + app.kubernetes.io/name=druids.kubedb.com + kubedb.com/role=stats Annotations: monitoring.appscode.com/agent: prometheus.io/operator Selector: app.kubernetes.io/instance=druid-with-monitoring,app.kubernetes.io/managed-by=kubedb.com,app.kubernetes.io/name=druids.kubedb.com Type: ClusterIP IP Family Policy: SingleStack IP Families: IPv4 -IP: 10.96.235.251 -IPs: 10.96.235.251 -Port: metrics 9091/TCP +IP: 10.96.29.174 +IPs: 10.96.29.174 +Port: metrics 9104/TCP TargetPort: metrics/TCP -Endpoints: 10.244.0.117:56790,10.244.0.119:56790,10.244.0.121:56790 +Endpoints: 10.244.0.68:9104,10.244.0.71:9104,10.244.0.72:9104 + 2 more... Session Affinity: None Events:- +
Check the `endpoint` and `service` labels. It verifies that the target is our expected database. Now, you can view the collected metrics and create a graph from homepage of this Prometheus dashboard. You can also use this Prometheus server as data source for [Grafana](https://grafana.com/) and create a beautiful dashboard with collected metrics.