├── Dockerfile ├── LICENSE ├── README.md ├── grafana ├── config.js.tpl ├── rbx-dash.json └── setup.sh ├── influxdb └── setup.sh ├── nginx └── nginx.conf ├── statsd └── config.js └── supervisord └── supervisord.conf /Dockerfile: -------------------------------------------------------------------------------- 1 | 2 | FROM ubuntu:14.04 3 | 4 | # statsd udp data (send rbx data to this port) 5 | EXPOSE 8125/udp 6 | # statsd management 7 | EXPOSE 8126 8 | # influxdb management UI 9 | EXPOSE 8083 10 | # influxdb API 11 | EXPOSE 8086 12 | # grafana dashboard UI 13 | EXPOSE 80 14 | 15 | # Install some basic utilities with the OS package manager 16 | RUN apt-get update -y && apt-get upgrade -y 17 | RUN apt-get install -y wget curl python-pip supervisor nginx-light npm 18 | RUN pip install envtpl 19 | 20 | # Install statsd and backend and configuration 21 | RUN npm -g install statsd 22 | RUN npm -g install statsd-influxdb-backend 23 | ADD statsd/config.js /statsd/config.js 24 | # Symbolic link because statsd expects a binary called `node` 25 | RUN ln -s /usr/bin/nodejs /usr/bin/node 26 | 27 | # Install influxdb and setup script 28 | RUN wget http://s3.amazonaws.com/influxdb/influxdb_latest_amd64.deb 29 | RUN dpkg -i influxdb_latest_amd64.deb 30 | ADD influxdb/setup.sh /influxdb/setup.sh 31 | # Set up influxdb and create the databases 32 | RUN influxdb/setup.sh 33 | 34 | # Install grafana and configuration 35 | RUN mkdir /src 36 | RUN wget http://grafanarel.s3.amazonaws.com/grafana-1.9.0.tar.gz -O /src/grafana.tar.gz 37 | RUN cd /src && tar -xvf grafana.tar.gz && mv grafana-1.9.0 grafana 38 | ADD grafana/config.js.tpl /src/grafana/config.js.tpl 39 | ADD grafana/rbx-dash.json /src/grafana/app/dashboards/rbx-dash.json 40 | ADD grafana/setup.sh /src/grafana/setup.sh 41 | # Add nginx configuration 42 | ADD nginx/nginx.conf /etc/nginx/nginx.conf 43 | 44 | # Add supervisord configuration and set default command for `docker run` 45 | ADD supervisord/supervisord.conf /etc/supervisor/conf.d/supervisord.conf 46 | CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] 47 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Mozilla Public License, version 2.0 2 | 3 | 1. Definitions 4 | 5 | 1.1. "Contributor" 6 | 7 | means each individual or legal entity that creates, contributes to the 8 | creation of, or owns Covered Software. 9 | 10 | 1.2. "Contributor Version" 11 | 12 | means the combination of the Contributions of others (if any) used by a 13 | Contributor and that particular Contributor's Contribution. 14 | 15 | 1.3. "Contribution" 16 | 17 | means Covered Software of a particular Contributor. 18 | 19 | 1.4. "Covered Software" 20 | 21 | means Source Code Form to which the initial Contributor has attached the 22 | notice in Exhibit A, the Executable Form of such Source Code Form, and 23 | Modifications of such Source Code Form, in each case including portions 24 | thereof. 25 | 26 | 1.5. "Incompatible With Secondary Licenses" 27 | means 28 | 29 | a. that the initial Contributor has attached the notice described in 30 | Exhibit B to the Covered Software; or 31 | 32 | b. that the Covered Software was made available under the terms of 33 | version 1.1 or earlier of the License, but not also under the terms of 34 | a Secondary License. 35 | 36 | 1.6. "Executable Form" 37 | 38 | means any form of the work other than Source Code Form. 39 | 40 | 1.7. "Larger Work" 41 | 42 | means a work that combines Covered Software with other material, in a 43 | separate file or files, that is not Covered Software. 44 | 45 | 1.8. "License" 46 | 47 | means this document. 48 | 49 | 1.9. "Licensable" 50 | 51 | means having the right to grant, to the maximum extent possible, whether 52 | at the time of the initial grant or subsequently, any and all of the 53 | rights conveyed by this License. 54 | 55 | 1.10. "Modifications" 56 | 57 | means any of the following: 58 | 59 | a. any file in Source Code Form that results from an addition to, 60 | deletion from, or modification of the contents of Covered Software; or 61 | 62 | b. any new file in Source Code Form that contains any Covered Software. 63 | 64 | 1.11. "Patent Claims" of a Contributor 65 | 66 | means any patent claim(s), including without limitation, method, 67 | process, and apparatus claims, in any patent Licensable by such 68 | Contributor that would be infringed, but for the grant of the License, 69 | by the making, using, selling, offering for sale, having made, import, 70 | or transfer of either its Contributions or its Contributor Version. 71 | 72 | 1.12. "Secondary License" 73 | 74 | means either the GNU General Public License, Version 2.0, the GNU Lesser 75 | General Public License, Version 2.1, the GNU Affero General Public 76 | License, Version 3.0, or any later versions of those licenses. 77 | 78 | 1.13. "Source Code Form" 79 | 80 | means the form of the work preferred for making modifications. 81 | 82 | 1.14. "You" (or "Your") 83 | 84 | means an individual or a legal entity exercising rights under this 85 | License. For legal entities, "You" includes any entity that controls, is 86 | controlled by, or is under common control with You. For purposes of this 87 | definition, "control" means (a) the power, direct or indirect, to cause 88 | the direction or management of such entity, whether by contract or 89 | otherwise, or (b) ownership of more than fifty percent (50%) of the 90 | outstanding shares or beneficial ownership of such entity. 91 | 92 | 93 | 2. License Grants and Conditions 94 | 95 | 2.1. Grants 96 | 97 | Each Contributor hereby grants You a world-wide, royalty-free, 98 | non-exclusive license: 99 | 100 | a. under intellectual property rights (other than patent or trademark) 101 | Licensable by such Contributor to use, reproduce, make available, 102 | modify, display, perform, distribute, and otherwise exploit its 103 | Contributions, either on an unmodified basis, with Modifications, or 104 | as part of a Larger Work; and 105 | 106 | b. under Patent Claims of such Contributor to make, use, sell, offer for 107 | sale, have made, import, and otherwise transfer either its 108 | Contributions or its Contributor Version. 109 | 110 | 2.2. Effective Date 111 | 112 | The licenses granted in Section 2.1 with respect to any Contribution 113 | become effective for each Contribution on the date the Contributor first 114 | distributes such Contribution. 115 | 116 | 2.3. Limitations on Grant Scope 117 | 118 | The licenses granted in this Section 2 are the only rights granted under 119 | this License. No additional rights or licenses will be implied from the 120 | distribution or licensing of Covered Software under this License. 121 | Notwithstanding Section 2.1(b) above, no patent license is granted by a 122 | Contributor: 123 | 124 | a. for any code that a Contributor has removed from Covered Software; or 125 | 126 | b. for infringements caused by: (i) Your and any other third party's 127 | modifications of Covered Software, or (ii) the combination of its 128 | Contributions with other software (except as part of its Contributor 129 | Version); or 130 | 131 | c. under Patent Claims infringed by Covered Software in the absence of 132 | its Contributions. 133 | 134 | This License does not grant any rights in the trademarks, service marks, 135 | or logos of any Contributor (except as may be necessary to comply with 136 | the notice requirements in Section 3.4). 137 | 138 | 2.4. Subsequent Licenses 139 | 140 | No Contributor makes additional grants as a result of Your choice to 141 | distribute the Covered Software under a subsequent version of this 142 | License (see Section 10.2) or under the terms of a Secondary License (if 143 | permitted under the terms of Section 3.3). 144 | 145 | 2.5. Representation 146 | 147 | Each Contributor represents that the Contributor believes its 148 | Contributions are its original creation(s) or it has sufficient rights to 149 | grant the rights to its Contributions conveyed by this License. 150 | 151 | 2.6. Fair Use 152 | 153 | This License is not intended to limit any rights You have under 154 | applicable copyright doctrines of fair use, fair dealing, or other 155 | equivalents. 156 | 157 | 2.7. Conditions 158 | 159 | Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in 160 | Section 2.1. 161 | 162 | 163 | 3. Responsibilities 164 | 165 | 3.1. Distribution of Source Form 166 | 167 | All distribution of Covered Software in Source Code Form, including any 168 | Modifications that You create or to which You contribute, must be under 169 | the terms of this License. You must inform recipients that the Source 170 | Code Form of the Covered Software is governed by the terms of this 171 | License, and how they can obtain a copy of this License. You may not 172 | attempt to alter or restrict the recipients' rights in the Source Code 173 | Form. 174 | 175 | 3.2. Distribution of Executable Form 176 | 177 | If You distribute Covered Software in Executable Form then: 178 | 179 | a. such Covered Software must also be made available in Source Code Form, 180 | as described in Section 3.1, and You must inform recipients of the 181 | Executable Form how they can obtain a copy of such Source Code Form by 182 | reasonable means in a timely manner, at a charge no more than the cost 183 | of distribution to the recipient; and 184 | 185 | b. You may distribute such Executable Form under the terms of this 186 | License, or sublicense it under different terms, provided that the 187 | license for the Executable Form does not attempt to limit or alter the 188 | recipients' rights in the Source Code Form under this License. 189 | 190 | 3.3. Distribution of a Larger Work 191 | 192 | You may create and distribute a Larger Work under terms of Your choice, 193 | provided that You also comply with the requirements of this License for 194 | the Covered Software. If the Larger Work is a combination of Covered 195 | Software with a work governed by one or more Secondary Licenses, and the 196 | Covered Software is not Incompatible With Secondary Licenses, this 197 | License permits You to additionally distribute such Covered Software 198 | under the terms of such Secondary License(s), so that the recipient of 199 | the Larger Work may, at their option, further distribute the Covered 200 | Software under the terms of either this License or such Secondary 201 | License(s). 202 | 203 | 3.4. Notices 204 | 205 | You may not remove or alter the substance of any license notices 206 | (including copyright notices, patent notices, disclaimers of warranty, or 207 | limitations of liability) contained within the Source Code Form of the 208 | Covered Software, except that You may alter any license notices to the 209 | extent required to remedy known factual inaccuracies. 210 | 211 | 3.5. Application of Additional Terms 212 | 213 | You may choose to offer, and to charge a fee for, warranty, support, 214 | indemnity or liability obligations to one or more recipients of Covered 215 | Software. However, You may do so only on Your own behalf, and not on 216 | behalf of any Contributor. You must make it absolutely clear that any 217 | such warranty, support, indemnity, or liability obligation is offered by 218 | You alone, and You hereby agree to indemnify every Contributor for any 219 | liability incurred by such Contributor as a result of warranty, support, 220 | indemnity or liability terms You offer. You may include additional 221 | disclaimers of warranty and limitations of liability specific to any 222 | jurisdiction. 223 | 224 | 4. Inability to Comply Due to Statute or Regulation 225 | 226 | If it is impossible for You to comply with any of the terms of this License 227 | with respect to some or all of the Covered Software due to statute, 228 | judicial order, or regulation then You must: (a) comply with the terms of 229 | this License to the maximum extent possible; and (b) describe the 230 | limitations and the code they affect. Such description must be placed in a 231 | text file included with all distributions of the Covered Software under 232 | this License. Except to the extent prohibited by statute or regulation, 233 | such description must be sufficiently detailed for a recipient of ordinary 234 | skill to be able to understand it. 235 | 236 | 5. Termination 237 | 238 | 5.1. The rights granted under this License will terminate automatically if You 239 | fail to comply with any of its terms. However, if You become compliant, 240 | then the rights granted under this License from a particular Contributor 241 | are reinstated (a) provisionally, unless and until such Contributor 242 | explicitly and finally terminates Your grants, and (b) on an ongoing 243 | basis, if such Contributor fails to notify You of the non-compliance by 244 | some reasonable means prior to 60 days after You have come back into 245 | compliance. Moreover, Your grants from a particular Contributor are 246 | reinstated on an ongoing basis if such Contributor notifies You of the 247 | non-compliance by some reasonable means, this is the first time You have 248 | received notice of non-compliance with this License from such 249 | Contributor, and You become compliant prior to 30 days after Your receipt 250 | of the notice. 251 | 252 | 5.2. If You initiate litigation against any entity by asserting a patent 253 | infringement claim (excluding declaratory judgment actions, 254 | counter-claims, and cross-claims) alleging that a Contributor Version 255 | directly or indirectly infringes any patent, then the rights granted to 256 | You by any and all Contributors for the Covered Software under Section 257 | 2.1 of this License shall terminate. 258 | 259 | 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user 260 | license agreements (excluding distributors and resellers) which have been 261 | validly granted by You or Your distributors under this License prior to 262 | termination shall survive termination. 263 | 264 | 6. Disclaimer of Warranty 265 | 266 | Covered Software is provided under this License on an "as is" basis, 267 | without warranty of any kind, either expressed, implied, or statutory, 268 | including, without limitation, warranties that the Covered Software is free 269 | of defects, merchantable, fit for a particular purpose or non-infringing. 270 | The entire risk as to the quality and performance of the Covered Software 271 | is with You. Should any Covered Software prove defective in any respect, 272 | You (not any Contributor) assume the cost of any necessary servicing, 273 | repair, or correction. This disclaimer of warranty constitutes an essential 274 | part of this License. No use of any Covered Software is authorized under 275 | this License except under this disclaimer. 276 | 277 | 7. Limitation of Liability 278 | 279 | Under no circumstances and under no legal theory, whether tort (including 280 | negligence), contract, or otherwise, shall any Contributor, or anyone who 281 | distributes Covered Software as permitted above, be liable to You for any 282 | direct, indirect, special, incidental, or consequential damages of any 283 | character including, without limitation, damages for lost profits, loss of 284 | goodwill, work stoppage, computer failure or malfunction, or any and all 285 | other commercial damages or losses, even if such party shall have been 286 | informed of the possibility of such damages. This limitation of liability 287 | shall not apply to liability for death or personal injury resulting from 288 | such party's negligence to the extent applicable law prohibits such 289 | limitation. Some jurisdictions do not allow the exclusion or limitation of 290 | incidental or consequential damages, so this exclusion and limitation may 291 | not apply to You. 292 | 293 | 8. Litigation 294 | 295 | Any litigation relating to this License may be brought only in the courts 296 | of a jurisdiction where the defendant maintains its principal place of 297 | business and such litigation shall be governed by laws of that 298 | jurisdiction, without reference to its conflict-of-law provisions. Nothing 299 | in this Section shall prevent a party's ability to bring cross-claims or 300 | counter-claims. 301 | 302 | 9. Miscellaneous 303 | 304 | This License represents the complete agreement concerning the subject 305 | matter hereof. If any provision of this License is held to be 306 | unenforceable, such provision shall be reformed only to the extent 307 | necessary to make it enforceable. Any law or regulation which provides that 308 | the language of a contract shall be construed against the drafter shall not 309 | be used to construe this License against a Contributor. 310 | 311 | 312 | 10. Versions of the License 313 | 314 | 10.1. New Versions 315 | 316 | Mozilla Foundation is the license steward. Except as provided in Section 317 | 10.3, no one other than the license steward has the right to modify or 318 | publish new versions of this License. Each version will be given a 319 | distinguishing version number. 320 | 321 | 10.2. Effect of New Versions 322 | 323 | You may distribute the Covered Software under the terms of the version 324 | of the License under which You originally received the Covered Software, 325 | or under the terms of any subsequent version published by the license 326 | steward. 327 | 328 | 10.3. Modified Versions 329 | 330 | If you create software not governed by this License, and you want to 331 | create a new license for such software, you may create and use a 332 | modified version of this License if you rename the license and remove 333 | any references to the name of the license steward (except to note that 334 | such modified license differs from this License). 335 | 336 | 10.4. Distributing Source Code Form that is Incompatible With Secondary 337 | Licenses If You choose to distribute Source Code Form that is 338 | Incompatible With Secondary Licenses under the terms of this version of 339 | the License, the notice described in Exhibit B of this License must be 340 | attached. 341 | 342 | Exhibit A - Source Code Form License Notice 343 | 344 | This Source Code Form is subject to the 345 | terms of the Mozilla Public License, v. 346 | 2.0. If a copy of the MPL was not 347 | distributed with this file, You can 348 | obtain one at 349 | http://mozilla.org/MPL/2.0/. 350 | 351 | If it is not possible or desirable to put the notice in a particular file, 352 | then You may include the notice in a location (such as a LICENSE file in a 353 | relevant directory) where a recipient would be likely to look for such a 354 | notice. 355 | 356 | You may add additional accurate notices of copyright ownership. 357 | 358 | Exhibit B - "Incompatible With Secondary Licenses" Notice 359 | 360 | This Source Code Form is "Incompatible 361 | With Secondary Licenses", as defined by 362 | the Mozilla Public License, v. 2.0. 363 | 364 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | influxdb-grafana 2 | ================ 3 | 4 | Docker container for using InfluxDB + Grafana to consume Rubinius Metrics StatsD output. 5 | 6 | ## Usage 7 | 8 | 1. **[Install docker](https://docs.docker.com/installation/)**. 9 | 10 | 2. **Run an instance of the container**. If this is the first time you're running it, docker will automatically download the stack of images that make up the container from [the automated build of this repository](https://registry.hub.docker.com/u/rubinius/influxdb-grafana/). The following command will run the container as a daemon (`-d`), mapping port `8125` of `localhost` to the container's `8125` statsd port, port `8086` of `localhost` to the container's `8086` influxdb query port, and port `80` of `localhost` to the container's `80` port serving the grafana interface. Depending on how docker is installed, you may need to run this command with `sudo`. 11 | 12 | ```shell 13 | docker run -d \ 14 | -p 8125:8125/udp \ 15 | -p 8086:8086 \ 16 | -p 80:80 \ 17 | rubinius/influxdb-grafana 18 | ``` 19 | 20 | 3. **Run your application** with Rubinius configured to output metrics to statsd at `localhost:8125`. 21 | 22 | ```shell 23 | RBXOPT="-Xsystem.metrics.target=statsd \ 24 | -Xsystem.metrics.statsd.server=localhost:8125" \ 25 | rbx # (your app here) 26 | ``` 27 | 28 | 4. **Open the dashboard** in your browser at `http://localhost:80`. The grafana dashboard will run in your browser, sending queries for data to influxdb at `http://localhost:8086`. 29 | 30 | ### Usage on Remote Hosts 31 | 32 | The usage instructions above assume that the docker container is being run and exposing its ports on the same host as the browser. This is not likely to be true if you are running the container as a service to be connected to from other machines. In that case, you must be sure to replace `localhost` in the steps above with the host name or IP address running the container with the correct exposed or forwarded port. 33 | 34 | As mentioned in step 4 above, grafana runs in your browser, sending queries for data to influxdb at `http://localhost:8086`. This also needs to be replaced with the correct remotely accessible address by passing an environment variable into the docker container. For example, if the remote address in your setup is is `rbx.myhost.com`, the docker container should be run on that host with the command: 35 | 36 | ```shell 37 | docker run -d \ 38 | -p 8125:8125/udp \ 39 | -p 8086:8086 \ 40 | -p 80:80 \ 41 | -e INFLUXDB_SERVER=http://rbx.myhost.com:8086 \ 42 | rubinius/influxdb-grafana 43 | ``` 44 | 45 | ### Usage on Mac OS X 46 | 47 | Because docker relies on features of the Linux kernel, it does not run containers natively in Mac OS X - it hosts containers inside of a Linux VM called `boot2docker`. One consequence of this is that the ports mapped to the docker host from containers are not mapped to `localhost` of OS X, but to the `boot2docker` host. Therefore, it must be treated like a 'remote host' using the steps outlined above, substituting `localhost` with the IP address given the command `boot2docker ip`. For example, if the `boot2docker ip` address in your setup is is `192.168.59.103`, the docker container could be run with the command: 48 | 49 | ```shell 50 | docker run -d \ 51 | -p 8125:8125/udp \ 52 | -p 8086:8086 \ 53 | -p 80:80 \ 54 | -e INFLUXDB_SERVER=http://192.168.59.103:8086 \ 55 | rubinius/influxdb-grafana 56 | ``` 57 | -------------------------------------------------------------------------------- /grafana/config.js.tpl: -------------------------------------------------------------------------------- 1 | 2 | define(['settings'], function(Settings) { 3 | return new Settings({ 4 | 5 | /* Data sources 6 | * ======================================================== 7 | * Datasources are used to fetch metrics, annotations, and serve as dashboard storage 8 | * - You can have multiple of the same type. 9 | * - grafanaDB: true marks it for use for dashboard storage 10 | * - default: true marks the datasource as the default metric source (if you have multiple) 11 | * - basic authentication: use url syntax http://username:password@domain:port 12 | */ 13 | 14 | // InfluxDB example setup (the InfluxDB databases specified need to exist) 15 | datasources: { 16 | rbx: { 17 | type: 'influxdb', 18 | url: "{{ INFLUXDB_SERVER | default("http://localhost:8086") }}/db/rbx", 19 | username: 'root', 20 | password: 'root', 21 | }, 22 | grafana: { 23 | type: 'influxdb', 24 | url: "{{ INFLUXDB_SERVER | default("http://localhost:8086") }}/db/grafana", 25 | username: 'root', 26 | password: 'root', 27 | grafanaDB: true 28 | }, 29 | }, 30 | 31 | /* Global configuration options 32 | * ======================================================== 33 | */ 34 | 35 | // specify the limit for dashboard search results 36 | search: { 37 | max_results: 100 38 | }, 39 | 40 | // default home dashboard 41 | default_route: '/dashboard/file/rbx-dash.json', 42 | 43 | // set to false to disable unsaved changes warning 44 | unsaved_changes_warning: true, 45 | 46 | // set the default timespan for the playlist feature 47 | // Example: "1m", "1h" 48 | playlist_timespan: "1m", 49 | 50 | // If you want to specify password before saving, please specify it below 51 | // The purpose of this password is not security, but to stop some users from accidentally changing dashboards 52 | admin: { 53 | password: '' 54 | }, 55 | 56 | // Change window title prefix from 'Grafana - ' 57 | window_title_prefix: 'RBX Dashboard - ', 58 | 59 | // Add your own custom panels 60 | plugins: { 61 | // list of plugin panels 62 | panels: [], 63 | // requirejs modules in plugins folder that should be loaded 64 | // for example custom datasources 65 | dependencies: [], 66 | } 67 | }); 68 | }); 69 | -------------------------------------------------------------------------------- /grafana/rbx-dash.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": null, 3 | "title": "RBX", 4 | "originalTitle": "RBX", 5 | "tags": [], 6 | "style": "dark", 7 | "timezone": "browser", 8 | "editable": true, 9 | "hideControls": false, 10 | "sharedCrosshair": false, 11 | "rows": [ 12 | { 13 | "title": "test", 14 | "height": "500px", 15 | "editable": true, 16 | "collapse": false, 17 | "panels": [ 18 | { 19 | "id": 8, 20 | "span": 12, 21 | "type": "graph", 22 | "x-axis": true, 23 | "y-axis": true, 24 | "scale": 1, 25 | "y_formats": [ 26 | "bytes", 27 | "none" 28 | ], 29 | "grid": { 30 | "max": null, 31 | "min": null, 32 | "leftMax": null, 33 | "rightMax": null, 34 | "leftMin": null, 35 | "rightMin": null, 36 | "threshold1": -1, 37 | "threshold2": null, 38 | "threshold1Color": "rgba(27, 69, 216, 0.27)", 39 | "threshold2Color": "rgba(234, 112, 112, 0.22)", 40 | "thresholdLine": true 41 | }, 42 | "resolution": 100, 43 | "lines": false, 44 | "fill": 5, 45 | "linewidth": 1, 46 | "points": false, 47 | "pointradius": 10, 48 | "bars": true, 49 | "stack": true, 50 | "spyable": true, 51 | "options": false, 52 | "legend": { 53 | "show": true, 54 | "values": true, 55 | "min": true, 56 | "max": true, 57 | "current": true, 58 | "total": false, 59 | "avg": false, 60 | "alignAsTable": true, 61 | "sortDesc": true, 62 | "rightSide": true 63 | }, 64 | "interactive": true, 65 | "legend_counts": true, 66 | "timezone": "browser", 67 | "percentage": false, 68 | "nullPointMode": "connected", 69 | "steppedLine": false, 70 | "tooltip": { 71 | "value_type": "individual", 72 | "query_as_alias": true, 73 | "shared": false 74 | }, 75 | "targets": [ 76 | { 77 | "target": "randomWalk('random walk')", 78 | "function": "mean", 79 | "column": "value", 80 | "series": "/host.local.Baile.app.rbx.memory.*.bytes.total/", 81 | "query": "select value from /[\\w]*.app.rbx.memory.young.bytes.current/ where $timeFilter group by time($interval) order asc", 82 | "rawQuery": true, 83 | "interval": "10s" 84 | }, 85 | { 86 | "target": "", 87 | "function": "mean", 88 | "column": "value", 89 | "series": "select value from /[\\w]*.app.rbx.memory.*.bytes.current/ where $timeFilter group by time($interval) order asc", 90 | "query": "select value from /[\\w]*.app.rbx.memory.immix.bytes.current/ where $timeFilter group by time($interval) order asc", 91 | "rawQuery": true, 92 | "interval": "10s" 93 | }, 94 | { 95 | "target": "", 96 | "function": "mean", 97 | "column": "value", 98 | "rawQuery": true, 99 | "query": "select value from /[\\w]*.app.rbx.memory.large.bytes.current/ where $timeFilter group by time($interval) order asc", 100 | "interval": "10s" 101 | }, 102 | { 103 | "target": "", 104 | "function": "mean", 105 | "column": "value", 106 | "series": "host.local.Baile.app.rbx.memory.jit.bytes.gauge", 107 | "query": "select value from /[\\w]*.app.rbx.memory.jit.bytes.gauge/ where $timeFilter group by time($interval) order asc", 108 | "rawQuery": true, 109 | "interval": "10s" 110 | } 111 | ], 112 | "aliasColors": { 113 | "host.on.group.baile.app.rbx.memory.immix.bytes.current.gauge.value": "#E24D42", 114 | "host.on.group.baile.app.rbx.memory.young.bytes.current.gauge.value": "#1F78C1", 115 | "host.local.Baile.app.rbx.memory.young.bytes.current.gauge.value": "#1F78C1", 116 | "host.local.Baile.app.rbx.memory.large.bytes.current.gauge.value": "#629E51" 117 | }, 118 | "aliasYAxis": {}, 119 | "title": "Memory", 120 | "datasource": "graphite", 121 | "renderer": "flot", 122 | "annotate": { 123 | "enable": false 124 | }, 125 | "seriesOverrides": [], 126 | "links": [], 127 | "leftYAxisLabel": "" 128 | } 129 | ] 130 | }, 131 | { 132 | "title": "test", 133 | "height": "500px", 134 | "editable": true, 135 | "collapse": false, 136 | "panels": [ 137 | { 138 | "id": 6, 139 | "span": 12, 140 | "type": "graph", 141 | "x-axis": true, 142 | "y-axis": true, 143 | "scale": 1, 144 | "y_formats": [ 145 | "bytes", 146 | "bytes" 147 | ], 148 | "grid": { 149 | "max": null, 150 | "min": null, 151 | "leftMax": null, 152 | "rightMax": null, 153 | "leftMin": null, 154 | "rightMin": null, 155 | "threshold1": null, 156 | "threshold2": null, 157 | "threshold1Color": "rgba(216, 200, 27, 0.27)", 158 | "threshold2Color": "rgba(234, 112, 112, 0.22)" 159 | }, 160 | "resolution": 100, 161 | "lines": true, 162 | "fill": 5, 163 | "linewidth": 1, 164 | "points": false, 165 | "pointradius": 5, 166 | "bars": false, 167 | "stack": true, 168 | "spyable": true, 169 | "options": false, 170 | "legend": { 171 | "show": true, 172 | "values": true, 173 | "min": true, 174 | "max": true, 175 | "current": true, 176 | "total": false, 177 | "avg": false, 178 | "alignAsTable": true, 179 | "sortDesc": true 180 | }, 181 | "interactive": true, 182 | "legend_counts": true, 183 | "timezone": "browser", 184 | "percentage": false, 185 | "nullPointMode": "connected", 186 | "steppedLine": false, 187 | "tooltip": { 188 | "value_type": "cumulative", 189 | "query_as_alias": true, 190 | "shared": false 191 | }, 192 | "targets": [ 193 | { 194 | "target": "randomWalk('random walk')", 195 | "function": "mean", 196 | "column": "value", 197 | "series": "/[\\w]*.app.rbx.io.*/", 198 | "query": "select value from /[\\w]*.app.rbx.io.*/ where $timeFilter group by time($interval) order asc", 199 | "rawQuery": true 200 | } 201 | ], 202 | "aliasColors": { 203 | "host.local.Baile.app.rbx.io.write.bytes.gauge.mean": "#890F02" 204 | }, 205 | "aliasYAxis": {}, 206 | "title": "IO", 207 | "datasource": "graphite", 208 | "renderer": "flot", 209 | "annotate": { 210 | "enable": false 211 | }, 212 | "seriesOverrides": [], 213 | "links": [] 214 | } 215 | ] 216 | }, 217 | { 218 | "title": "test", 219 | "height": "500px", 220 | "editable": true, 221 | "collapse": false, 222 | "panels": [ 223 | { 224 | "id": 7, 225 | "span": 12, 226 | "type": "graph", 227 | "x-axis": true, 228 | "y-axis": true, 229 | "scale": 1, 230 | "y_formats": [ 231 | "short", 232 | "short" 233 | ], 234 | "grid": { 235 | "max": null, 236 | "min": null, 237 | "leftMax": null, 238 | "rightMax": null, 239 | "leftMin": null, 240 | "rightMin": null, 241 | "threshold1": null, 242 | "threshold2": null, 243 | "threshold1Color": "rgba(216, 200, 27, 0.27)", 244 | "threshold2Color": "rgba(234, 112, 112, 0.22)" 245 | }, 246 | "resolution": 100, 247 | "lines": true, 248 | "fill": 1, 249 | "linewidth": 2, 250 | "points": false, 251 | "pointradius": 5, 252 | "bars": false, 253 | "stack": true, 254 | "spyable": true, 255 | "options": false, 256 | "legend": { 257 | "show": true, 258 | "values": true, 259 | "min": true, 260 | "max": true, 261 | "current": false, 262 | "total": false, 263 | "avg": false, 264 | "alignAsTable": true, 265 | "sortDesc": false 266 | }, 267 | "interactive": true, 268 | "legend_counts": true, 269 | "timezone": "browser", 270 | "percentage": false, 271 | "nullPointMode": "connected", 272 | "steppedLine": false, 273 | "tooltip": { 274 | "value_type": "cumulative", 275 | "query_as_alias": true, 276 | "shared": false 277 | }, 278 | "targets": [ 279 | { 280 | "target": "randomWalk('random walk')", 281 | "function": "mean", 282 | "column": "value", 283 | "series": "host.local.Baile.app.rbx.jit.methods.compiled.gauge", 284 | "query": "select value from /[\\w]*.app.rbx.jit.methods.compiled.gauge/ where $timeFilter group by time($interval) order asc", 285 | "rawQuery": true, 286 | "interval": "10s" 287 | }, 288 | { 289 | "target": "", 290 | "function": "mean", 291 | "column": "value", 292 | "series": "host.local.Baile.app.rbx.jit.methods.compiled.gauge", 293 | "query": "select value from /[\\w]*.app.rbx.jit.methods.queued.gauge/ where $timeFilter group by time($interval) order asc", 294 | "interval": "10s", 295 | "rawQuery": true 296 | } 297 | ], 298 | "aliasColors": {}, 299 | "aliasYAxis": {}, 300 | "title": "JIT", 301 | "datasource": "graphite", 302 | "renderer": "flot", 303 | "annotate": { 304 | "enable": false 305 | }, 306 | "seriesOverrides": [], 307 | "links": [] 308 | } 309 | ] 310 | }, 311 | { 312 | "title": "test", 313 | "height": "500px", 314 | "editable": true, 315 | "collapse": false, 316 | "panels": [ 317 | { 318 | "id": 5, 319 | "span": 4, 320 | "type": "graph", 321 | "x-axis": true, 322 | "y-axis": true, 323 | "scale": 1, 324 | "y_formats": [ 325 | "short", 326 | "short" 327 | ], 328 | "grid": { 329 | "max": null, 330 | "min": null, 331 | "leftMax": null, 332 | "rightMax": null, 333 | "leftMin": null, 334 | "rightMin": null, 335 | "threshold1": null, 336 | "threshold2": null, 337 | "threshold1Color": "rgba(216, 200, 27, 0.27)", 338 | "threshold2Color": "rgba(234, 112, 112, 0.22)" 339 | }, 340 | "resolution": 100, 341 | "lines": true, 342 | "fill": 5, 343 | "linewidth": 2, 344 | "points": false, 345 | "pointradius": 5, 346 | "bars": false, 347 | "stack": true, 348 | "spyable": true, 349 | "options": false, 350 | "legend": { 351 | "show": true, 352 | "values": true, 353 | "min": true, 354 | "max": true, 355 | "current": false, 356 | "total": false, 357 | "avg": false, 358 | "alignAsTable": true, 359 | "sortDesc": true 360 | }, 361 | "interactive": true, 362 | "legend_counts": true, 363 | "timezone": "browser", 364 | "percentage": false, 365 | "nullPointMode": "connected", 366 | "steppedLine": false, 367 | "tooltip": { 368 | "value_type": "cumulative", 369 | "query_as_alias": true, 370 | "shared": false 371 | }, 372 | "targets": [ 373 | { 374 | "target": "randomWalk('random walk')", 375 | "function": "mean", 376 | "column": "value", 377 | "series": "/host.local.Baile.app.rbx.memory.*.objects.current.gauge/", 378 | "query": "select value from /host.local.Baile.app.rbx.memory.young.objects.current.gauge/ where $timeFilter group by time($interval) order asc", 379 | "rawQuery": true, 380 | "interval": "10s" 381 | } 382 | ], 383 | "aliasColors": { 384 | "host.local.Baile.app.rbx.gc.young.count.gauge.mean": "#1F78C1", 385 | "host.on.group.baile.app.rbx.gc.young.count.gauge.mean": "#1F78C1", 386 | "host.local.Baile.app.rbx.gc.young.count.gauge.value": "#1F78C1", 387 | "host.local.Baile.app.rbx.memory.young.objects.current.gauge.value": "#1F78C1", 388 | "host.local.Baile.app.rbx.memory.young.objects.total.gauge.value": "#1F78C1" 389 | }, 390 | "aliasYAxis": {}, 391 | "title": "Young Objects", 392 | "datasource": "graphite", 393 | "renderer": "flot", 394 | "annotate": { 395 | "enable": false 396 | }, 397 | "seriesOverrides": [], 398 | "links": [] 399 | }, 400 | { 401 | "title": "Immix Objects", 402 | "error": false, 403 | "span": 4, 404 | "editable": true, 405 | "type": "graph", 406 | "id": 13, 407 | "datasource": null, 408 | "renderer": "flot", 409 | "x-axis": true, 410 | "y-axis": true, 411 | "y_formats": [ 412 | "short", 413 | "short" 414 | ], 415 | "grid": { 416 | "leftMax": null, 417 | "rightMax": null, 418 | "leftMin": null, 419 | "rightMin": null, 420 | "threshold1": null, 421 | "threshold2": null, 422 | "threshold1Color": "rgba(216, 200, 27, 0.27)", 423 | "threshold2Color": "rgba(234, 112, 112, 0.22)" 424 | }, 425 | "lines": true, 426 | "fill": 5, 427 | "linewidth": 1, 428 | "points": false, 429 | "pointradius": 5, 430 | "bars": false, 431 | "stack": false, 432 | "percentage": false, 433 | "legend": { 434 | "show": true, 435 | "values": true, 436 | "min": true, 437 | "max": true, 438 | "current": true, 439 | "total": false, 440 | "avg": false, 441 | "alignAsTable": true, 442 | "sortDesc": true 443 | }, 444 | "nullPointMode": "connected", 445 | "steppedLine": false, 446 | "tooltip": { 447 | "value_type": "cumulative", 448 | "shared": false 449 | }, 450 | "targets": [ 451 | { 452 | "function": "mean", 453 | "column": "value", 454 | "series": "/[\\w]*.rbx.memory.*/", 455 | "query": "select value from /[\\w]*.rbx.memory.immix.objects.current/ where $timeFilter group by time($interval) order asc", 456 | "rawQuery": true 457 | } 458 | ], 459 | "aliasColors": { 460 | "host.local.Baile.app.rbx.gc.immix.count.gauge.mean": "#EAB839", 461 | "host.on.group.baile.app.rbx.gc.immix.count.gauge.mean": "#E24D42", 462 | "host.local.Baile.app.rbx.memory.immix.objects.total.gauge.value": "#EAB839", 463 | "host.local.Baile.app.rbx.memory.immix.objects.current.gauge.value": "#EAB839" 464 | }, 465 | "seriesOverrides": [], 466 | "links": [] 467 | }, 468 | { 469 | "title": "Large Objects", 470 | "error": false, 471 | "span": 4, 472 | "editable": true, 473 | "type": "graph", 474 | "id": 12, 475 | "datasource": null, 476 | "renderer": "flot", 477 | "x-axis": true, 478 | "y-axis": true, 479 | "y_formats": [ 480 | "short", 481 | "short" 482 | ], 483 | "grid": { 484 | "leftMax": null, 485 | "rightMax": null, 486 | "leftMin": null, 487 | "rightMin": null, 488 | "threshold1": null, 489 | "threshold2": null, 490 | "threshold1Color": "rgba(216, 200, 27, 0.27)", 491 | "threshold2Color": "rgba(234, 112, 112, 0.22)" 492 | }, 493 | "lines": true, 494 | "fill": 5, 495 | "linewidth": 1, 496 | "points": false, 497 | "pointradius": 5, 498 | "bars": false, 499 | "stack": false, 500 | "percentage": false, 501 | "legend": { 502 | "show": true, 503 | "values": true, 504 | "min": true, 505 | "max": true, 506 | "current": true, 507 | "total": false, 508 | "avg": false, 509 | "alignAsTable": true 510 | }, 511 | "nullPointMode": "connected", 512 | "steppedLine": false, 513 | "tooltip": { 514 | "value_type": "cumulative", 515 | "shared": false 516 | }, 517 | "targets": [ 518 | { 519 | "function": "mean", 520 | "column": "value", 521 | "series": "/[\\d]*.app.rbx.gc.large.count.gauge/", 522 | "query": "select value from /host.local.Baile.app.rbx.memory.large.objects.total.gauge/ where $timeFilter group by time($interval) order asc", 523 | "rawQuery": true, 524 | "interval": "10s" 525 | } 526 | ], 527 | "aliasColors": { 528 | "host.on.group.baile.app.rbx.gc.large.count.gauge.mean": "#EAB839" 529 | }, 530 | "seriesOverrides": [], 531 | "links": [] 532 | } 533 | ] 534 | }, 535 | { 536 | "title": "test", 537 | "height": "500px", 538 | "editable": true, 539 | "collapse": false, 540 | "panels": [ 541 | { 542 | "id": 9, 543 | "span": 12, 544 | "type": "graph", 545 | "x-axis": true, 546 | "y-axis": true, 547 | "scale": 1, 548 | "y_formats": [ 549 | "short", 550 | "short" 551 | ], 552 | "grid": { 553 | "max": null, 554 | "min": null, 555 | "leftMax": null, 556 | "rightMax": null, 557 | "leftMin": null, 558 | "rightMin": null, 559 | "threshold1": null, 560 | "threshold2": null, 561 | "threshold1Color": "rgba(216, 200, 27, 0.27)", 562 | "threshold2Color": "rgba(234, 112, 112, 0.22)" 563 | }, 564 | "resolution": 100, 565 | "lines": true, 566 | "fill": 1, 567 | "linewidth": 2, 568 | "points": false, 569 | "pointradius": 5, 570 | "bars": false, 571 | "stack": true, 572 | "spyable": true, 573 | "options": false, 574 | "legend": { 575 | "show": true, 576 | "values": true, 577 | "min": true, 578 | "max": true, 579 | "current": false, 580 | "total": false, 581 | "avg": false, 582 | "alignAsTable": true, 583 | "rightSide": true 584 | }, 585 | "interactive": true, 586 | "legend_counts": true, 587 | "timezone": "browser", 588 | "percentage": false, 589 | "nullPointMode": "connected", 590 | "steppedLine": false, 591 | "tooltip": { 592 | "value_type": "cumulative", 593 | "query_as_alias": true, 594 | "shared": false 595 | }, 596 | "targets": [ 597 | { 598 | "target": "randomWalk('random walk')", 599 | "function": "mean", 600 | "column": "value", 601 | "series": "/[\\w]*.app.rbx.os.signals.*/", 602 | "query": "select mean(value) from /[\\w]*.app.rbx.os.signals.*/ where $timeFilter group by time($interval) order asc", 603 | "alias": "" 604 | } 605 | ], 606 | "aliasColors": {}, 607 | "aliasYAxis": {}, 608 | "title": "OS Signals", 609 | "datasource": "graphite", 610 | "renderer": "flot", 611 | "annotate": { 612 | "enable": false 613 | }, 614 | "seriesOverrides": [], 615 | "links": [] 616 | } 617 | ] 618 | }, 619 | { 620 | "title": "test", 621 | "height": "500px", 622 | "editable": true, 623 | "collapse": false, 624 | "panels": [ 625 | { 626 | "id": 10, 627 | "span": 12, 628 | "type": "graph", 629 | "x-axis": true, 630 | "y-axis": true, 631 | "scale": 1, 632 | "y_formats": [ 633 | "short", 634 | "short" 635 | ], 636 | "grid": { 637 | "max": null, 638 | "min": null, 639 | "leftMax": null, 640 | "rightMax": null, 641 | "leftMin": null, 642 | "rightMin": null, 643 | "threshold1": null, 644 | "threshold2": null, 645 | "threshold1Color": "rgba(216, 200, 27, 0.27)", 646 | "threshold2Color": "rgba(234, 112, 112, 0.22)", 647 | "thresholdLine": false 648 | }, 649 | "resolution": 100, 650 | "lines": true, 651 | "fill": 5, 652 | "linewidth": 1, 653 | "points": false, 654 | "pointradius": 5, 655 | "bars": false, 656 | "stack": false, 657 | "spyable": true, 658 | "options": false, 659 | "legend": { 660 | "show": true, 661 | "values": true, 662 | "min": false, 663 | "max": false, 664 | "current": true, 665 | "total": false, 666 | "avg": false, 667 | "alignAsTable": true, 668 | "rightSide": true 669 | }, 670 | "interactive": true, 671 | "legend_counts": true, 672 | "timezone": "browser", 673 | "percentage": false, 674 | "nullPointMode": "null as zero", 675 | "steppedLine": false, 676 | "tooltip": { 677 | "value_type": "cumulative", 678 | "query_as_alias": true, 679 | "shared": false 680 | }, 681 | "targets": [ 682 | { 683 | "target": "randomWalk('random walk')", 684 | "function": "mean", 685 | "column": "value", 686 | "series": "/host.local.Baile.app.rbx.vm.inline_cache.resets.gauge/", 687 | "query": "select value from /[\\w]*app.rbx.vm.inline_cache.resets.gauge/ where $timeFilter group by time($interval) order asc", 688 | "rawQuery": true 689 | } 690 | ], 691 | "aliasColors": { 692 | "host.local.Baile.app.rbx.vm.inline_cache.resets.gauge.value": "#E0752D" 693 | }, 694 | "aliasYAxis": {}, 695 | "title": "VM Inline Caches", 696 | "datasource": "graphite", 697 | "renderer": "flot", 698 | "annotate": { 699 | "enable": false 700 | }, 701 | "seriesOverrides": [], 702 | "links": [] 703 | } 704 | ] 705 | }, 706 | { 707 | "title": "test", 708 | "height": "500px", 709 | "editable": true, 710 | "collapse": false, 711 | "panels": [ 712 | { 713 | "id": 11, 714 | "span": 12, 715 | "type": "graph", 716 | "x-axis": true, 717 | "y-axis": true, 718 | "scale": 1, 719 | "y_formats": [ 720 | "short", 721 | "short" 722 | ], 723 | "grid": { 724 | "max": null, 725 | "min": null, 726 | "leftMax": null, 727 | "rightMax": null, 728 | "leftMin": null, 729 | "rightMin": null, 730 | "threshold1": null, 731 | "threshold2": null, 732 | "threshold1Color": "rgba(216, 200, 27, 0.27)", 733 | "threshold2Color": "rgba(234, 112, 112, 0.22)" 734 | }, 735 | "resolution": 100, 736 | "lines": false, 737 | "fill": 10, 738 | "linewidth": 5, 739 | "points": false, 740 | "pointradius": 5, 741 | "bars": true, 742 | "stack": true, 743 | "spyable": true, 744 | "options": false, 745 | "legend": { 746 | "show": true, 747 | "values": true, 748 | "min": true, 749 | "max": true, 750 | "current": false, 751 | "total": false, 752 | "avg": false, 753 | "alignAsTable": true, 754 | "rightSide": true 755 | }, 756 | "interactive": true, 757 | "legend_counts": true, 758 | "timezone": "browser", 759 | "percentage": false, 760 | "nullPointMode": "null as zero", 761 | "steppedLine": false, 762 | "tooltip": { 763 | "value_type": "cumulative", 764 | "query_as_alias": true, 765 | "shared": false 766 | }, 767 | "targets": [ 768 | { 769 | "target": "randomWalk('random walk')", 770 | "function": "mean", 771 | "column": "value", 772 | "series": "host.local.Baile.app.rbx.vm.threads.current.gauge", 773 | "query": "select value from /[\\w]*.app.rbx.vm.threads.current.gauge/ where $timeFilter group by time($interval) order asc", 774 | "interval": "10s", 775 | "rawQuery": true 776 | } 777 | ], 778 | "aliasColors": { 779 | "host.local.Baile.app.rbx.vm.threads.current.gauge.value": "#508642" 780 | }, 781 | "aliasYAxis": {}, 782 | "title": "VM Threads", 783 | "datasource": "graphite", 784 | "renderer": "flot", 785 | "annotate": { 786 | "enable": false 787 | }, 788 | "seriesOverrides": [ 789 | { 790 | "alias": "host.local.Baile.app.rbx.vm.threads.current.gauge.mean" 791 | } 792 | ], 793 | "links": [] 794 | } 795 | ] 796 | }, 797 | { 798 | "title": "test", 799 | "height": "500px", 800 | "editable": true, 801 | "collapse": false, 802 | "panels": [ 803 | { 804 | "id": 14, 805 | "span": 4, 806 | "type": "graph", 807 | "x-axis": true, 808 | "y-axis": true, 809 | "scale": 1, 810 | "y_formats": [ 811 | "short", 812 | "short" 813 | ], 814 | "grid": { 815 | "max": null, 816 | "min": null, 817 | "leftMax": null, 818 | "rightMax": null, 819 | "leftMin": null, 820 | "rightMin": null, 821 | "threshold1": null, 822 | "threshold2": null, 823 | "threshold1Color": "rgba(216, 200, 27, 0.27)", 824 | "threshold2Color": "rgba(234, 112, 112, 0.22)" 825 | }, 826 | "resolution": 100, 827 | "lines": true, 828 | "fill": 5, 829 | "linewidth": 2, 830 | "points": false, 831 | "pointradius": 5, 832 | "bars": false, 833 | "stack": true, 834 | "spyable": true, 835 | "options": false, 836 | "legend": { 837 | "show": true, 838 | "values": true, 839 | "min": true, 840 | "max": true, 841 | "current": false, 842 | "total": false, 843 | "avg": false, 844 | "alignAsTable": true, 845 | "sortDesc": true, 846 | "sort": "max" 847 | }, 848 | "interactive": true, 849 | "legend_counts": true, 850 | "timezone": "browser", 851 | "percentage": false, 852 | "nullPointMode": "connected", 853 | "steppedLine": false, 854 | "tooltip": { 855 | "value_type": "cumulative", 856 | "query_as_alias": true, 857 | "shared": false 858 | }, 859 | "targets": [ 860 | { 861 | "target": "randomWalk('random walk')", 862 | "function": "mean", 863 | "column": "value", 864 | "series": "/host.local.Baile.app.rbx.memory.*.objects.current.gauge/", 865 | "query": "select value from /host.local.Baile.app.rbx.gc.young.count.*/ where $timeFilter group by time($interval) order asc", 866 | "rawQuery": true, 867 | "interval": "10s" 868 | } 869 | ], 870 | "aliasColors": { 871 | "host.local.Baile.app.rbx.gc.young.count.gauge.mean": "#1F78C1", 872 | "host.on.group.baile.app.rbx.gc.young.count.gauge.mean": "#1F78C1", 873 | "host.local.Baile.app.rbx.gc.young.count.gauge.value": "#1F78C1", 874 | "host.local.Baile.app.rbx.memory.young.objects.current.gauge.value": "#1F78C1", 875 | "host.local.Baile.app.rbx.memory.young.objects.total.gauge.value": "#1F78C1" 876 | }, 877 | "aliasYAxis": {}, 878 | "title": "Young GC Run Count", 879 | "datasource": "graphite", 880 | "renderer": "flot", 881 | "annotate": { 882 | "enable": false 883 | }, 884 | "seriesOverrides": [], 885 | "links": [] 886 | }, 887 | { 888 | "title": "GC Immix Run Count", 889 | "error": false, 890 | "span": 4, 891 | "editable": true, 892 | "type": "graph", 893 | "id": 15, 894 | "datasource": null, 895 | "renderer": "flot", 896 | "x-axis": true, 897 | "y-axis": true, 898 | "y_formats": [ 899 | "short", 900 | "short" 901 | ], 902 | "grid": { 903 | "leftMax": null, 904 | "rightMax": null, 905 | "leftMin": null, 906 | "rightMin": null, 907 | "threshold1": null, 908 | "threshold2": null, 909 | "threshold1Color": "rgba(216, 200, 27, 0.27)", 910 | "threshold2Color": "rgba(234, 112, 112, 0.22)" 911 | }, 912 | "lines": true, 913 | "fill": 5, 914 | "linewidth": 1, 915 | "points": false, 916 | "pointradius": 5, 917 | "bars": false, 918 | "stack": false, 919 | "percentage": false, 920 | "legend": { 921 | "show": true, 922 | "values": true, 923 | "min": true, 924 | "max": true, 925 | "current": true, 926 | "total": false, 927 | "avg": false, 928 | "alignAsTable": true, 929 | "sortDesc": true 930 | }, 931 | "nullPointMode": "connected", 932 | "steppedLine": false, 933 | "tooltip": { 934 | "value_type": "cumulative", 935 | "shared": false 936 | }, 937 | "targets": [ 938 | { 939 | "function": "mean", 940 | "column": "value", 941 | "series": "/[\\w]*.rbx.memory.*/", 942 | "query": "select value from /[\\w]*.rbx.gc.immix.count/ where $timeFilter group by time($interval) order asc", 943 | "rawQuery": true 944 | } 945 | ], 946 | "aliasColors": { 947 | "host.local.Baile.app.rbx.gc.immix.count.gauge.mean": "#EAB839", 948 | "host.on.group.baile.app.rbx.gc.immix.count.gauge.mean": "#E24D42", 949 | "host.local.Baile.app.rbx.memory.immix.objects.total.gauge.value": "#EAB839", 950 | "host.local.Baile.app.rbx.memory.immix.objects.current.gauge.value": "#EAB839", 951 | "host.local.Baile.app.rbx.gc.immix.count.gauge.value": "#EAB839" 952 | }, 953 | "seriesOverrides": [], 954 | "links": [] 955 | }, 956 | { 957 | "title": "GC Large Run Count", 958 | "error": false, 959 | "span": 4, 960 | "editable": true, 961 | "type": "graph", 962 | "id": 16, 963 | "datasource": null, 964 | "renderer": "flot", 965 | "x-axis": true, 966 | "y-axis": true, 967 | "y_formats": [ 968 | "short", 969 | "short" 970 | ], 971 | "grid": { 972 | "leftMax": null, 973 | "rightMax": null, 974 | "leftMin": null, 975 | "rightMin": null, 976 | "threshold1": null, 977 | "threshold2": null, 978 | "threshold1Color": "rgba(216, 200, 27, 0.27)", 979 | "threshold2Color": "rgba(234, 112, 112, 0.22)" 980 | }, 981 | "lines": true, 982 | "fill": 5, 983 | "linewidth": 1, 984 | "points": false, 985 | "pointradius": 5, 986 | "bars": false, 987 | "stack": false, 988 | "percentage": false, 989 | "legend": { 990 | "show": true, 991 | "values": true, 992 | "min": true, 993 | "max": true, 994 | "current": true, 995 | "total": false, 996 | "avg": false, 997 | "alignAsTable": true 998 | }, 999 | "nullPointMode": "connected", 1000 | "steppedLine": false, 1001 | "tooltip": { 1002 | "value_type": "cumulative", 1003 | "shared": false 1004 | }, 1005 | "targets": [ 1006 | { 1007 | "function": "mean", 1008 | "column": "value", 1009 | "series": "/[\\d]*.app.rbx.gc.large.count.gauge/", 1010 | "query": "select value from /host.local.Baile.app.rbx.gc.large.count.gauge/ where $timeFilter group by time($interval) order asc", 1011 | "rawQuery": true, 1012 | "interval": "10s" 1013 | } 1014 | ], 1015 | "aliasColors": { 1016 | "host.on.group.baile.app.rbx.gc.large.count.gauge.mean": "#EAB839" 1017 | }, 1018 | "seriesOverrides": [], 1019 | "links": [] 1020 | } 1021 | ] 1022 | }, 1023 | { 1024 | "title": "test", 1025 | "height": "500px", 1026 | "editable": true, 1027 | "collapse": false, 1028 | "panels": [ 1029 | { 1030 | "id": 17, 1031 | "span": 12, 1032 | "type": "graph", 1033 | "x-axis": true, 1034 | "y-axis": true, 1035 | "scale": 1, 1036 | "y_formats": [ 1037 | "ms", 1038 | "none" 1039 | ], 1040 | "grid": { 1041 | "max": null, 1042 | "min": null, 1043 | "leftMax": null, 1044 | "rightMax": null, 1045 | "leftMin": null, 1046 | "rightMin": null, 1047 | "threshold1": null, 1048 | "threshold2": null, 1049 | "threshold1Color": "rgba(216, 200, 27, 0.27)", 1050 | "threshold2Color": "rgba(234, 112, 112, 0.22)" 1051 | }, 1052 | "resolution": 100, 1053 | "lines": true, 1054 | "fill": 5, 1055 | "linewidth": 1, 1056 | "points": true, 1057 | "pointradius": 2, 1058 | "bars": false, 1059 | "stack": false, 1060 | "spyable": true, 1061 | "options": false, 1062 | "legend": { 1063 | "show": true, 1064 | "values": true, 1065 | "min": true, 1066 | "max": true, 1067 | "current": false, 1068 | "total": false, 1069 | "avg": false, 1070 | "alignAsTable": true, 1071 | "sortDesc": true, 1072 | "sort": "max", 1073 | "rightSide": true 1074 | }, 1075 | "interactive": true, 1076 | "legend_counts": true, 1077 | "timezone": "browser", 1078 | "percentage": false, 1079 | "nullPointMode": "connected", 1080 | "steppedLine": false, 1081 | "tooltip": { 1082 | "value_type": "cumulative", 1083 | "query_as_alias": true, 1084 | "shared": false 1085 | }, 1086 | "targets": [ 1087 | { 1088 | "target": "randomWalk('random walk')", 1089 | "function": "mean", 1090 | "column": "value", 1091 | "series": "/host.local.Baile.app.rbx.gc.*.last.ms.gauge/", 1092 | "query": "select value from /host.local.Baile.app.rbx.gc.*.last.ms.gauge/ where $timeFilter group by time($interval) order asc", 1093 | "rawQuery": true, 1094 | "interval": "10s" 1095 | } 1096 | ], 1097 | "aliasColors": { 1098 | "host.local.Baile.app.rbx.gc.young.count.gauge.mean": "#1F78C1", 1099 | "host.on.group.baile.app.rbx.gc.young.count.gauge.mean": "#1F78C1", 1100 | "host.local.Baile.app.rbx.gc.young.count.gauge.value": "#1F78C1", 1101 | "host.local.Baile.app.rbx.memory.young.objects.current.gauge.value": "#1F78C1", 1102 | "host.local.Baile.app.rbx.memory.young.objects.total.gauge.value": "#1F78C1", 1103 | "host.local.Baile.app.rbx.gc.immix.concurrent.last.ms.gauge.mean": "#EAB839", 1104 | "host.local.Baile.app.rbx.gc.immix.stop.last.ms.gauge.mean": "#EF843C", 1105 | "host.local.Baile.app.rbx.gc.young.last.ms.gauge.mean": "#1F78C1", 1106 | "host.local.Baile.app.rbx.gc.large.sweep.last.ms.gauge.mean": "#7EB26D", 1107 | "host.local.Baile.app.rbx.gc.large.sweep.last.ms.gauge.value": "#7EB26D", 1108 | "host.local.Baile.app.rbx.gc.immix.concurrent.last.ms.gauge.value": "#EAB839", 1109 | "host.local.Baile.app.rbx.gc.immix.stop.last.ms.gauge.value": "#E24D42", 1110 | "host.local.Baile.app.rbx.gc.young.last.ms.gauge.value": "#1F78C1" 1111 | }, 1112 | "aliasYAxis": {}, 1113 | "title": "GC Last Times", 1114 | "datasource": "graphite", 1115 | "renderer": "flot", 1116 | "annotate": { 1117 | "enable": false 1118 | }, 1119 | "seriesOverrides": [], 1120 | "links": [], 1121 | "height": "400px" 1122 | } 1123 | ] 1124 | }, 1125 | { 1126 | "title": "test", 1127 | "height": "500px", 1128 | "editable": true, 1129 | "collapse": false, 1130 | "panels": [ 1131 | { 1132 | "id": 18, 1133 | "span": 12, 1134 | "type": "graph", 1135 | "x-axis": true, 1136 | "y-axis": true, 1137 | "scale": 1, 1138 | "y_formats": [ 1139 | "ms", 1140 | "none" 1141 | ], 1142 | "grid": { 1143 | "max": null, 1144 | "min": null, 1145 | "leftMax": null, 1146 | "rightMax": null, 1147 | "leftMin": null, 1148 | "rightMin": null, 1149 | "threshold1": null, 1150 | "threshold2": null, 1151 | "threshold1Color": "rgba(216, 200, 27, 0.27)", 1152 | "threshold2Color": "rgba(234, 112, 112, 0.22)" 1153 | }, 1154 | "resolution": 100, 1155 | "lines": true, 1156 | "fill": 5, 1157 | "linewidth": 1, 1158 | "points": true, 1159 | "pointradius": 2, 1160 | "bars": false, 1161 | "stack": false, 1162 | "spyable": true, 1163 | "options": false, 1164 | "legend": { 1165 | "show": true, 1166 | "values": true, 1167 | "min": false, 1168 | "max": false, 1169 | "current": true, 1170 | "total": false, 1171 | "avg": false, 1172 | "alignAsTable": true, 1173 | "sortDesc": true, 1174 | "sort": "max", 1175 | "rightSide": true 1176 | }, 1177 | "interactive": true, 1178 | "legend_counts": true, 1179 | "timezone": "browser", 1180 | "percentage": false, 1181 | "nullPointMode": "connected", 1182 | "steppedLine": false, 1183 | "tooltip": { 1184 | "value_type": "cumulative", 1185 | "query_as_alias": true, 1186 | "shared": false 1187 | }, 1188 | "targets": [ 1189 | { 1190 | "target": "randomWalk('random walk')", 1191 | "function": "mean", 1192 | "column": "value", 1193 | "series": "/host.local.Baile.app.rbx.gc.*.last.ms.gauge/", 1194 | "query": "select value from /host.local.Baile.app.rbx.gc.*.total.ms.gauge/ where $timeFilter group by time($interval) order asc", 1195 | "rawQuery": true, 1196 | "interval": "10s" 1197 | } 1198 | ], 1199 | "aliasColors": { 1200 | "host.local.Baile.app.rbx.gc.young.count.gauge.mean": "#1F78C1", 1201 | "host.on.group.baile.app.rbx.gc.young.count.gauge.mean": "#1F78C1", 1202 | "host.local.Baile.app.rbx.gc.young.count.gauge.value": "#1F78C1", 1203 | "host.local.Baile.app.rbx.memory.young.objects.current.gauge.value": "#1F78C1", 1204 | "host.local.Baile.app.rbx.memory.young.objects.total.gauge.value": "#1F78C1", 1205 | "host.local.Baile.app.rbx.gc.immix.concurrent.last.ms.gauge.mean": "#EAB839", 1206 | "host.local.Baile.app.rbx.gc.immix.stop.last.ms.gauge.mean": "#EF843C", 1207 | "host.local.Baile.app.rbx.gc.young.last.ms.gauge.mean": "#1F78C1", 1208 | "host.local.Baile.app.rbx.gc.large.sweep.last.ms.gauge.mean": "#7EB26D", 1209 | "host.local.Baile.app.rbx.gc.large.sweep.last.ms.gauge.value": "#7EB26D", 1210 | "host.local.Baile.app.rbx.gc.immix.concurrent.last.ms.gauge.value": "#EAB839", 1211 | "host.local.Baile.app.rbx.gc.immix.stop.last.ms.gauge.value": "#E24D42", 1212 | "host.local.Baile.app.rbx.gc.young.last.ms.gauge.value": "#1F78C1", 1213 | "host.local.Baile.app.rbx.gc.immix.concurrent.total.ms.gauge.value": "#EAB839", 1214 | "host.local.Baile.app.rbx.gc.young.total.ms.gauge.value": "#1F78C1", 1215 | "host.local.Baile.app.rbx.gc.immix.stop.total.ms.gauge.value": "#E24D42", 1216 | "host.local.Baile.app.rbx.gc.large.sweep.total.ms.gauge.value": "#508642" 1217 | }, 1218 | "aliasYAxis": {}, 1219 | "title": "GC Total Times", 1220 | "datasource": "graphite", 1221 | "renderer": "flot", 1222 | "annotate": { 1223 | "enable": false 1224 | }, 1225 | "seriesOverrides": [], 1226 | "links": [], 1227 | "height": "400px" 1228 | } 1229 | ] 1230 | }, 1231 | { 1232 | "title": "test", 1233 | "height": "500px", 1234 | "editable": true, 1235 | "collapse": false, 1236 | "panels": [ 1237 | { 1238 | "id": 19, 1239 | "span": 12, 1240 | "type": "graph", 1241 | "x-axis": true, 1242 | "y-axis": true, 1243 | "scale": 1, 1244 | "y_formats": [ 1245 | "µs", 1246 | "none" 1247 | ], 1248 | "grid": { 1249 | "max": null, 1250 | "min": null, 1251 | "leftMax": null, 1252 | "rightMax": null, 1253 | "leftMin": null, 1254 | "rightMin": null, 1255 | "threshold1": null, 1256 | "threshold2": null, 1257 | "threshold1Color": "rgba(216, 200, 27, 0.27)", 1258 | "threshold2Color": "rgba(234, 112, 112, 0.22)" 1259 | }, 1260 | "resolution": 100, 1261 | "lines": true, 1262 | "fill": 5, 1263 | "linewidth": 1, 1264 | "points": true, 1265 | "pointradius": 2, 1266 | "bars": false, 1267 | "stack": false, 1268 | "spyable": true, 1269 | "options": false, 1270 | "legend": { 1271 | "show": true, 1272 | "values": true, 1273 | "min": false, 1274 | "max": false, 1275 | "current": true, 1276 | "total": false, 1277 | "avg": false, 1278 | "alignAsTable": true, 1279 | "sortDesc": true, 1280 | "sort": "max", 1281 | "rightSide": true 1282 | }, 1283 | "interactive": true, 1284 | "legend_counts": true, 1285 | "timezone": "browser", 1286 | "percentage": false, 1287 | "nullPointMode": "connected", 1288 | "steppedLine": false, 1289 | "tooltip": { 1290 | "value_type": "cumulative", 1291 | "query_as_alias": true, 1292 | "shared": false 1293 | }, 1294 | "targets": [ 1295 | { 1296 | "target": "randomWalk('random walk')", 1297 | "function": "mean", 1298 | "column": "value", 1299 | "series": "host.local.Baile.app.rbx.jit.time.total.us.gauge", 1300 | "query": "select value from /host.local.Baile.app.rbx.jit.time.*.us.gauge/ where $timeFilter group by time($interval) order asc", 1301 | "rawQuery": true, 1302 | "interval": "0.1s" 1303 | } 1304 | ], 1305 | "aliasColors": { 1306 | "host.local.Baile.app.rbx.gc.young.count.gauge.mean": "#1F78C1", 1307 | "host.on.group.baile.app.rbx.gc.young.count.gauge.mean": "#1F78C1", 1308 | "host.local.Baile.app.rbx.gc.young.count.gauge.value": "#1F78C1", 1309 | "host.local.Baile.app.rbx.memory.young.objects.current.gauge.value": "#1F78C1", 1310 | "host.local.Baile.app.rbx.memory.young.objects.total.gauge.value": "#1F78C1", 1311 | "host.local.Baile.app.rbx.gc.immix.concurrent.last.ms.gauge.mean": "#EAB839", 1312 | "host.local.Baile.app.rbx.gc.immix.stop.last.ms.gauge.mean": "#EF843C", 1313 | "host.local.Baile.app.rbx.gc.young.last.ms.gauge.mean": "#1F78C1", 1314 | "host.local.Baile.app.rbx.gc.large.sweep.last.ms.gauge.mean": "#7EB26D", 1315 | "host.local.Baile.app.rbx.gc.large.sweep.last.ms.gauge.value": "#7EB26D", 1316 | "host.local.Baile.app.rbx.gc.immix.concurrent.last.ms.gauge.value": "#EAB839", 1317 | "host.local.Baile.app.rbx.gc.immix.stop.last.ms.gauge.value": "#E24D42", 1318 | "host.local.Baile.app.rbx.gc.young.last.ms.gauge.value": "#1F78C1", 1319 | "host.local.Baile.app.rbx.gc.immix.concurrent.total.ms.gauge.value": "#EAB839", 1320 | "host.local.Baile.app.rbx.gc.young.total.ms.gauge.value": "#1F78C1", 1321 | "host.local.Baile.app.rbx.gc.immix.stop.total.ms.gauge.value": "#E24D42", 1322 | "host.local.Baile.app.rbx.gc.large.sweep.total.ms.gauge.value": "#508642", 1323 | "host.local.Baile.app.rbx.jit.time.total.us.gauge.value": "#E24D42", 1324 | "host.local.Baile.app.rbx.jit.time.last.us.gauge.value": "#EF843C" 1325 | }, 1326 | "aliasYAxis": {}, 1327 | "title": "JIT Times", 1328 | "datasource": "graphite", 1329 | "renderer": "flot", 1330 | "annotate": { 1331 | "enable": false 1332 | }, 1333 | "seriesOverrides": [], 1334 | "links": [], 1335 | "height": "400px" 1336 | } 1337 | ] 1338 | } 1339 | ], 1340 | "nav": [ 1341 | { 1342 | "type": "timepicker", 1343 | "collapse": false, 1344 | "enable": true, 1345 | "status": "Stable", 1346 | "time_options": [ 1347 | "1m", 1348 | "5m", 1349 | "15m", 1350 | "1h", 1351 | "6h", 1352 | "12h", 1353 | "24h", 1354 | "2d", 1355 | "7d", 1356 | "30d" 1357 | ], 1358 | "refresh_intervals": [ 1359 | "1s", 1360 | "5s", 1361 | "10s", 1362 | "30s", 1363 | "1m", 1364 | "5m", 1365 | "15m", 1366 | "30m", 1367 | "1h", 1368 | "2h", 1369 | "1d" 1370 | ], 1371 | "now": false, 1372 | "notice": false 1373 | } 1374 | ], 1375 | "time": { 1376 | "from": "2014-12-16T17:37:50.284Z", 1377 | "to": "2014-12-16T17:40:44.944Z" 1378 | }, 1379 | "templating": { 1380 | "list": [], 1381 | "enable": true 1382 | }, 1383 | "annotations": { 1384 | "list": [], 1385 | "enable": true 1386 | }, 1387 | "refresh": "5s", 1388 | "version": 6, 1389 | "hideAllLegends": false 1390 | } -------------------------------------------------------------------------------- /grafana/setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | envtpl /src/grafana/config.js.tpl --keep-template 4 | -------------------------------------------------------------------------------- /influxdb/setup.sh: -------------------------------------------------------------------------------- 1 | # Run influxdb and create two new influxdb databases: "rbx" and "grafana" 2 | 3 | /etc/init.d/influxdb start 4 | 5 | until (curl -X POST 'http://localhost:8086/db?u=root&p=root' \ 6 | -d '{"name": "rbx"}' 2>/dev/null) do sleep 1; done # Loop until success 7 | echo 'Created database: "rbx"' 8 | 9 | until (curl -X POST 'http://localhost:8086/db?u=root&p=root' \ 10 | -d '{"name": "grafana"}' 2>/dev/null) do sleep 1; done # Loop until success 11 | echo 'Created database: "grafana"' 12 | 13 | -------------------------------------------------------------------------------- /nginx/nginx.conf: -------------------------------------------------------------------------------- 1 | daemon off; 2 | user www-data; 3 | worker_processes 1; 4 | pid /var/run/nginx.pid; 5 | 6 | events { 7 | worker_connections 1024; 8 | } 9 | 10 | http { 11 | sendfile on; 12 | tcp_nopush on; 13 | tcp_nodelay on; 14 | keepalive_timeout 65; 15 | types_hash_max_size 2048; 16 | server_tokens off; 17 | 18 | server_names_hash_bucket_size 32; 19 | 20 | include /etc/nginx/mime.types; 21 | default_type application/octet-stream; 22 | 23 | access_log /var/log/nginx/access.log; 24 | error_log /var/log/nginx/error.log; 25 | 26 | gzip on; 27 | gzip_disable "msie6"; 28 | 29 | server { 30 | listen 80; 31 | location / { 32 | root /src/grafana; 33 | index index.html; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /statsd/config.js: -------------------------------------------------------------------------------- 1 | /* 2 | Graphite Required Variables: 3 | 4 | (Leave these unset to avoid sending stats to Graphite. 5 | Set debug flag and leave these unset to run in 'dry' debug mode - 6 | useful for testing statsd clients without a Graphite server.) 7 | 8 | graphiteHost: hostname or IP of Graphite server 9 | graphitePort: port of Graphite server 10 | 11 | Optional Variables: 12 | 13 | backends: an array of backends to load. Each backend must exist 14 | by name in the directory backends/. If not specified, 15 | the default graphite backend will be loaded. 16 | * example for console and graphite: 17 | [ "./backends/console", "./backends/graphite" ] 18 | server: the server to load. The server must exist by name in the directory 19 | servers/. If not specified, the default udp server will be loaded. 20 | * example for tcp server: 21 | "./servers/tcp" 22 | debug: debug flag [default: false] 23 | address: address to listen on [default: 0.0.0.0] 24 | address_ipv6: defines if the address is an IPv4 or IPv6 address [true or false, default: false] 25 | port: port to listen for messages on [default: 8125] 26 | mgmt_address: address to run the management TCP interface on 27 | [default: 0.0.0.0] 28 | mgmt_port: port to run the management TCP interface on [default: 8126] 29 | title: Allows for overriding the process title. [default: statsd] 30 | if set to false, will not override the process title and let the OS set it. 31 | The length of the title has to be less than or equal to the binary name + cli arguments 32 | NOTE: This does not work on Mac's with node versions prior to v0.10 33 | 34 | healthStatus: default health status to be returned and statsd process starts ['up' or 'down', default: 'up'] 35 | dumpMessages: log all incoming messages 36 | flushInterval: interval (in ms) to flush metrics to each backend 37 | percentThreshold: for time information, calculate the Nth percentile(s) 38 | (can be a single value or list of floating-point values) 39 | negative values mean to use "top" Nth percentile(s) values 40 | [%, default: 90] 41 | flush_counts: send stats_counts metrics [default: true] 42 | 43 | keyFlush: log the most frequently sent keys [object, default: undefined] 44 | interval: how often to log frequent keys [ms, default: 0] 45 | percent: percentage of frequent keys to log [%, default: 100] 46 | log: location of log file for frequent keys [default: STDOUT] 47 | deleteIdleStats: don't send values to graphite for inactive counters, sets, gauges, or timers 48 | as opposed to sending 0. For gauges, this unsets the gauge (instead of sending 49 | the previous value). Can be individually overriden. [default: false] 50 | deleteGauges: don't send values to graphite for inactive gauges, as opposed to sending the previous value [default: false] 51 | deleteTimers: don't send values to graphite for inactive timers, as opposed to sending 0 [default: false] 52 | deleteSets: don't send values to graphite for inactive sets, as opposed to sending 0 [default: false] 53 | deleteCounters: don't send values to graphite for inactive counters, as opposed to sending 0 [default: false] 54 | prefixStats: prefix to use for the statsd statistics data for this running instance of statsd [default: statsd] 55 | applies to both legacy and new namespacing 56 | 57 | console: 58 | prettyprint: whether to prettyprint the console backend 59 | output [true or false, default: true] 60 | 61 | log: log settings [object, default: undefined] 62 | backend: where to log: stdout or syslog [string, default: stdout] 63 | application: name of the application for syslog [string, default: statsd] 64 | level: log level for [node-]syslog [string, default: LOG_INFO] 65 | 66 | graphite: 67 | legacyNamespace: use the legacy namespace [default: true] 68 | globalPrefix: global prefix to use for sending stats to graphite [default: "stats"] 69 | prefixCounter: graphite prefix for counter metrics [default: "counters"] 70 | prefixTimer: graphite prefix for timer metrics [default: "timers"] 71 | prefixGauge: graphite prefix for gauge metrics [default: "gauges"] 72 | prefixSet: graphite prefix for set metrics [default: "sets"] 73 | globalSuffix: global suffix to use for sending stats to graphite [default: ""] 74 | This is particularly useful for sending per host stats by 75 | settings this value to: require('os').hostname().split('.')[0] 76 | 77 | repeater: an array of hashes of the for host: and port: 78 | that details other statsd servers to which the received 79 | packets should be "repeated" (duplicated to). 80 | e.g. [ { host: '10.10.10.10', port: 8125 }, 81 | { host: 'observer', port: 88125 } ] 82 | 83 | repeaterProtocol: whether to use udp4 or udp6 for repeaters. 84 | ["udp4" or "udp6", default: "udp4"] 85 | 86 | histogram: for timers, an array of mappings of strings (to match metrics) and 87 | corresponding ordered non-inclusive upper limits of bins. 88 | For all matching metrics, histograms are maintained over 89 | time by writing the frequencies for all bins. 90 | 'inf' means infinity. A lower limit of 0 is assumed. 91 | default: [], meaning no histograms for any timer. 92 | First match wins. examples: 93 | * histogram to only track render durations, with unequal 94 | class intervals and catchall for outliers: 95 | [ { metric: 'render', bins: [ 0.01, 0.1, 1, 10, 'inf'] } ] 96 | * histogram for all timers except 'foo' related, 97 | equal class interval and catchall for outliers: 98 | [ { metric: 'foo', bins: [] }, 99 | { metric: '', bins: [ 50, 100, 150, 200, 'inf'] } ] 100 | 101 | automaticConfigReload: whether to watch the config file and reload it when it 102 | changes. The default is true. Set this to false to disable. 103 | */ 104 | { 105 | port: 8125, 106 | backends: ["statsd-influxdb-backend" ], 107 | 108 | influxdb: { 109 | host: '127.0.0.1', // InfluxDB host. (default 127.0.0.1) 110 | port: 8086, // InfluxDB port. (default 8086) 111 | ssl: false, // InfluxDB is hosted over SSL. (default false) 112 | database: 'rbx', // InfluxDB database instance. (required) 113 | username: 'root', // InfluxDB database username. (required) 114 | password: 'root', // InfluxDB database password. (required) 115 | flush: { 116 | enable: true // Enable regular flush strategy. (default true) 117 | }, 118 | proxy: { 119 | enable: false, // Enable the proxy strategy. (default false) 120 | suffix: 'raw', // Metric name suffix. (default 'raw') 121 | flushInterval: 1000 // Flush interval for the internal buffer. 122 | // (default 1000) 123 | } 124 | }, 125 | debug: true 126 | } -------------------------------------------------------------------------------- /supervisord/supervisord.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | nodaemon = true 3 | 4 | [program:statsd] 5 | command = statsd /statsd/config.js 6 | stdout_logfile = /var/log/supervisor/%(program_name)s.log 7 | stderr_logfile = /var/log/supervisor/%(program_name)s.log 8 | autorestart = true 9 | 10 | [program:influxdb] 11 | command = influxdb -config /opt/influxdb/shared/config.toml 12 | stdout_logfile = /var/log/supervisor/%(program_name)s.log 13 | stderr_logfile = /var/log/supervisor/%(program_name)s.log 14 | autorestart = true 15 | 16 | [program:nginx] 17 | command = bash -c "/src/grafana/setup.sh && /usr/sbin/nginx" 18 | stdout_logfile = /var/log/supervisor/%(program_name)s.log 19 | stderr_logfile = /var/log/supervisor/%(program_name)s.log 20 | autorestart = true 21 | --------------------------------------------------------------------------------