Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prashant-shahi/dgraph-prometheus-grafana
https://github.com/prashant-shahi/dgraph-prometheus-grafana
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/prashant-shahi/dgraph-prometheus-grafana
- Owner: prashant-shahi
- Created: 2019-07-23T14:40:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-30T11:46:14.000Z (over 5 years ago)
- Last Synced: 2024-10-05T16:41:37.894Z (3 months ago)
- Language: Shell
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dgraph-Prometheus-Grafana
Instructions to setup Prometheus and Grafana for a Dgraph cluster.
## Installation
Follow the steps below to setup prometheus and grafana for your Dgraph cluster :
- Clone this repository and change the directory.
```sh
git clone https://github.com/prashant-shahi/dgraph-prometheus-grafana.gitcd dgraph-prometheus-grafana
```
- Open **configrations.json** in your favourite text editor and modify the file if required.
```sh
vim configrations.json
```
- Make `install.sh` file executable and run.
```sh
chmod +x install.shsudo ./install.sh
```*Note:*
- *For Dgraph zero, 6080 is the default http endpoint exposing metrics.*
- *For Dgraph alpha, 8080 is the default http endpoint exposing metrics.*## Running
Follow the steps below to run prometheus :
- Change current directory to prometheus directory.
```sh
cd /opt/prometheus*
```
- Verify that the correct configurations has been generated.
```sh
cat prometheus.yml
```
- Run prometheus.
```sh
./prometheus
```Let's open another terminal and follow the steps below to run grafana :
- Change current directory to grafana directory.
```sh
cd /opt/grafana*
```
- Run grafana.
```sh
./bin/grafana-server
```