This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bio: | |
Julien est un développeur OpenStack depuis 4 ans, et des principaux développeurs de Ceilometer | |
depuis son incubation au sein d'OpenStack. Il travaille comme Principal Software Engineer chez Red Hat. | |
Pitch: | |
L'année dernière, un nouveau projet à fait son apparition au sein de Ceilometer: Gnocchi. | |
Il répond à la problématique de stockage des métriques à grande échelle, problème rencontré | |
par Ceilometer depuis sa création. Pour se faire, il fournit une API REST d'indexation de | |
resources et de stockage de séries temporelles. | |
Durant cette présentation, je vous présenterais les raisons de créations de ce projet, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import time | |
import random | |
import pandas | |
import datetime | |
from gnocchi import carbonara | |
points = 14400 | |
sampling = 5 | |
compress_times = 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def count_lead_and_trail_zeroes(d): | |
"""Count the number of leading and trailing zeroes in an integer.""" | |
b = "{:064b}".format(d) | |
try: | |
return as_str.index("1"), 63 - as_str.rindex("1") | |
except ValueError: | |
return 64, 64 | |
def count_lead_and_trail_zeroes(d): | |
# https://graphics.stanford.edu/~seander/bithacks.html#ZerosOnRightLinear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
# | |
# Copyright © 2016 Red Hat, Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import uuid | |
import logging | |
import os | |
import random | |
import sys | |
from keystoneauth1.identity import v3 | |
from keystoneauth1 import session | |
from keystoneclient.v3 import client as ks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➔ gnocchi metric create -a high | |
+------------------------------------+-------------------------------------------------------------------+ | |
| Field | Value | | |
+------------------------------------+-------------------------------------------------------------------+ | |
| archive_policy/aggregation_methods | std, count, 95pct, min, max, sum, median, mean | | |
| archive_policy/back_window | 0 | | |
| archive_policy/definition | - points: 3600, granularity: 0:00:01, timespan: 1:00:00 | | |
| | - points: 10080, granularity: 0:01:00, timespan: 7 days, 0:00:00 | | |
| | - points: 8760, granularity: 1:00:00, timespan: 365 days, 0:00:00 | | |
| archive_policy/name | high | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cradox as rados | |
POOL_NAME = "gnocchi-test" | |
CONFFILE = "" | |
USERNAME = "" | |
OBJECT_NAME = "myomapobject" | |
ITER = 100 | |
# options['keyring'] = conf.ceph_keyring | |
# options['key'] = conf.ceph_secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- emacs/src/macfont.m.orig 2017-06-20 11:18:58.000000000 +0200 | |
+++ emacs/src/macfont.m 2017-06-20 11:19:26.000000000 +0200 | |
@@ -2373,9 +2373,9 @@ | |
!= (spacing >= FONT_SPACING_MONO))) | |
continue; | |
- /* Don't use a color bitmap font until it is supported on | |
- free platforms. */ | |
- if (sym_traits & kCTFontTraitColorGlyphs) | |
+ /* Don't use a color bitmap font unless its family is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
from concurrent.futures import thread | |
from gnocchiclient import client | |
from keystoneauth1 import identity | |
from keystoneauth1 import session | |
auth = identity.Password(auth_url=os.getenv("OS_AUTH_URL"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
import cProfile | |
import random | |
import uuid | |
import daiquiri | |
import numpy | |
from gnocchi.cli import metricd | |
from gnocchi import incoming |