Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Rudro-25 <[email protected]>
  • Loading branch information
Rudro-25 committed Nov 15, 2024
1 parent 07ff28c commit da4b938
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Events: <none>
You can see that the service contains following annotations.

```bash
prometheus.io/path: /metrics
prometheus.io/path: /metrics
prometheus.io/port: 7000
prometheus.io/scrape: true
```
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/zookeeper/monitoring/using-prometheus-operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ Now, wait for the database to go into `Running` state.
```bash
$ kubectl get zk -n demo zookeeper
NAME VERSION STATUS AGE
zookeeper 3.13.2 Ready 34s
zookeeper 3.8.3 Ready 34s
```

KubeDB will create a separate stats service with name `{ZooKeeper crd name}-stats` for monitoring purpose.
Expand Down Expand Up @@ -334,7 +334,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 `metrics` endpoint of `zookeeper-stats` service as one of the targets.

<p align="center">
  <img alt="Prometheus Target" src="/docs/images/zookeeper/zookeeper-promethues.png" style="padding:10px">
  <img alt="Prometheus Target" src="/docs/images/zookeeper/zookeeper-prometheus.png" style="padding:10px">
</p>

Check the `endpoint` and `service` labels marked by the red rectangles. 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.
Expand Down

0 comments on commit da4b938

Please sign in to comment.