Skip to content

Commit f427f9f

Browse files
committed
Merge branch 'release/v3.4.0'
2 parents d6f5748 + 5055065 commit f427f9f

File tree

78 files changed

+1871
-420
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1871
-420
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,12 @@ email, or any other method with the owners of this repository before making a ch
55

66
## Pull Request Process
77

8-
For new features or bug fixes, please make your changes on the ``master`` branch.
8+
For new features or bug fixes, please follow the below guideline, making sure that the pull request is coming from a feature branch. This guarantees that new features are merged with `develop` during a pull request.
9+
10+
1. Create a feature branch: `git flow feature start module_1`
11+
2. The code is updated on the feature branch
12+
3. When the feature is completed a pull request is opened in GitHub comparing develop and the feature branch `module_1`
13+
4. The team reviews the pull request and makes comments
14+
5. Any changes from the pull request are made to the feature branch
15+
6. Once all changes are incorporated on the feature branch the feature branch is finished: `git flow feature finish module_1`
16+
7. The `develop` branch is pushed to GitHub (GitHub will automatically mark the pull request as closed/merged when this happens)

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
recursive-include elastichq/templates *
2+
recursive-include elastichq/static *
3+
include elastichq/config/logger.json
4+
include requirements.txt

README.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,57 @@
1-
ElasticHQ
2-
=========
1+
# ElasticHQ
32

43
Simplified Monitoring and Management for ElasticSearch clusters.
54

6-
[![gitHub stars](https://img.shields.io/github/stars/ElasticHQ/elasticsearch-HQ.svg)](https://github.com/ElasticHQ/elasticsearch-HQ)
7-
[![gitHub issues](https://img.shields.io/github/issues/ElasticHQ/elasticsearch-HQ.svg)](https://github.com/ElasticHQ/elasticsearch-HQ)
5+
[![gitHub stars](https://img.shields.io/github/stars/ElasticHQ/elasticsearch-HQ.svg)](https://github.com/ElasticHQ/elasticsearch-HQ)
6+
[![docker pulls](https://img.shields.io/docker/pulls/elastichq/elasticsearch-hq.svg)](https://hub.docker.com/r/elastichq/elasticsearch-hq 'DockerHub')
87
[![latest](https://img.shields.io/github/release/ElasticHQ/elasticsearch-HQ.svg)](https://github.com/ElasticHQ/elasticsearch-HQ)
9-
[![docker pulls](https://img.shields.io/docker/pulls/elastichq/elasticsearch-hq.svg)](https://hub.docker.com/r/elastichq/elasticsearch-hq 'DockerHub')
8+
[![gitHub issues](https://img.shields.io/github/issues/ElasticHQ/elasticsearch-HQ.svg)](https://github.com/ElasticHQ/elasticsearch-HQ)
109
![python](https://img.shields.io/badge/python-v3.4%20%2F%20v3.6-blue.svg)
1110
[![license](https://img.shields.io/badge/license-ASL-blue.svg)](https://opensource.org/licenses/ASL)
1211

1312

1413
![alt text](https://raw.githubusercontent.com/ElasticHQ/elasticsearch-HQ/master/main_dashboard.png)
1514

1615

17-
Key Features
18-
------------
16+
## Key Features
17+
1918
* Works with 2.x, 5.x, 6.x and current versions of Elasticsearch.
2019
* Monitor **many** clusters at once.
2120
* Monitor Nodes, Indices, Shards, and general cluster metrics.
22-
* Create and perform maintenance on Elasticsearch Indices.
21+
* Create and maintain Elasticsearch Indices.
2322
* One-Click access to ES API and cat API endpoints.
23+
* Easy-to-Use Querying capabilities.
2424
* Copy mappings and reindex Indices.
25-
* Well-documented REST API for extensibility.
2625
* Real-time monitoring charts of important metrics.
2726
* Diagnostics check-up helps alert to specific nodes having issues.
2827
* Active project used by Fortune 100 companies around the world.
2928
* Free and (Real) Open Source. ;-)
3029

31-
Requirements
32-
------------
30+
## Installation
3331

34-
* Python 3.4+
32+
### Requirements
3533

34+
* Python 3.4+
3635

37-
Installation
38-
------------
36+
### Instructions
3937

4038
For **full** installation and configuration instructions, see [Getting Started](http://docs.elastichq.org/installation.html)
4139

4240
1. Download or clone the repository.
4341
2. Open terminal and point to root of repository. Type: ``pip install -r requirements.txt``
4442
3. Run server with: `` python application.py ``. Alternatively: ``./manage.py runserver``
4543
4. Access HQ with: `` http://localhost:5000 ``
46-
5. All API endpoints are available through `` http://localhost:5000/api ``.
4744

4845
For further installation and configuration help, please read the docs: [ElasticHQ Documentation](http://docs.elastichq.org)
4946

50-
For those of you wanting to use Docker: [ElasticHQ on Dockerhub](https://hub.docker.com/r/elastichq/elasticsearch-hq/)
47+
## Docker Installation
48+
49+
We are hosted on Dockerhub: [ElasticHQ on Dockerhub](https://hub.docker.com/r/elastichq/elasticsearch-hq/)
50+
51+
Please see relevant documentation: [Docker Images](http://docs.elastichq.org/installation.html#docker-images).
52+
53+
## Useful Links
5154

52-
Useful Links
53-
------------
5455
* [Documentation](http://docs.elastichq.org)
5556
* [Official Website](http://www.elastichq.org)
5657
* [Docker Images](https://hub.docker.com/r/elastichq/elasticsearch-hq/)

application.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
default_host = '0.0.0.0'
99
default_port = 5000
1010
default_debug = False
11+
default_enable_ssl = False
12+
default_ca_certs = None
1113
default_url = 'http://localhost:9200'
14+
is_gunicorn = "gunicorn" in os.environ.get("SERVER_SOFTWARE", "")
1215

1316
application = create_app()
1417

@@ -27,10 +30,22 @@
2730
action="store_true", dest="debug", default=default_debug,
2831
help=optparse.SUPPRESS_HELP)
2932
parser.add_option("-u", "--url", default=default_url)
33+
parser.add_option("-s", "--enable-ssl",
34+
action="store_true", default=default_enable_ssl)
35+
parser.add_option("-c", "--ca-certs", default=default_ca_certs,
36+
help='Required when --use-ssl is set. ' + \
37+
'Path to CA file or directory [default %s]' % default_ca_certs)
38+
3039

3140
options, _ = parser.parse_args()
3241

3342
# set default url, override with env for docker
3443
application.config['DEFAULT_URL'] = os.environ.get('HQ_DEFAULT_URL', options.url)
44+
application.config['ENABLE_SSL'] = os.environ.get('HQ_ENABLE_SSL', options.enable_ssl)
45+
application.config['CA_CERTS'] = os.environ.get('HQ_CA_CERTS', options.ca_certs)
3546

36-
socketio.run(application, host=options.host, port=options.port, debug=options.debug)
47+
if is_gunicorn:
48+
# we set reloader False so gunicorn doesn't call two instances of all the Flask init functions.
49+
socketio.run(application, host=options.host, port=options.port, debug=options.debug, use_reloader=False)
50+
else:
51+
socketio.run(application, host=options.host, port=options.port, debug=options.debug)
2.8 KB
Binary file not shown.

docs/.doctrees/environment.pickle

822 Bytes
Binary file not shown.

docs/.doctrees/faq.doctree

9 Bytes
Binary file not shown.

docs/.doctrees/index.doctree

87 Bytes
Binary file not shown.
1.26 KB
Binary file not shown.

docs/.doctrees/rest-api.doctree

3.29 KB
Binary file not shown.

0 commit comments

Comments
 (0)