Skip to content

Commit aef85ea

Browse files
Kiran MovaVishnu Attur
andauthored
update(docs): add instructions for helm template (#65)
* add genrated yamls for easy access * use jsonnet manifests for kubectl install Signed-off-by: kmova <[email protected]> Co-authored-by: Vishnu Attur <[email protected]>
1 parent 87c3231 commit aef85ea

File tree

3 files changed

+34
-42
lines changed

3 files changed

+34
-42
lines changed

README.md

Lines changed: 31 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,87 @@
11
# OpenEBS Monitoring add-on
2-
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fopenebs%2Fmonitoring.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fopenebs%2Fmonitoring?ref=badge_shield)
3-
42

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+
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fopenebs%2Fmonitoring.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fopenebs%2Fmonitoring?ref=badge_shield)
84

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/).
116

127
## Status
138

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).
1511

16-
## Usage
1712

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
2016

21-
Once Helm is set up properly, add the repo as follows:
17+
Setup the monitoring helm repository.
2218

2319
```console
2420
helm repo add openebs-monitoring https://openebs.github.io/monitoring/
21+
helm repo update
2522
```
2623

2724
You can then run `helm search repo openebs-monitoring` to see the charts.
2825

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
3629
```
3730

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).
3932

40-
#### Install openebs-addon-only
33+
### Using kubectl
4134

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).
4736

37+
## Usage
4838

49-
#### Accessing Grafana
39+
### Accessing Grafana
5040

5141
```console
5242
# Look at the grafana pod and check that the pod is in running state
5343
kubectl get pods -n [NAMESPACE] | grep -i grafana
5444
# Note the public IP of any one of the nodes
5545
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]
5851
```
5952

6053
**NOTE:** If public IP is not available then you can access it via port-forwarding
6154

6255
```console
6356
# 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]
6659
# Default Grafana login credentials- [username: admin, password: admin]
6760
```
6861

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).
7162

7263
## Contributing
7364

74-
OpenEBS community welcomes your feedback and contributions in any form possible.
65+
OpenEBS welcomes your feedback and contributions in any form possible.
7566

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)
7870
- See [contributing guide](./CONTRIBUTING.md)
7971

8072
## Community
8173

8274
- [Join OpenEBS community on Kubernetes Slack](https://kubernetes.slack.com)
8375
- 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).
8577
- Join our OpenEBS CNCF Mailing lists
8678
- For OpenEBS project updates, subscribe to [OpenEBS Announcements](https://lists.cncf.io/g/cncf-openebs-announcements)
8779
- For interacting with other OpenEBS users, subscribe to [OpenEBS Users](https://lists.cncf.io/g/cncf-openebs-users)
8880

8981
## Code of conduct
9082

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).
9284

9385

9486
## License
95-
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fopenebs%2Fmonitoring.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fopenebs%2Fmonitoring?ref=badge_large)
87+
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fopenebs%2Fmonitoring.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fopenebs%2Fmonitoring?ref=badge_large)

jsonnet/config.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
// Configuration for openebs monitoring
8484
_config+:: {
8585
openebsMonitoring: {
86-
namespace: 'openebs-monitoring',
86+
namespace: 'openebs',
8787
},
8888
// Configuration for different cas types.
8989
openebsMonitoringAddon: {

jsonnet/openebs-mixin/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ else
77
endif
88
JSONNET_FMT := $(JSONNET_FMT_CMD) $(JSONNET_FMT_ARGS)
99

10-
dashboardsDirPath=../../deploy/charts/openebs-monitoring/dashboards
11-
rulessDirPath=../../deploy/charts/openebs-monitoring/rules
10+
dashboardsDirPath=../../deploy/charts/dashboards
11+
rulessDirPath=../../deploy/charts/rules
1212

1313
all: fmt generate lint
1414

0 commit comments

Comments
 (0)