Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 18.0.0 #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ env:
- TWISTED=Twisted==17.9.0

install:
- pip install pyflakes
- pip install -q $TWISTED
- pip install .
- pip install .[dev,beanstalk,elasticsearch,redis]

script:
- pyflakes vor
Expand Down
1 change: 0 additions & 1 deletion AUTHORS

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2012-2014
Copyright (c) 2012-2018
Mochi Media, Inc.
Rackspace Hosting, Inc.
Ralph Meijer
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include NEWS.rst
include LICENSE
44 changes: 44 additions & 0 deletions NEWS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
News
====

This project uses `CalVer <http://calver.org>`_ with a strict backwards
compatibility policy. The third digit is only for regressions.

Changes for the upcoming release can be found in the `vor/newsfragments`
directory.

..
Do *NOT* add changelog entries here!

This changelog is managed by towncrier and is compiled at release time from
the news fragments directory.

.. towncrier release notes start

Vor 18.0.0rc1 (2018-03-07)
==========================

Features
--------

- vor.elasticsearch now supports the Elasticsearch 1.0 API (#1)
- The new module vor.beanstalk adds support for Beanstalk stats. (#2)
- vor.elasticsearch.ElasticSearchNodeStatsGraphiteService now has a boolean
`hostname_only` parameter to strip the domain off the node's name. (#4, #6)
- The new vor.kafka module adds support for Kafka Consumer Offset polling. (#5)
- The new vor.elasticsearch.ElasticSearchIndicesStatsGraphiteService provides a
poller for the Indices Stats API. (#7, #9)
- vor.elasticsearch now supports basic authentication and (non-validated) https
for its pollers. (#10)


Fixes
-----

- vor.elasticsearch pollers now remove spaces from metric names. (#8)


0.0.1 (2014-02-10)
==================

First release
36 changes: 0 additions & 36 deletions README.md

This file was deleted.

63 changes: 63 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
Vör
===

|pypi|
|travis|


What is this?
-------------

Vör is a set of services for gathering metrics by polling systems and
delivering them to graphite.

Currently there is support for polling metrics from Elasticsearch and Redis.


Requirements
------------

- Python 2.7 or pypy equivalent
- Twisted 16.0.0 or later
- incremental 16.9.0 or later
- treq 16.20.0 or later for Elasticsearch support
- txredis for Redis support
- pybeanstalk for Beanstalk support


Copyright and Warranty
----------------------

The code in this distribution started as an internal tool at Mochi Media and
is made available under the MIT License. See the included `LICENSE <LICENSE>`_
file for details.


Contributors
------------

- Christopher Zorn
- Zack Dever
- Dana Powers


Author
------

Ralph Meijer
<mailto:ralphm@ik.nu>
<xmpp:ralphm@ik.nu>


Name
----

In Norse mythology, Vör is a goddess associated with wisdom. She is described
as "wise and inquiring, so that nothing can be concealed from her".


.. |pypi| image:: http://img.shields.io/pypi/v/vor.svg
.. _pypi: https://pypi.python.org/pypi/vor

.. |travis| image:: https://travis-ci.org/mochi/vor.svg?branch=master
.. _travis: https://travis-ci.org/mochi/vor
29 changes: 29 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[tool.towncrier]
package = "vor"
package_dir = "."
filename = "NEWS.rst"

[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true

[[tool.towncrier.type]]
directory = "bugfix"
name = "Fixes"
showcontent = true

[[tool.towncrier.type]]
directory = "doc"
name = "Improved Documentation"
showcontent = true

[[tool.towncrier.type]]
directory = "removal"
name = "Deprecations and Removals"
showcontent = true

[[tool.towncrier.type]]
directory = "misc"
name = "Misc"
showcontent = false
36 changes: 29 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,47 @@

from setuptools import setup

with open('README.rst', 'r') as f:
long_description = f.read()

setup(name='vor',
version='0.0.1',
description='Services for gatheric metrics to send to Graphite',
description='Services for gathering metrics to send to Graphite',
long_description=long_description,
maintainer='Ralph Meijer',
maintainer_email='ralphm@ik.nu',
url='http://github.com/ralphm/vor',
license='MIT',
platforms='any',
classifiers=[
'Programming Language :: Python :: 2.7',
],
packages=[
'vor',
'vor.test',
],
zip_safe=False,
setup_requires=[
'incremental>=16.9.0',
],
use_incremental=True,
install_requires=[
'incremental>=16.9.0',
'Twisted[tls] >= 16.0.0',
'simplejson',
'txredis',
'pyyaml',
'pybeanstalk',
'treq >= 16.12.0',
],
extras_require={
'elasticsearch': [
'treq >= 16.12.0',
],
'redis': [
'txredis',
],
'beanstalk': [
'pybeanstalk',
],
'dev': [
'pyflakes',
'coverage',
'towncrier',
],
},
)
11 changes: 11 additions & 0 deletions vor/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"""
Wokkel.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't wokkel ;)


Support library for Twisted applications using XMPP protocols.
"""

from vor._version import __version__ as _incremental_version

__version__ = _incremental_version.public()

__all__ = ["__version__"]
4 changes: 4 additions & 0 deletions vor/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from incremental import Version

__version__ = Version("vor", 18, 0, 0, release_candidate=1)
__all__ = ["__version__"]
1 change: 0 additions & 1 deletion vor/newsfragments/10.feature

This file was deleted.

12 changes: 6 additions & 6 deletions vor/test/test_elasticsearch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import simplejson
import json
import time

from twisted.trial import unittest
Expand Down Expand Up @@ -205,7 +205,7 @@ def setUp(self):

}"""

data = simplejson.loads(stats)
data = json.loads(stats)
self.collector.flatten(data)
self.result = self.collector.protocol.output

Expand Down Expand Up @@ -1493,8 +1493,8 @@ def setUp(self):
},
"cluster_name" : "production"
}"""
self.collector.flatten(simplejson.loads(stats))
self.collector_hostname_only.flatten(simplejson.loads(stats))
self.collector.flatten(json.loads(stats))
self.collector_hostname_only.flatten(json.loads(stats))
self.result = self.collector.protocol.output
self.result_hostname_only = self.collector_hostname_only.protocol.output

Expand Down Expand Up @@ -1631,7 +1631,7 @@ def setUp(self):

}"""

data = simplejson.loads(stats)
data = json.loads(stats)
self.collector.flatten(data)
self.result = self.collector.protocol.output

Expand Down Expand Up @@ -1666,7 +1666,7 @@ def test_statusYellow(self):
For status yellow to other metrics are 0.
"""
stats = """{"status": "yellow"}"""
data = simplejson.loads(stats)
data = json.loads(stats)
self.collector.flatten(data)
self.result = self.collector.protocol.output

Expand Down