-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from scalair/docs
add: documentation rework
- Loading branch information
Showing
7 changed files
with
196 additions
and
26 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# exporters collection | ||
|
||
**tethys** provides a collection of Prometheus exporters that can be installed and used regarding the products you want to monitor. | ||
|
||
Here are products we are currently supporting : | ||
|
||
- [node](node/README.md) : exporter for any *nix OS. | ||
- [kubernetes](kubernetes/README.md) : exporter for Kubernetes cluster. | ||
- [apache](kubernetes/README.md) : exporter for Apache web server. | ||
- [elasticsearch](elasticsearch/README.md) : exporter for Elasticsearch cluster. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# apache exporter | ||
|
||
Prometheus exporter that exposes Apache mod_status statistics. | ||
|
||
The exporter is maintained by [Lusitaniae/apache_exporter project](https://github.com/Lusitaniae/apache_exporter). | ||
|
||
## Install on a standard instance | ||
|
||
For a standard instance, we use an ansible role maintained by [Xat59/ansible-role-apache_exporter](https://github.com/Xat59/ansible-role-apache_exporter/), to deploy the exporter into an instance. | ||
|
||
### Create the ansible playbook file | ||
|
||
Create a `apache-exporter.yml` file with the following content : | ||
|
||
```yaml | ||
- hosts: <host> | ||
roles: | ||
- role: xat59.apache_exporter | ||
apache_exporter_option_scrape_uri: http://<server>/server-status?auto | ||
``` | ||
> Replace _\<host\>_ with the host (or list of hosts) where to install the exporter. | ||
Plus, replace _\<server\>_ with the DNS or IP of the Apache you want to monitor. | ||
### Deploy it | ||
```bash | ||
ansible-galaxy install xat59.apache_exporter | ||
ansible-playbook -vv apache-exporter.yml | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# node exporter | ||
|
||
Prometheus exporter for various metrics about ElasticSearch. | ||
|
||
The exporter is maintained by [justwatchcom/elasticsearch_exporter project](https://github.com/justwatchcom/elasticsearch_exporter). | ||
|
||
We provides two ways to install the elasticsearch exporter : | ||
|
||
- on a standard instance (on-prem, cloud, etc) | ||
- on Kubernetes cluster nodes | ||
|
||
## Install on a standard instance | ||
|
||
For a standard instance, we use an ansible role maintained by [Lyr/ansible-elasticsearch-exporter](https://github.com/Lyr/ansible-elasticsearch-exporter), to deploy the exporter into an instance. | ||
|
||
### Create the ansible playbook file | ||
|
||
Create a `elasticsearch-exporter.yml` file with the following content : | ||
|
||
```yaml | ||
- hosts: <host> | ||
roles: | ||
- role: lyr.elasticsearch_exporter | ||
elasticsearch_exporter_es_uri: "<scheme>://<username>:<password>@<url>:<port>" | ||
elasticsearch_exporter_es_all: true | ||
elasticsearch_exporter_es_indices: true | ||
elasticsearch_exporter_es_shards: true | ||
``` | ||
Of course, the elasticsearch endpoint must be available from the exporter. | ||
> Replace _\<host\>_ with the host (or list of hosts) where to install the exporter. | ||
Plus, replace _\<scheme\>_, _\<username\>_, _\<password\>_, _\<url\>_ and _\<port\>_ with your elasticsearch cluster information. | ||
### Deploy it into the instance | ||
```bash | ||
ansible-galaxy install lyr.elasticsearch_exporter | ||
ansible-playbook -vv elasticsearch-exporter.yml | ||
``` | ||
|
||
## Install on Kubernetes cluster nodes | ||
|
||
To install the exporter in a Kubernetes cluster, do the following. | ||
|
||
### Connect to your Kubernetes cluster | ||
|
||
First, connect to your Kubernetes cluster you want to deploy the exporter in. | ||
|
||
### Configure the exporter | ||
|
||
Create the `ekasticsearch-exporter.yml` file with the following content : | ||
|
||
```yaml | ||
es: | ||
all: true | ||
cluster_settings: true | ||
indices: true | ||
indices_settings: true | ||
shards: true | ||
snapshots: true | ||
uri: <scheme>://<username>:<password>@<url>:<port> | ||
|
||
# If you are using prometheus-operator, add the following : | ||
service: | ||
annotations: {} | ||
httpPort: 9108 | ||
labels: | ||
job: elasticsearch-exporter | ||
metricsPort: | ||
name: http | ||
type: ClusterIP | ||
serviceMonitor: | ||
enabled: true | ||
interval: 60s | ||
labels: | ||
prometheus-scrape: "true" | ||
metricRelabelings: [] | ||
relabelings: | ||
- sourceLabels: [ "job" ] | ||
regex: ^.*$ | ||
action: replace | ||
replacement: elasticsearch-exporter | ||
targetLabel: job | ||
sampleLimit: 0 | ||
scheme: http | ||
scrapeTimeout: 10s | ||
targetLabels: | ||
- job | ||
``` | ||
> Replace _\<scheme\>_, _\<username\>_, _\<password\>_, _\<url\>_ and _\<port\>_ with your elasticsearch cluster information. | ||
Even if _\<scheme\>_ is _http_, it is mandatory to specify it. | ||
### Deploy it into your Kubernetes cluster | ||
```yaml | ||
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
helm repo update | ||
helm upgrade --install --create-namespace -f elasticsearch-exporter.yml -n monitoring elasticsearch-exporter prometheus-community/prometheus-elasticsearch-exporter --version 4.4.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# node exporter | ||
|
||
Prometheus exporter for hardware and OS metrics exposed by *nix kernels. | ||
|
||
The exporter is maintained by [prometheus/node_exporter project](https://github.com/prometheus/node_exporter). | ||
|
||
We provides two ways to install the node exporter : | ||
|
||
- on a standard instance (on-prem, cloud, etc) | ||
- on Kubernetes cluster nodes | ||
|
||
## Install on a standard instance | ||
|
||
For a standard instance, we use an ansible role maintained by [cloudalchemy/ansible-node-exporter](https://github.com/cloudalchemy/ansible-node-exporter), to deploy the exporter into an instance. | ||
|
||
### Create the ansible playbook file | ||
|
||
Create a `node-exporter.yml` file with the following content : | ||
|
||
```yaml | ||
- hosts: <host> | ||
roles: | ||
- role: cloudalchemy.node-exporter | ||
``` | ||
> Replace _\<host\>_ with the host (or list of hosts) where to install the exporter. | ||
### Deploy it | ||
```bash | ||
ansible-galaxy install cloudalchemy.node-exporter | ||
ansible-playbook -vv node-exporter.yml | ||
``` | ||
|
||
## Install on Kubernetes cluster nodes | ||
|
||
If you've already installed the [monitoring for Kubernetes](../kubernetes/README.md) in your Kubernetes cluster, so your nodes are probably already monitored. |
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.