]> arthur.barton.de Git - netdata.git/commitdiff
increased version in html for CDN refresh; updated API reference for badge.svg; insta...
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 4 Jun 2016 17:07:33 +0000 (20:07 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 4 Jun 2016 17:07:33 +0000 (20:07 +0300)
charts.d/Makefile.am
netdata-installer.sh
src/web_client.c
web/dashboard.html
web/demo.html
web/demo2.html
web/demosites.html
web/index.html
web/netdata-swagger.yaml
web/registry.html
web/tv.html

index ad11e972a8a867d9a67aaac1926a745e97a28f86..268b4086f7cb88733942764c70b175495e9ceda1 100644 (file)
@@ -11,6 +11,7 @@ dist_charts_SCRIPTS = \
        cpufreq.chart.sh \
        crsproxy.chart.sh \
        example.chart.sh \
+       exim.chart.sh \
        load_average.chart.sh \
        mem_apps.chart.sh \
        mysql.chart.sh \
index f07da52de239cb4f382d4ce7c4d39a9ec43e2338..1c08d8d9b7ac7f6062cd83f3f8856fedba9bde35 100755 (executable)
@@ -607,7 +607,7 @@ if [ "${UID}" -eq 0 ]
                fi
 
                stop_all_netdata
-               run service netdata start && started=1
+               run service netdata restart && started=1
        fi
 
        if [ ${started} -eq 0 ]
@@ -615,7 +615,11 @@ if [ "${UID}" -eq 0 ]
                # check if we can use the system service
                run service netdata stop
                stop_all_netdata
-               run service netdata start && started=1
+               run service netdata restart && started=1
+               if [ ${started} -eq 0 ]
+               then
+                       run service netdata start && started=1
+               fi
        fi
 fi
 
index 87787f785aaac23f8518302bd99f9210f0c9e06c..b728e1d3d585252d08b954f19e3f9bcf96d696de 100644 (file)
@@ -740,9 +740,6 @@ int web_client_api_v1_badge(struct web_client *w, char *url) {
                else if(!strcmp(name, "group")) {
                        group = web_client_api_request_v1_data_group(value);
                }
-               else if(!strcmp(name, "format")) {
-                       format = web_client_api_request_v1_data_format(value);
-               }
                else if(!strcmp(name, "options")) {
                        options |= web_client_api_request_v1_data_options(value);
                }
index 0f9aca69f3cbcba2bbbc64422d3365f2773e363d..49bdc73748e41ef87398bb56e24112057a88b406 100644 (file)
@@ -654,4 +654,4 @@ So, to avoid flashing the charts, we destroy and re-create the charts on each up
        <!-- <script> netdataServer = "http://box:19999"; </script> -->
 
        <!-- load the dashboard manager - it will do the rest -->
-       <script type="text/javascript" src="dashboard.js?v38"></script>
+       <script type="text/javascript" src="dashboard.js?v39"></script>
index 108a9486703d4e85585199f5d9edbeedadfdd24a..051c9421c4cc1ae14abfe45995ae9390f7c7039d 100644 (file)
@@ -19,7 +19,7 @@
        <meta property="og:title" content="netdata - real-time performance monitoring, done right!"/>
        <meta property="og:description" content="Stunning real-time dashboards, blazingly fast and extremely interactive. Zero configuration, zero dependencies, zero maintenance." />
        
-       <script type="text/javascript" src="dashboard.js?v38"></script>
+       <script type="text/javascript" src="dashboard.js?v39"></script>
 </head>
 <body>
 
index 237facd41e383215ad2a98c9ef7cb39dc7d4caf5..8fe28d45bae7d783c35bb1a1c689006267f4cf32 100644 (file)
@@ -20,7 +20,7 @@
        <meta property="og:description" content="Stunning real-time dashboards, blazingly fast and extremely interactive. Zero configuration, zero dependencies, zero maintenance." />
 
        <script>var netdataTheme = 'slate';</script>
-       <script type="text/javascript" src="dashboard.js?v38"></script>
+       <script type="text/javascript" src="dashboard.js?v39"></script>
 </head>
 <body>
 
index 3a106ede869a566942d26f680a917df4640061a2..93c4e14957eae5fb0220e2bd9ece453f57fe9282 100644 (file)
@@ -50,7 +50,7 @@
                and that you have chown it to be owned by netdata:netdata
        -->
        <!-- <script type="text/javascript" src="http://my.server:19999/dashboard.js"></script> -->
-       <script type="text/javascript" src="dashboard.js?v38"></script>
+       <script type="text/javascript" src="dashboard.js?v39"></script>
 
        <script>
        // --- OPTIONS FOR THE CHARTS --
index a52fa02153607176cc67820c9e7be089fa16371b..cb92af5ab791d3d5148674dc8b6ebda74d9113bc 100644 (file)
        </script>
 
        <!-- load the dashboard manager - it will do the rest -->
-       <script type="text/javascript" src="dashboard.js?v37"></script>
+       <script type="text/javascript" src="dashboard.js?v39"></script>
 </head>
 
 <body data-spy="scroll" data-target="#sidebar">
@@ -2427,14 +2427,14 @@ function finalizePage() {
                offset: $(window).height() / 3 // controls the diff of the <hX> element to the top, to select it
        });
 
-       $('#sidebar').on('activate.bs.scrollspy', function (e)\r
-       {\r
-               var el = $(e.target);\r
-               if (el.find('ul').size() == 0)\r
-               {\r
-                       var href = el.find('a').attr('href');\r
-                       history.pushState(null, document.title, href);\r
-               };\r
+       $('#sidebar').on('activate.bs.scrollspy', function (e)
+       {
+               var el = $(e.target);
+               if (el.find('ul').size() == 0)
+               {
+                       var href = el.find('a').attr('href');
+                       history.pushState(null, document.title, href);
+               };
        });
 
        document.getElementById('footer').style.display = 'block';
index 7dfef0aa8b801cd923547ee0c70fa933784d00c3..55211b39de65361c7d206a87e123ba9fedb99f4f 100644 (file)
@@ -2,7 +2,7 @@ swagger: '2.0'
 info:
   title: NetData API
   description: 'Real time data collection and graphs...'
-  version: 1.0.0
+  version: 1.2.1_master
 host: netdata.firehol.org
 schemes:
   - http
@@ -143,6 +143,123 @@ paths:
           description: 'No chart with the given id is found.'
         '500':
           description: 'Internal server error. This usually means the server is out of memory.'
+  /badge.svg:
+    get:
+      summary: 'Generate a SVG image for a chart (or dimension)'
+      description: |
+        Successful responses are SVG images
+      parameters:
+        - name: chart
+          in: query
+          description: 'The id of the chart as returned by the /charts call.'
+          required: true
+          type: string
+          format: 'as returned by /charts'
+          allowEmptyValue: false
+          default: system.cpu
+        - name: dimension
+          in: query
+          description: 'zero, one or more dimension ids, as returned by the /chart call.'
+          required: false
+          type: array
+          items:
+            type: string
+            collectionFormat: pipes
+            format: 'as returned by /charts'
+          allowEmptyValue: false
+        - name: after
+          in: query
+          description: 'This parameter can either be an absolute timestamp specifying the starting point of the data to be returned, or a relative number of seconds, to the last collected timestamp. Netdata will assume it is a relative number if it is smaller than the duration of the round robin database for this chart. So, if the round robin database is 3600 seconds, any value from -3600 to 3600 will trigger relative arithmetics. Netdata will adapt this parameter to the boundaries of the round robin database.'
+          required: true
+          type: number
+          format: integer
+          allowEmptyValue: false
+          default: -600
+        - name: before
+          in: query
+          description: 'This parameter can either be an absolute timestamp specifying the ending point of the data to be returned, or a relative number of seconds, to the last collected timestamp. Netdata will assume it is a relative number if it is smaller than the duration of the round robin database for this chart. So, if the round robin database is 3600 seconds, any value from -3600 to 3600 will trigger relative arithmetics. Netdata will adapt this parameter to the boundaries of the round robin database.'
+          required: false
+          type: number
+          format: integer
+          default: 0
+        - name: points
+          in: query
+          description: 'The number of points to be returned. If not given, or it is <= 0, or it is bigger than the points stored in the round robin database for this chart for the given duration, all the available collected values for the given duration are returned.'
+          required: true
+          type: number
+          format: integer
+          allowEmptyValue: false
+          default: 20
+        - name: group
+          in: query
+          description: 'The grouping method. If multiple collected values are to be grouped in order to return fewer points, this parameters defines the method of grouping. Two methods are supported, "max" and "average". "max" is actually calculated on the absolute value collected (so it works for both positive and negative dimesions to return the most extreme value in either direction).'
+          required: true
+          type: string
+          enum: [ 'max', 'average' ]
+          default: 'average'
+          allowEmptyValue: false
+        - name: options
+          in: query
+          description: 'Options that affect data generation.'
+          required: false
+          type: array
+          items:
+            type: string
+            enum: [ 'nonzero', 'flip', 'abs', 'absolute', 'absolute-sum', 'null2zero', 'percentage' ]
+            collectionFormat: pipes
+          default: ['absolute']
+          allowEmptyValue: true
+        - name: label
+          in: query
+          description: 'a text to be used as the label'
+          required: false
+          type: string
+          format: 'any text'
+          allowEmptyValue: true
+        - name: units
+          in: query
+          description: 'a text to be used as the units'
+          required: false
+          type: string
+          format: 'any text'
+          allowEmptyValue: true
+        - name: label_color
+          in: query
+          description: 'a color to be used for the background of the label'
+          required: false
+          type: string
+          format: 'any text'
+          allowEmptyValue: true
+        - name: value_color
+          in: query
+          description: 'a color to be used for the background of the label. You can set multiple using a pipe with a condition each, like this: color<value|color>value|color:null The following operators are supported: >, <, >=, <=, =, :null (to check if no value exists).'
+          required: false
+          type: string
+          format: 'any text'
+          allowEmptyValue: true
+        - name: multiply
+          in: query
+          description: 'multiply the value with this number for rendering it at the image (integer value required)'
+          required: false
+          type: number
+          format: integer
+          allowEmptyValue: true
+        - name: divide
+          in: query
+          description: 'divide the value with this number for rendering it at the image (integer value required)'
+          required: false
+          type: number
+          format: integer
+          allowEmptyValue: true
+      responses:
+        '200':
+          description: 'The call was successful. The response should be an SVG image.'
+        '400':
+          description: 'Bad request - the body will include a message stating what is wrong.'
+        '404':
+          description: 'No chart with the given id is found.'
+        '500':
+          description: 'Internal server error. This usually means the server is out of memory.'
 definitions:
   chart_summary:
     type: object
index b2e7099c7054422a82fdeb8fefab73d03bf0d5c7..ea308bd239c0810a25ce1f22400bef12440a33a4 100644 (file)
                and that you have chown it to be owned by netdata:netdata
        -->
        <!-- <script type="text/javascript" src="http://my.server:19999/dashboard.js"></script> -->
-       <script type="text/javascript" src="dashboard.js?v38"></script>
+       <script type="text/javascript" src="dashboard.js?v39"></script>
 
        <script>
        // Set options for TV operation
index f80c551bb734985eecb1102df33c5d76c124f2cf..ffef517d3774893e41e12e0cfa6a6f2e9e8c58d4 100644 (file)
@@ -48,7 +48,7 @@
                and that you have chown it to be owned by netdata:netdata
        -->
        <!-- <script type="text/javascript" src="http://my.server:19999/dashboard.js"></script> -->
-       <script type="text/javascript" src="dashboard.js?v38"></script>
+       <script type="text/javascript" src="dashboard.js?v39"></script>
 
        <script>
        // Set options for TV operation