You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ki...@apache.org on 2020/07/31 00:30:59 UTC

[trafficserver-ingress-controller] branch master updated: Update readme (#34)

This is an automated email from the ASF dual-hosted git repository.

kichan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver-ingress-controller.git


The following commit(s) were added to refs/heads/master by this push:
     new 743ab48  Update readme (#34)
743ab48 is described below

commit 743ab4851bef5ab0b0ac68840bad565ec8c12342
Author: Rishabh Chhabra <ri...@gmail.com>
AuthorDate: Thu Jul 30 19:30:51 2020 -0500

    Update readme (#34)
    
    * Fixes configmap typo in readme
    
    * Adds grafana walkthrough
    
    * Modifies image
    
    * Modifies readme
    
    * Modifies readme
    
    * Removes images
    
    * Removes extraneous text from readme and DS_Store
---
 README.md                          |  18 ++++++++++++++----
 docs/images/datasource-success.png | Bin 0 -> 103861 bytes
 docs/images/new-datasource.png     | Bin 0 -> 95425 bytes
 docs/images/new-graph.png          | Bin 0 -> 406834 bytes
 4 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index f8d4d29..689dcca 100644
--- a/README.md
+++ b/README.md
@@ -159,7 +159,7 @@ As can be seen from the default configuration file, Fluentd reads the Apache Tra
 
 #### Prometheus and Grafana
 
-Use the following steps to install [Prometheus](https://prometheus.io/docs/prometheus/latest/getting_started/) and [Grafana](https://grafana.com/docs/grafana/latest/) and use them to monitor the Apache Traffic Server statistics:
+##### Example Walkthrough
 
 1. `$ kubectl apply -f k8s/prometheus/ats-stats.yaml`
   - Creates a new service which connects to the ATS pod on port 9122. This service will be used by Prometheus to read the Apache Traffic Server stats.  
@@ -167,9 +167,19 @@ Use the following steps to install [Prometheus](https://prometheus.io/docs/prome
   - Creates a new configmap which holds the configuration file for Prometheus. You can modify this configuration file to suit your needs. More about that can be read [here](https://prometheus.io/docs/prometheus/latest/configuration/configuration/)
 3. `$ kubectl apply -f k8s/prometheus/prometheus-deployment.yaml`
   - Creates a new deployment consisting of Prometheus and Grafana. Also creates two new services to access prometheus and grafana. 
-4. Open `192.168.x.x:30090` in your web browser to access Prometheus where `192.168.x.x` is the IP returned by the command: `$ minikube ip` 
-5. Open `192.168.x.x:30030` in your web browser to access the Grafana dashboard where `192.168.x.x` is the IP returned by the command: `$ minikube ip`. 
-6. To use Prometheus as a datasource for Grafana, please read [this](https://prometheus.io/docs/visualization/grafana/#using). The URL on which Grafana can access Prometheus is `localhost:9090`
+4. Open `x.x.x.x:30090` in your web browser to access Prometheus where `x.x.x.x` is the IP returned by the command: `$ minikube ip` 
+5. Open `x.x.x.x:30030` in your web browser to access the Grafana dashboard where `x.x.x.x` is the IP returned by the command: `$ minikube ip`.
+6. The default credentials for logging into Grafana are `admin:admin`
+7. Click on `Add your first data source' and select Prometheus under the 'Time series databases category'
+8. Set an appropriate name for the data source and enter `localhost:9090` as the URL
+  ![New Datasource](docs/images/new-datasource.png)
+9. Click on 'Save & Test'. If everything has been installed correctly you should get a notification saying 'Data source is working'
+  ![Datasource add success](docs/images/datasource-success.png) 
+10. Click on the '+' icon in the left handside column and select 'Dashboard'
+11. Click on '+ Add new panel'
+12. Enter a PromQL query. For example if you want to add a graph showing the total number of responses over time enter `trafficserver_responses_total` and press Shift + Enter.
+  ![New Graph](docs/images/new-graph.png)
+13. Click on Apply to add the graph to your dashboard. You can similarly make add more graphs to your dashboard to suit your needs. To learn more about Grafana click [here](https://grafana.com/docs/grafana/latest/)
 
 ## Development
 
diff --git a/docs/images/datasource-success.png b/docs/images/datasource-success.png
new file mode 100644
index 0000000..c1eac7d
Binary files /dev/null and b/docs/images/datasource-success.png differ
diff --git a/docs/images/new-datasource.png b/docs/images/new-datasource.png
new file mode 100644
index 0000000..1bfa7ae
Binary files /dev/null and b/docs/images/new-datasource.png differ
diff --git a/docs/images/new-graph.png b/docs/images/new-graph.png
new file mode 100644
index 0000000..b12a335
Binary files /dev/null and b/docs/images/new-graph.png differ