1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336
|
==================
The Render URL API
==================
The graphite webapp provides a ``/render`` endpoint for generating graphs
and retrieving raw data. This endpoint accepts various arguments via query
string parameters. These parameters are separated by an ampersand (``&``)
and are supplied in the format:
.. code-block:: none
&name=value
To verify that the api is running and able to generate images, open
``http://GRAPHITE_HOST:GRAPHITE_PORT/render`` in a browser. The api should
return a simple 330x250 image with the text "No Data".
Once the api is running and you've begun
:doc:`feeding data into carbon </feeding-carbon>`, use the parameters below to
customize your graphs and pull out raw data. For example:
.. code-block:: none
# single server load on large graph
http://graphite/render?target=server.web1.load&height=800&width=600
# average load across web machines over last 12 hours
http://graphite/render?target=averageSeries(server.web*.load)&from=-12hours
# number of registered users over past day as raw json data
http://graphite/render?target=app.numUsers&format=json
# rate of new signups per minute
http://graphite/render?target=summarize(derivative(app.numUsers),"1min")&title=New_Users_Per_Minute
.. note::
Most of the functions and parameters are case sensitive.
For example ``&linewidth=2`` will fail silently.
The correct parameter in this case is ``&lineWidth=2``
Graphing Metrics
================
To begin graphing specific metrics, pass one or more target_ parameters
and specify a time window for the graph via `from / until`_.
target
------
The ``target`` parameter specifies a path identifying one or several metrics, optionally with functions acting on
those metrics. Paths are documented below, while functions are listed on the :doc:`functions` page.
.. _paths-and-wildcards:
Paths and Wildcards
^^^^^^^^^^^^^^^^^^^
Metric paths show the "." separated path from the root of the metrics tree (often starting with ``servers``) to
a metric, for example ``servers.ix02ehssvc04v.cpu.total.user``.
Paths also support the following wildcards, which allows you to identify more than one metric in a single path.
*Asterisk*
The asterisk (``*``) matches zero or more characters. It is non-greedy, so you can have more
than one within a single path element.
Example: ``servers.ix*ehssvc*v.cpu.total.*`` will return all total CPU metrics for all servers matching the
given name pattern.
*Character list or range*
Characters in square brackets (``[...]``) specify a single character position in the path string, and match if the character
in that position matches one of the characters in the list or range.
A character range is indicated by 2 characters separated by a dash (``-``), and means that any character between
those 2 characters (inclusive) will match. More than one range can be included within the square brackets, e.g.
``foo[a-z0-9]bar`` will match ``foopbar``, ``foo7bar`` etc..
If the characters cannot be read as a range, they are treated as a list - any character in the list will match,
e.g. ``foo[bc]ar`` will match ``foobar`` and ``foocar``. If you want to include a dash (``-``) in your list,
put it at the beginning or end, so it's not interpreted as a range.
*Value list*
Comma-separated values within curly braces (``{foo,bar,...}``) are treated as value lists, and match if any of the
values matches the current point in the path. For example, ``servers.ix01ehssvc04v.cpu.total.{user,system,iowait}``
will match the user, system and I/O wait total CPU metrics for the specified server.
.. note::
All wildcards apply only within a single path element. In other words, they do not include or cross dots (``.``).
Therefore, ``servers.*`` will not match ``servers.ix02ehssvc04v.cpu.total.user``, while ``servers.*.*.*.*`` will.
Tagged Series
^^^^^^^^^^^^^
When querying tagged series, we start with the `seriesByTag <functions.html#graphite.render.functions.seriesByTag>`_ function:
.. code-block:: none
# find all series that have tag1 set to value1
seriesByTag('tag1=value1')
See :ref:`querying tagged series <querying-tagged-series>` for more detail on using `seriesByTag <functions.html#graphite.render.functions.seriesByTag>`_.
Examples
^^^^^^^^
This will draw one or more metrics
Example:
.. code-block:: none
&target=company.server05.applicationInstance04.requestsHandled
(draws one metric)
Let's say there are 4 identical application instances running on each server.
.. code-block:: none
&target=company.server05.applicationInstance*.requestsHandled
(draws 4 metrics / lines)
Now let's say you have 10 servers.
.. code-block:: none
&target=company.server*.applicationInstance*.requestsHandled
(draws 40 metrics / lines)
You can also run any number of :doc:`functions </functions>` on the various metrics before graphing.
.. code-block:: none
&target=averageSeries(company.server*.applicationInstance.requestsHandled)
(draws 1 aggregate line)
Multiple function calls can be chained together either by nesting them or by piping the result into another function (it will be passed to the piped function as its first parameter):
.. code-block:: none
&target=movingAverage(aliasByNode(company.server*.applicationInstance.requestsHandled,1),"5min")
&target=aliasByNode(company.server*.applicationInstance.requestsHandled,1)|movingAverage("5min")
&target=company.server*.applicationInstance.requestsHandled|aliasByNode(1)|movingAverage("5min")
&target=movingAverage(company.server*.applicationInstance.requestsHandled|aliasByNode(1),"5min")
(these are all equivalent)
The target param can also be repeated to graph multiple related metrics.
.. code-block:: none
&target=company.server1.loadAvg&target=company.server1.memUsage
.. note::
If more than 10 metrics are drawn the legend is no longer displayed. See the hideLegend_ parameter for details.
from / until
------------
These are optional parameters that specify the relative or absolute time period to graph.
``from`` specifies the beginning, ``until`` specifies the end.
If ``from`` is omitted, it defaults to 24 hours ago.
If ``until`` is omitted, it defaults to the current time (now).
There are multiple formats for these functions:
.. code-block:: none
&from=-RELATIVE_TIME
&from=ABSOLUTE_TIME
RELATIVE_TIME is a length of time since the current time.
It is always preceded by a minus sign ( - ) and followed by a unit of time.
Valid units of time:
============== ===============
Abbreviation Unit
============== ===============
s Seconds
min Minutes
h Hours
d Days
w Weeks
mon 30 Days (month)
y 365 Days (year)
============== ===============
ABSOLUTE_TIME is in the format HH:MM_YYYYMMDD, YYYYMMDD, MM/DD/YY, or any other
``at(1)``-compatible time format.
============= =======
Abbreviation Meaning
============= =======
HH Hours, in 24h clock format. Times before 12PM must include leading zeroes.
MM Minutes
YYYY 4 Digit Year.
MM Numeric month representation with leading zero
DD Day of month with leading zero
============= =======
``&from`` and ``&until`` can mix absolute and relative time if desired.
Examples:
.. code-block:: none
&from=-8d&until=-7d
(shows same day last week)
&from=04:00_20110501&until=16:00_20110501
(shows 4AM-4PM on May 1st, 2011)
&from=20091201&until=20091231
(shows December 2009)
&from=noon+yesterday
(shows data since 12:00pm on the previous day)
&from=6pm+today
(shows data since 6:00pm on the same day)
&from=january+1
(shows data since the beginning of the current year)
&from=monday
(show data since the previous monday)
template
--------
The ``target`` metrics can use a special ``template`` function which
allows the metric paths to contain variables. Values for these variables
can be provided via the ``template`` query parameter.
Examples
^^^^^^^^
Example:
.. code-block:: none
&target=template(hosts.$hostname.cpu)&template[hostname]=worker1
Default values for the template variables can also be provided:
.. code-block:: none
&target=template(hosts.$hostname.cpu, hostname="worker1")
Positional arguments can be used instead of named ones:
.. code-block:: none
&target=template(hosts.$1.cpu, "worker1")
&target=template(hosts.$1.cpu, "worker1")&template[1]=worker*
In addition to path substitution, variables can be used for numeric and string literals:
.. code-block:: none
&target=template(constantLine($number))&template[number]=123
&target=template(sinFunction($name))&template[name]=nameOfMySineWaveMetric
Data Display Formats
====================
Along with rendering an image, the api can also generate
`SVG <http://www.w3.org/Graphics/SVG/>`_ with embedded metadata, PDF, or return the raw data in various
formats for external graphing, analysis or monitoring.
format
------
Controls the format of data returned.
Affects all ``&targets`` passed in the URL.
Examples:
.. code-block:: none
&format=png
&format=raw
&format=csv
&format=json
&format=svg
&format=pdf
&format=dygraph
&format=rickshaw
png
^^^
Renders the graph as a PNG image of size determined by width_ and height_
raw
^^^
Renders the data in a custom line-delimited format. Targets are output one per line and are of the format
``<target name>,<start timestamp>,<end timestamp>,<series step>|[data]*``
.. code-block:: none
entries,1311836008,1311836013,1|1.0,2.0,3.0,5.0,6.0
csv
^^^
Renders the data in a CSV format suitable for import into a spreadsheet or for processing in a script
.. code-block:: none
entries,2011-07-28 01:53:28,1.0
entries,2011-07-28 01:53:29,2.0
entries,2011-07-28 01:53:30,3.0
entries,2011-07-28 01:53:31,5.0
entries,2011-07-28 01:53:32,6.0
json
^^^^
Renders the data as a json object. The jsonp_ option can be used to wrap this data in a named call
for cross-domain access
.. code-block:: none
[{
"target": "entries",
"datapoints": [
[1.0, 1311836008],
[2.0, 1311836009],
[3.0, 1311836010],
[5.0, 1311836011],
[6.0, 1311836012]
]
}]
svg
^^^
Renders the graph as SVG markup of size determined by width_ and height_. Metadata about
the drawn graph is saved as an embedded script with the variable ``metadata`` being set to
an object describing the graph
.. code-block:: none
<script>
<![CDATA[
metadata = {
"area": {
"xmin": 39.195507812499997,
"ymin": 33.96875,
"ymax": 623.794921875,
"xmax": 1122
},
"series": [
{
"start": 1335398400,
"step": 1800,
"end": 1335425400,
"name": "summarize(test.data, \"30min\", \"sum\")",
"color": "#859900",
"data": [null, null, 1.0, null, 1.0, null, 1.0, null, 1.0, null, 1.0, null, null, null, null],
"options": {},
"valuesPerPoint": 1
}
],
"y": {
"labelValues": [0, 0.25, 0.5, 0.75, 1.0],
"top": 1.0,
"labels": ["0 ", "0.25 ", "0.50 ", "0.75 ", "1.00 "],
"step": 0.25,
"bottom": 0
},
"x": {
"start": 1335398400,
"end": 1335423600
},
"font": {
"bold": false,
"name": "Sans",
"italic": false,
"size": 10
},
"options": {
"lineWidth": 1.2
}
}
]]>
</script>
pdf
^^^
Renders the graph as a PDF of size determined by width_ and height_.
dygraph
^^^^^^^
Renders the data as a json object suitable for passing to a `Dygraph <http://dygraphs.com/data.html>`_ object.
.. code-block:: none
{
"labels" : [
"Time",
"entries"
],
"data" : [
[1468791890000, 0.0],
[1468791900000, 0.0]
]
}
rickshaw
^^^^^^^^
Renders the data as a json object suitable for passing to a `Rickshaw <https://tech.shutterstock.com/rickshaw/tutorial/introduction.html>`_ object.
.. code-block:: none
[{
"target": "entries",
"datapoints": [{
"y": 0.0,
"x": 1468791890
}, {
"y": 0.0,
"x": 1468791900
}]
}]
pickle
^^^^^^
Returns a Python `pickle <http://docs.python.org/library/pickle.html>`_ (serialized Python object).
The response will have the MIME type 'application/pickle'. The pickled object is a list of
dictionaries with the keys: ``name``, ``start``, ``end``, ``step``, and ``values`` as below:
.. code-block:: python
[
{
'name' : 'summarize(test.data, "30min", "sum")',
'start': 1335398400,
'end' : 1335425400,
'step' : 1800,
'values' : [None, None, 1.0, None, 1.0, None, 1.0, None, 1.0, None, 1.0, None, None, None, None],
}
]
rawData
-------
.. deprecated:: 0.9.9
This option is deprecated in favor of format
Used to get numerical data out of the webapp instead of an image.
Can be set to true, false, csv.
Affects all ``&targets`` passed in the URL.
Example:
.. code-block:: none
&target=carbon.agents.graphiteServer01.cpuUsage&from=-5min&rawData=true
Returns the following text:
.. code-block:: none
carbon.agents.graphiteServer01.cpuUsage,1306217160,1306217460,60|0.0,0.00666666520965,0.00666666624282,0.0,0.0133345399694
.. _graph-parameters :
Graph Parameters
================
.. _param-areaAlpha:
areaAlpha
---------
*Default: 1.0*
Takes a floating point number between 0.0 and 1.0
Sets the alpha (transparency) value of filled areas when using an areaMode_
.. _param-areaMode:
areaMode
--------
*Default: none*
Enables filling of the area below the graphed lines. Fill area is the same color as
the line color associated with it. See areaAlpha_ to make this area transparent.
Takes one of the following parameters which determines the fill mode to use:
``none``
Disables areaMode
``first``
Fills the area under the first target and no other
``all``
Fills the areas under each target
``stacked``
Creates a graph where the filled area of each target is stacked on one another.
Each target line is displayed as the sum of all previous lines plus the value of the current line.
.. _param-bgcolor:
bgcolor
-------
*Default: value from the [default] template in graphTemplates.conf*
Sets the background color of the graph.
============ =============
Color Names RGB Value
============ =============
black 0,0,0
white 255,255,255
blue 100,100,255
green 0,200,0
red 200,0,50
yellow 255,255,0
orange 255, 165, 0
purple 200,100,255
brown 150,100,50
aqua 0,150,150
gray 175,175,175
grey 175,175,175
magenta 255,0,255
pink 255,100,100
gold 200,200,0
rose 200,150,200
darkblue 0,0,255
darkgreen 0,255,0
darkred 255,0,0
darkgray 111,111,111
darkgrey 111,111,111
============ =============
RGB can be passed directly in the format #RRGGBB[AA] where RR, GG, and BB are 2-digit hex values for red, green and blue, respectively. AA is an optional addition describing the opacity ("alpha"). Where FF is fully opaque, 00 fully transparent.
Examples:
.. code-block:: none
&bgcolor=blue
&bgcolor=2222FF
&bgcolor=5522FF60
.. _param-cacheTimeout:
cacheTimeout
------------
*Default: The value of DEFAULT_CACHE_DURATION from local_settings.py*
The time in seconds for the rendered graph to be cached (only relevant if memcached is configured)
.. _param-colorList:
colorList
---------
*Default: value from the [default] template in graphTemplates.conf*
Takes one or more comma-separated color names or RGB values (see bgcolor for a list of color names) and uses that list in order as the colors of the lines.
If more lines / metrics are drawn than colors passed, the list is reused in order. Any RGB value can also have an optional transparency (00 being fully transparent, FF being opaque), as shown in the second example.
Example:
.. code-block:: none
&colorList=green,yellow,orange,red,purple,DECAFF
&colorList=FF000055,00FF00AA,DECAFFEF
.. _param-drawNullAsZero:
drawNullAsZero
--------------
*Default: false*
Converts any None (null) values in the displayed metrics to zero at render time.
.. _param-fgcolor:
fgcolor
-------
*Default: value from the [default] template in graphTemplates.conf*
Sets the foreground color.
This only affects the title, legend text, and axis labels.
See majorGridLineColor_, and minorGridLineColor_ for further control of colors.
See bgcolor_ for a list of color names and details on formatting this parameter.
.. _param-fontBold:
fontBold
--------
*Default: value from the [default] template in graphTemplates.conf*
If set to true, makes the font bold.
Example:
.. code-block:: none
&fontBold=true
.. _param-fontItalic:
fontItalic
----------
*Default: value from the [default] template in graphTemplates.conf*
If set to true, makes the font italic / oblique.
Default is false.
Example:
.. code-block:: none
&fontItalic=true
.. _param-fontName:
fontName
--------
*Default: value from the [default] template in graphTemplates.conf*
Change the font used to render text on the graph.
The font must be installed on the Graphite Server.
Example:
.. code-block:: none
&fontName=FreeMono
.. _param-fontSize:
fontSize
--------
*Default: value from the [default] template in graphTemplates.conf*
Changes the font size.
Must be passed a positive floating point number or integer equal to or greater than 1.
Default is 10
Example:
.. code-block:: none
&fontSize=8
.. _param-format:
format
------
See: `Data Display Formats`_
.. _param-from:
from
----
See: `from / until`_
.. _param-graphOnly:
graphOnly
---------
*Default: False*
Display only the graph area with no grid lines, axes, or legend
.. _param-graphType:
graphType
---------
*Default: line*
Sets the type of graph to be rendered. Currently there are only two graph types:
``line``
A line graph displaying metrics as lines over time
``pie``
A pie graph with each slice displaying an aggregate of each metric calculated using the function
specified by pieMode_
.. _param-hideLegend:
hideLegend
----------
*Default: <unset>*
If set to ``true``, the legend is not drawn.
If set to ``false``, the legend is drawn.
If unset, the ``LEGEND_MAX_ITEMS`` settings in ``local_settings.py`` is used to determine
whether or not to display the legend.
Hint: If set to ``false`` the ``&height`` parameter may need to be increased to accommodate the additional text.
Example:
.. code-block:: none
&hideLegend=false
.. _param-hideNullFromLegend:
hideNullFromLegend
------------------
*Default: False*
If set to ``true``, series with all null values will not be reported in the legend.
Example:
.. code-block:: none
&hideNullFromLegend=true
.. _param-hideAxes:
hideAxes
--------
*Default: False*
If set to ``true`` the X and Y axes will not be rendered
Example:
.. code-block:: none
&hideAxes=true
.. _param-hideXAxis:
hideXAxis
---------
*Default: False*
If set to ``true`` the X Axis will not be rendered
.. _param-hideYAxis:
hideYAxis
---------
*Default: False*
If set to ``true`` the Y Axis will not be rendered
.. _param-hideGrid:
hideGrid
--------
*Default: False*
If set to ``true`` the grid lines will not be rendered
Example:
.. code-block:: none
&hideGrid=true
.. _param-height:
height
------
*Default: 250*
Sets the height of the generated graph image in pixels.
See also: width_
Example:
.. code-block:: none
&width=650&height=250
.. _param-jsonp:
jsonp
-----
*Default: <unset>*
If set and combined with ``format=json``, wraps the JSON response in a function call
named by the parameter specified.
.. _param-leftColor:
leftColor
---------
*Default: color chosen from* colorList_
In dual Y-axis mode, sets the color of all metrics associated with the left Y-axis.
.. _param-leftDashed:
leftDashed
----------
*Default: False*
In dual Y-axis mode, draws all metrics associated with the left Y-axis using dashed lines
.. _param-leftWidth:
leftWidth
---------
*Default: value of the parameter* lineWidth_
In dual Y-axis mode, sets the line width of all metrics associated with the left Y-axis
.. _param-lineMode:
lineMode
--------
*Default: slope*
Sets the line drawing behavior. Takes one of the following parameters:
``slope``
Slope line mode draws a line from each point to the next. Periods with Null values will not be drawn
``staircase``
Staircase draws a flat line for the duration of a time period and then a vertical line up or down to the next value
``connected``
Like a slope line, but values are always connected with a slope line, regardless of whether or not there are Null values between them
Example:
.. code-block:: none
&lineMode=staircase
.. _param-lineWidth:
lineWidth
---------
*Default: 1.2*
Takes any floating point or integer (negative numbers do not error but will cause no line to be drawn).
Changes the width of the line in pixels.
Example:
.. code-block:: none
&lineWidth=2
.. _param-logBase:
logBase
-------
*Default: <unset>*
If set, draws the graph with a logarithmic scale of the specified base (e.g. 10 for common logarithm)
.. _param-localOnly:
localOnly
---------
*Default: False*
Set to prevent fetching from remote Graphite servers, only returning metrics which are accessible locally
.. _param-majorGridLineColor:
majorGridLineColor
------------------
*Default: value from the [default] template in graphTemplates.conf*
Sets the color of the major grid lines.
See bgcolor_ for valid color names and formats.
Example:
.. code-block:: none
&majorGridLineColor=FF22FF
.. _param-margin:
margin
------
*Default: 10*
Sets the margin around a graph image in pixels on all sides.
Example:
.. code-block:: none
&margin=20
.. _param-max:
max
---
.. deprecated:: 0.9.0
See yMax_
.. _param-maxDataPoints:
maxDataPoints
-------------
Set the maximum numbers of datapoints for each series returned when using json content.
If for any output series the number of datapoints in a selected range exceeds the maxDataPoints value then the datapoints over the whole period are consolidated.
The function used to consolidate points can be set using the `consolidateBy <functions.html#graphite.render.functions.consolidateBy>`_ function.
.. _param-minorGridLineColor:
minorGridLineColor
------------------
*Default: value from the [default] template in graphTemplates.conf*
Sets the color of the minor grid lines.
See bgcolor_ for valid color names and formats.
Example:
.. code-block:: none
&minorGridLineColor=darkgrey
.. _param-minorY:
minorY
------
Sets the number of minor grid lines per major line on the y-axis.
Example:
.. code-block:: none
&minorY=3
.. _param-min:
min
---
.. deprecated:: 0.9.0
See yMin_
.. _param-minXStep:
minXStep
--------
*Default: 1*
Sets the minimum pixel-step to use between datapoints drawn. Any value below this will trigger a
point consolidation of the series at render time. The default value of ``1`` combined with the default
lineWidth of ``1.2`` will cause a minimal amount of line overlap between close-together points. To
disable render-time point consolidation entirely, set this to ``0`` though note that series with more points
than there are pixels in the graph area (e.g. a few month's worth of per-minute data) will look very
'smooshed' as there will be a good deal of line overlap. In response, one may use lineWidth_ to compensate
for this.
.. _param-noCache:
noCache
-------
*Default: False*
Set to disable caching of rendered images
.. _param-noNullPoints:
noNullPoints
------------
*Default: False*
If set and combined with ``format=json``, removes all null datapoints from the series returned.
.. _param-pickle:
pickle
------
.. deprecated:: 0.9.10
See `Data Display Formats`_
.. _param-pieLabels:
pieLabels
---------
*Default: horizontal*
Orientation to use for slice labels inside of a pie chart.
``horizontal``
Labels are oriented horizontally within each slice
``rotated``
Labels are oriented radially within each slice
.. _param-pieMode:
pieMode
-------
*Default: average*
The type of aggregation to use to calculate slices of a pie when ``graphType=pie``.
One of:
``average``
The average of non-null points in the series
``maximum``
The maximum of non-null points in the series
``minimum``
THe minimum of non-null points in the series
.. _param-pretty:
pretty
------
*Default: <unset>*
If set to 1 and combined with ``format=json``, outputs human-friendly json.
.. _param-rightColor:
rightColor
----------
*Default: color chosen from* colorList_
In dual Y-axis mode, sets the color of all metrics associated with the right Y-axis.
.. _param-rightDashed:
rightDashed
-----------
*Default: False*
In dual Y-axis mode, draws all metrics associated with the right Y-axis using dashed lines
.. _param-rightWidth:
rightWidth
----------
*Default: value of the parameter* lineWidth_
In dual Y-axis mode, sets the line width of all metrics associated with the right Y-axis
.. _param-template:
template
--------
*Default: default*
Used to specify a template from ``graphTemplates.conf`` to use for default
colors and graph styles.
Example:
.. code-block:: none
&template=plain
.. _param-thickness:
thickness
---------
.. deprecated:: 0.9.0
See: lineWidth_
.. _param-title:
title
-----
*Default: <unset>*
Puts a title at the top of the graph, center aligned.
If unset, no title is displayed.
Example:
.. code-block:: none
&title=Apache Busy Threads, All Servers, Past 24h
.. _param-tz:
tz
--
*Default: The timezone specified in local_settings.py*
Time zone to convert all times into.
Examples:
.. code-block:: none
&tz=America/Los_Angeles
&tz=UTC
.. note::
To change the default timezone, edit ``webapp/graphite/local_settings.py``.
.. _param-uniqueLegend:
uniqueLegend
------------
*Default: False*
Display only unique legend items, removing any duplicates
.. _param-until:
until
-----
See: `from / until`_
.. _param-valueLabels:
valueLabels
-----------
*Default: percent*
Determines how slice labels are rendered within a pie chart.
``none``
Slice labels are not shown
``numbers``
Slice labels are reported with the original values
``percent``
Slice labels are reported as a percent of the whole
.. _param-valueLabelsColor:
valueLabelsColor
----------------
*Default: black*
Color used to draw slice labels within a pie chart.
.. _param-valueLabelsMin:
valueLabelsMin
--------------
*Default: 5*
Slice values below this minimum will not have their labels rendered.
.. _param-vtitle:
vtitle
------
*Default: <unset>*
Labels the y-axis with vertical text.
If unset, no y-axis label is displayed.
Example:
.. code-block:: none
&vtitle=Threads
.. _param-vtitleRight:
vtitleRight
-----------
*Default: <unset>*
In dual Y-axis mode, sets the title of the right Y-Axis (See: `vtitle`_)
.. _param-width:
width
-----
*Default: 330*
Sets the width of the generated graph image in pixels.
See also: height_
Example:
.. code-block:: none
&width=650&height=250
.. _param-xFilesFactor:
xFilesFactor
------------
*Default: DEFAULT_XFILES_FACTOR specified in local_settings.py or 0*
Sets the default `xFilesFactor` value used when performing runtime aggregation across multiple
series and/or intervals.
See the `xFilesFactor <functions.html#graphite.render.functions.setXFilesFactor>`_ function for
more information on the `xFilesFactor` value and how the default can be overridden for specific
targets or series.
.. _param-xFormat:
xFormat
-------
*Default: Determined automatically based on the time-width of the X axis*
Sets the time format used when displaying the X-axis. See
`datetime.date.strftime() <http://docs.python.org/library/datetime.html#datetime.date.strftime>`_
for format specification details.
.. _param-yAxisSide:
yAxisSide
---------
*Default: left*
Sets the side of the graph on which to render the Y-axis. Accepts values of ``left`` or ``right``
.. _param-yDivisors:
yDivisors
---------
*Default: 4,5,6*
Sets the preferred number of intermediate values to display on the Y-axis (Y values between the
minimum and maximum). Note that Graphite will ultimately choose what values (and how many) to
display based on a 'pretty' factor, which tries to maintain a sensible scale (e.g. preferring
intermediary values like 25%,50%,75% over 33.3%,66.6%). To explicitly set the Y-axis values,
see `yStep`_
.. _param-yLimit:
yLimit
------
*Reserved for future use*
See: yMax_
.. _param-yLimitLeft:
yLimitLeft
----------
*Reserved for future use*
See: yMaxLeft_
.. _param-yLimitRight:
yLimitRight
-----------
*Reserved for future use*
See: yMaxRight_
.. _param-yMin:
yMin
----
*Default: The lowest value of any of the series displayed*
Manually sets the lower bound of the graph. Can be passed any integer or floating point number.
Example:
.. code-block:: none
&yMin=0
.. _param-yMax:
yMax
----
*Default: The highest value of any of the series displayed*
Manually sets the upper bound of the graph. Can be passed any integer or floating point number.
Example:
.. code-block:: none
&yMax=0.2345
.. _param-yMaxLeft:
yMaxLeft
--------
In dual Y-axis mode, sets the upper bound of the left Y-Axis (See: `yMax`_)
.. _param-yMaxRight:
yMaxRight
---------
In dual Y-axis mode, sets the upper bound of the right Y-Axis (See: `yMax`_)
.. _param-yMinLeft:
yMinLeft
--------
In dual Y-axis mode, sets the lower bound of the left Y-Axis (See: `yMin`_)
.. _param-yMinRight:
yMinRight
---------
In dual Y-axis mode, sets the lower bound of the right Y-Axis (See: `yMin`_)
.. _param-yStep:
yStep
-----
*Default: Calculated automatically*
Manually set the value step between Y-axis labels and grid lines
.. _param-yStepLeft:
yStepLeft
---------
In dual Y-axis mode, Manually set the value step between the left Y-axis labels and grid lines (See: `yStep`_)
.. _param-yStepRight:
yStepRight
----------
In dual Y-axis mode, Manually set the value step between the right Y-axis labels and grid lines (See: `yStep`_)
.. _param-yUnitSystem:
yUnitSystem
-----------
*Default: si*
Set the unit system for compacting Y-axis values (e.g. 23,000,000 becomes 23M).
Value can be one of:
``si``
Use si units (powers of 1000) - K, M, G, T, P
``binary``
Use binary units (powers of 1024) - Ki, Mi, Gi, Ti, Pi
``sec``
Use time units (seconds) - m, H, D, M, Y
``msec``
Use time units (milliseconds) - s, m, H, D, M, Y
``none``
Dont compact values, display the raw number
|