@@ -17,15 +17,15 @@ interested in:
17
17
## Idea
18
18
Promtimer:
19
19
20
- 1 . When running against cbcollects, starts a Prometheus server for each
20
+ 1 . When running against cbcollects, starts a Prometheus server for each
21
21
cbcollect you are interested in exploring. (When run against a live
22
22
cluster this step is not necessary.)
23
- 1 . Generates a convenient Grafana configuration with anonymous login, a
23
+ 1 . Generates a convenient Grafana configuration with anonymous login, a
24
24
custom home dashboard, data sources and dashboards.
25
25
1 . Starts Grafana allowing you to login and browse dashboards that collect
26
26
metrics from across each node in the cluster.
27
27
1 . Creates dashboard annotations based on important events that happened in
28
- the cbcollect, taking information from the ` diag.log ` (or from an
28
+ the cbcollect, taking information from the ` diag.log ` (or from an
29
29
` events.log ` file generated by the Event Logger) or from the ` /logs ` REST
30
30
API.
31
31
@@ -45,9 +45,9 @@ For offline browsing of stats, you will additionally need:
45
45
* (Optional) Event Logger from [ cbmultimanager] ( https://github.com/couchbaselabs/cbmultimanager )
46
46
if you wish to generate an ` events.log ` file
47
47
48
- If you happen to be building Couchbase Server 7.0 or later, you will already
49
- have a Prometheus binary: it's in the ` install/bin ` directory of one of your
50
- local builds. If you don't, the [ Getting Started] ( https://prometheus.io/docs/introduction/first_steps/ )
48
+ If you happen to be building Couchbase Server 7.0 or later, you will already
49
+ have a Prometheus binary: it's in the ` install/bin ` directory of one of your
50
+ local builds. If you don't, the [ Getting Started] ( https://prometheus.io/docs/introduction/first_steps/ )
51
51
instructions on the Prometheus website are comprehensive. You don't actually
52
52
need to install Prometheus, you just need the binary. [ Downloading] ( https://prometheus.io/download/ )
53
53
and unzipping the pre-compiled binaries for your platform is sufficient.
@@ -56,7 +56,7 @@ If you're on Mac,`brew` is convenient:
56
56
57
57
brew install prometheus
58
58
59
- It's also possible to build Prometheus from source yourself. This is
59
+ It's also possible to build Prometheus from source yourself. This is
60
60
straightforward:
61
61
62
62
```
@@ -65,9 +65,9 @@ cd prometheus
65
65
make prometheus
66
66
```
67
67
68
- You'll need a full Grafana install. The ` grafana-server ` binary alone isn't
69
- sufficient as Grafana ships with many configuration files.
70
- [ Installation instructions] ( https://grafana.com/docs/grafana/latest/installation/ )
68
+ You'll need a full Grafana install. The ` grafana-server ` binary alone isn't
69
+ sufficient as Grafana ships with many configuration files.
70
+ [ Installation instructions] ( https://grafana.com/docs/grafana/latest/installation/ )
71
71
on the Grafana website look comprehensive. Follow the instructions for your
72
72
platform to get a recent version of Grafana. On Mac, it's easy:
73
73
@@ -78,10 +78,16 @@ To get Promtimer, clone this repo locally:
78
78
git clone https://github.com/couchbaselabs/promtimer.git
79
79
80
80
As to cbcollects, you probably wouldn't be reading this if you didn't already
81
- have them.
81
+ have them.
82
82
83
- ## How to Use Promtimer for Offline Analysis
83
+ ### cbbackupmgr stats files
84
+ For visualisation of cbbackupmgr stats files, you'll also need access to the private
85
+ ` backup ` repository in order to use the ` cbmstatparser ` utility. You'll need to
86
+ either add the cbmstatparser binary to your path or manually specify it with the
87
+ ` --cbmstatparser-path ` flag.
84
88
89
+ ## How to Use Promtimer for Offline Analysis
90
+ ### Visualising CBCollects
85
91
Assemble the cbcollects in a directory. It's fine if you unzip them, but it's not
86
92
necessary.
87
93
@@ -113,6 +119,27 @@ The Grafana dashboards page should open for you automatically. If not, navigate
113
119
to ` localhost:13300/dashboards ` in your browser and begin exploring the
114
120
available dashboards.
115
121
122
+ ### Visualising cbbackupmgr stats files
123
+ Ensure that you have access to either a backup archive or a cbbackupmgr collect zip
124
+ file.
125
+
126
+ Start Promtimer:
127
+
128
+ ``` bash
129
+ promtimer --backup-archive-path < path-to-backup-archive-or-zip>
130
+ ```
131
+
132
+ The above command assumes that ` cbmstatparser ` is available on your PATH. If it isn't,
133
+ you'll need to specify the location of the ` cbmstatparser ` binary manually via the
134
+ ` --cbmstatparser-path ` flag.
135
+
136
+ The ` path-to-backup-archive-or-zip ` specifies the path to either a backup archive or to
137
+ a cbbackupmgr collect zip file.
138
+
139
+ The Grafana dashboards page should open for you automatically. If not, navigate
140
+ to ` localhost:13300/dashboards ` in your browser and begin exploring the
141
+ available dashboards.
142
+
116
143
## How to Use Promtimer for Online Monitoring
117
144
118
145
Start Promtimer and provide the URL to the cluster and the name of the user that
@@ -130,8 +157,8 @@ the `/logs` REST API in the online case) and create dashboard annotations in Gra
130
157
for important system events.
131
158
132
159
As an option, Promtimer also supports the creating annotations based on an ` events.log `
133
- file for system events generated by the Event Logger in the
134
- [ cbmultimanager] ( https://github.com/couchbaselabs/cbmultimanager ) repository. Read
160
+ file for system events generated by the Event Logger in the
161
+ [ cbmultimanager] ( https://github.com/couchbaselabs/cbmultimanager ) repository. Read
135
162
[ here] ( EVENTS.md ) for more information on the Event Logger.
136
163
137
164
## Clean Up
0 commit comments