Here's the above code with some additional comments for explanation
class ProxyQueryRange(PrometheusProxy):
def get(self, request):
data = []
futures = []
resultType = None| { | |
| "annotations": { | |
| "list": [] | |
| }, | |
| "editable": true, | |
| "gnetId": null, | |
| "graphTooltip": 0, | |
| "hideControls": false, | |
| "id": null, | |
| "links": [], |
Here's the above code with some additional comments for explanation
class ProxyQueryRange(PrometheusProxy):
def get(self, request):
data = []
futures = []
resultType = Nonehttps://prometheus.io/docs/operating/storage/#settings-for-high-numbers-of-time-series prometheus/prometheus#455 (comment)
So if I got you right: one can approx expect(storage.local.memory-chunks \ 1024)*5 ~= max RAM used in MiB ?
Strictly speaking, each chunk will only take 1k of RAM.
I hereby claim:
To claim this, I am signing this object:
| import logging | |
| from gntp.notifier import GrowlNotifier | |
| logging.basicConfig(level=logging.DEBUG) # So you can see the gntp messages | |
| growl = GrowlNotifier(notifications=['test']) | |
| growl.register() | |
| growl.notify('test', 'test', 'test') | |
| # Remove the app from growl | |
| growl.notify('test', 'test', 'test') |
| my_repo: | |
| git.latest: | |
| - name: https://github.com/some/repo.git | |
| - rev: develop | |
| - target: /opt/foo | |
| run_make: | |
| cmd.run: | |
| - cwd: /opt/foo | |
| - name: make install | |
| - watch: |
| import re | |
| import hashlib | |
| import time | |
| import StringIO | |
| __version__ = '0.7' | |
| #GNTP/<version> <messagetype> <encryptionAlgorithmID>[:<ivValue>][ <keyHashAlgorithmID>:<keyHash>.<salt>] | |
| GNTP_INFO_LINE = re.compile( | |
| 'GNTP/(?P<version>\d+\.\d+) (?P<messagetype>REGISTER|NOTIFY|SUBSCRIBE|\-OK|\-ERROR)' + |
| import socket | |
| REGISTER = """GNTP/1.0 REGISTER NONE | |
| Application-Name: Testing | |
| Notifications-Count: 1 | |
| Notification-Enabled: True | |
| Notification-Name: Testing | |
| """ |
| -- Taken from http://stackoverflow.com/questions/495323/quit-all-applications-using-applescript/495346#495346 | |
| tell application "System Events" to set the visible of every process to true | |
| set white_list to {"Finder", "Adium", "iTunes", "Transmission", "HardwareGrowler", "AppleScript Editor"} | |
| tell application "Finder" | |
| set process_list to the name of every process whose visible is true | |
| end tell | |
| repeat with i from 1 to (number of items in process_list) |
| #!/bin/bash | |
| # From http://sector-5.net/archives/irssi-python-for-irssi-0-8-15/ | |
| cd irssi-python && | |
| svn revert -R . && | |
| patch -p0 -i ../irssi-python-for-0.8.14.patch | |
| sed -i 's/ docs//' Makefile.am && | |
| sed -i 's|docs/Makefile||' 'configure.in' && | |
| sed -i 's/pyconstants.c/pycore.c/' 'configure.in' && | |
| cp /usr/share/autoconf-archive/ac_python_devel.m4 . && | |
| libtoolize -f -c && |