|
1 | 1 | # OpenEBS Monitoring add-on |
2 | | -[](https://app.fossa.com/projects/git%2Bgithub.com%2Fopenebs%2Fmonitoring?ref=badge_shield) |
3 | | - |
4 | 2 |
|
5 | | -This repository contains monitoring-related (like Prometheus, grafana, etc,) artifacts like helm charts/ YAMLs. The goal of this repository is to provide an easy to setup monitoring stack for OpenEBS. |
6 | | - |
7 | | -This repository will aggregate all the monitoring related artifacts that are currently spread across multiple repositories like: |
| 3 | +[](https://app.fossa.com/projects/git%2Bgithub.com%2Fopenebs%2Fmonitoring?ref=badge_shield) |
8 | 4 |
|
9 | | -- https://github.com/openebs/openebs/tree/master/k8s |
10 | | -- https://github.com/openebs/charts/tree/gh-pages/grafana-charts |
| 5 | +A set of Grafana dashboards and Prometheus alerts for OpenEBS that can be installed as a [helm chart](./deploy/charts/) or imported as [jsonnet mixin](./jsonnet/). |
11 | 6 |
|
12 | 7 | ## Status |
13 | 8 |
|
14 | | -Pre-alpha. Under active development. |
| 9 | +**Beta**. This repository currently supports dashboards and alerts for `cStor`, `Jiva`, `LVM LocalPV` OpenEBS storage engines. |
| 10 | +This project is under active development and seeking [contributions from the community](#contributing). |
15 | 11 |
|
16 | | -## Usage |
17 | 12 |
|
18 | | -[Helm](https://helm.sh) must be installed to use the charts. |
19 | | -Please refer to Helm's [documentation](https://helm.sh/docs/) to get started. |
| 13 | +## Install |
| 14 | + |
| 15 | +### Using helm |
20 | 16 |
|
21 | | -Once Helm is set up properly, add the repo as follows: |
| 17 | +Setup the monitoring helm repository. |
22 | 18 |
|
23 | 19 | ```console |
24 | 20 | helm repo add openebs-monitoring https://openebs.github.io/monitoring/ |
| 21 | +helm repo update |
25 | 22 | ``` |
26 | 23 |
|
27 | 24 | You can then run `helm search repo openebs-monitoring` to see the charts. |
28 | 25 |
|
29 | | -#### Install Chart |
30 | | - |
31 | | -Please visit the [link](https://openebs.github.io/monitoring/) for install instructions via helm3. |
32 | | - |
33 | | -```console |
34 | | -# Helm |
35 | | -helm install [RELEASE_NAME] openebs-monitoring/openebs-monitoring --namespace [NAMESPACE] --create-namespace |
| 26 | +Install the helm chart. |
| 27 | +``` |
| 28 | +helm install openebs-monitoring openebs-monitoring/openebs-monitoring --namespace openebs --create-namespace |
36 | 29 | ``` |
37 | 30 |
|
38 | | -_See [helm install](https://helm.sh/docs/helm/helm_install/) for command documentation._ |
| 31 | +The detailed chart documentation is available in [charts directory](/deploy/charts/README.md). |
39 | 32 |
|
40 | | -#### Install openebs-addon-only |
| 33 | +### Using kubectl |
41 | 34 |
|
42 | | -```console |
43 | | -#Helm |
44 | | -helm install [RELEASE_NAME] openebs-monitoring/openebs-monitoring -n [PROMETHEUS-STACK-NAMESPACE] --set kube-prometheus-stack.install=false |
45 | | -``` |
46 | | -Please visit the [link](/docs/guide.md) for more detailed instructions. |
| 35 | +You can generate YAMLs and install using kubectl. See detailed steps at [./jsonnet](/jsonnet/README.md). |
47 | 36 |
|
| 37 | +## Usage |
48 | 38 |
|
49 | | -#### Accessing Grafana |
| 39 | +### Accessing Grafana |
50 | 40 |
|
51 | 41 | ```console |
52 | 42 | # Look at the grafana pod and check that the pod is in running state |
53 | 43 | kubectl get pods -n [NAMESPACE] | grep -i grafana |
54 | 44 | # Note the public IP of any one of the nodes |
55 | 45 | kubectl get nodes -o wide |
56 | | -# Open browser and visit http://<NodeIp>:<NodePort> (where <NodeIp> is the public IP address of your node, and default Grafana <NodePort> is 32515) |
57 | | -# Default Grafana login credentials- [username: admin, password: admin] |
| 46 | +# Note the Grafana Service IP |
| 47 | +kubectl get svc -n [NAMESPACE] | grep -i grafana |
| 48 | +# Open browser and visit http://<NodeIp>:<NodePort> |
| 49 | +# (where <NodeIp> is the public IP address of your node, and <NodePort> is Grafana Service Port) |
| 50 | +# Default Grafana login credentials- [username: admin, password: admin] |
58 | 51 | ``` |
59 | 52 |
|
60 | 53 | **NOTE:** If public IP is not available then you can access it via port-forwarding |
61 | 54 |
|
62 | 55 | ```console |
63 | 56 | # Perform port-forwarding |
64 | | -kubectl port-forward --namespace [NAMESPACE] pods/[grafana-pod-name] 32515:3000 |
65 | | -# Open browser and visit http://127.0.0.1:32515 |
| 57 | +# kubectl port-forward --namespace [NAMESPACE] pods/[grafana-pod-name] [grafrana-foward-port]:[grafana-cluster-port] |
| 58 | +# Open browser and visit http://127.0.0.1:[grafana-forward-port] |
66 | 59 | # Default Grafana login credentials- [username: admin, password: admin] |
67 | 60 | ``` |
68 | 61 |
|
69 | | -<!-- Keep full URL links to repo files because this README syncs from main to gh-pages. --> |
70 | | -The detailed chart documentation is available in [charts directory](/deploy/charts/README.md). |
71 | 62 |
|
72 | 63 | ## Contributing |
73 | 64 |
|
74 | | -OpenEBS community welcomes your feedback and contributions in any form possible. |
| 65 | +OpenEBS welcomes your feedback and contributions in any form possible. |
75 | 66 |
|
76 | | -Want to raise an issue or help with fixes and features? |
77 | | -- See [open issues](https://github.com/openebs/openebs/issues) |
| 67 | +- Want to raise an issue or help with fixes and features? |
| 68 | + - See [open issues](https://github.com/openebs/monitoring/issues) |
| 69 | + - See [Project Roadmap](https://github.com/orgs/openebs/projects/41) |
78 | 70 | - See [contributing guide](./CONTRIBUTING.md) |
79 | 71 |
|
80 | 72 | ## Community |
81 | 73 |
|
82 | 74 | - [Join OpenEBS community on Kubernetes Slack](https://kubernetes.slack.com) |
83 | 75 | - Already signed up? Head to our discussions at [#openebs](https://kubernetes.slack.com/messages/openebs/) |
84 | | - - Want to join our contributor community meetings, [check this out](https://github.com/openebs/openebs/blob/master/community/README.md). |
| 76 | + - Want to join our contributor community meetings, [check this out](https://github.com/openebs/openebs/blob/HEAD/community/README.md). |
85 | 77 | - Join our OpenEBS CNCF Mailing lists |
86 | 78 | - For OpenEBS project updates, subscribe to [OpenEBS Announcements](https://lists.cncf.io/g/cncf-openebs-announcements) |
87 | 79 | - For interacting with other OpenEBS users, subscribe to [OpenEBS Users](https://lists.cncf.io/g/cncf-openebs-users) |
88 | 80 |
|
89 | 81 | ## Code of conduct |
90 | 82 |
|
91 | | -Participation in the OpenEBS community is governed by the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). |
| 83 | +Participation in the OpenEBS community is governed by the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/HEAD/code-of-conduct.md). |
92 | 84 |
|
93 | 85 |
|
94 | 86 | ## License |
95 | | -[](https://app.fossa.com/projects/git%2Bgithub.com%2Fopenebs%2Fmonitoring?ref=badge_large) |
| 87 | +[](https://app.fossa.com/projects/git%2Bgithub.com%2Fopenebs%2Fmonitoring?ref=badge_large) |
0 commit comments