2018-06-24 14:34:16 +00:00
# A tool to get statistics from Uptime Robot and log it into InfluxDB
2019-05-27 05:32:47 +00:00
![Screenshot ](https://raw.githubusercontent.com/billimek/node-influx-uptimerobot/master/docs/dashboard.png )
2018-06-24 14:34:16 +00:00
This tool allows you to run periodic uptimerobot data usage checks and save the results to Influxdb
## TL;DR;
2019-05-27 05:55:51 +00:00
```console
2019-05-20 04:12:31 +00:00
$ helm repo add billimek https://billimek.com/billimek-charts/
2018-06-24 14:34:16 +00:00
$ helm install billimek/uptimerobot
```
## Introduction
This code is adopted from [this original repo ](https://github.com/trojanc/node-influx-uptimerobot )
## Installing the Chart
To install the chart with the release name `my-release` :
2019-05-27 05:55:51 +00:00
```console
2018-06-24 14:34:16 +00:00
$ helm install --name my-release billimek/uptimerobot
```
## Uninstalling the Chart
To uninstall/delete the `my-release` deployment:
2019-05-27 05:55:51 +00:00
```console
2018-06-24 14:34:16 +00:00
$ helm delete my-release --purge
```
The command removes all the Kubernetes components associated with the chart and deletes the release.
## Configuration
2019-05-27 12:26:39 +00:00
The configuration is set as a block of text through a configmap and mounted as a file in /src/config.ini Any value in this text block should match the defined uptimerobot configuration. There are several values here that will have to match our kubernetes configuration.
2018-06-24 14:34:16 +00:00
## Configuration
The following tables lists the configurable parameters of the Sentry chart and their default values.
| Parameter | Description | Default |
| ------------------------------- | ------------------------------- | ---------------------------------------------------------- |
| `image.repository` | uptimerobot image | `billimek/uptimerobotusage-for-influxdb` |
| `image.tag` | uptimerobot image tag | `latest` |
| `image.pullPolicy` | uptimerobot image pull policy | `IfNotPresent` |
| `delay` | number of seconds to wait between collections | `300` |
| `config.influxdb.host` | InfluxDB hostname | `influxdb-influxdb` |
| `config.influxdb.port` | InfluxDB port | `8086` |
| `config.influxdb.database` | InfluxDB database | `uptimerobot` |
| `config.influxdb.protocol` | InfluxDB protocol | `http` |
2018-06-25 17:59:27 +00:00
| `config.influxdb.username` | InfluxDB username | `` |
| `config.influxdb.password` | InfluxDB password | `` |
2018-06-24 14:34:16 +00:00
| `config.uptimerobot.apikey` | uptimerobot API key (REQUIRED) | `someapikey` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install` . For example,
2019-05-27 05:55:51 +00:00
```console
2018-06-24 14:34:16 +00:00
$ helm install --name my-release \
--set config.uptimerobot.apikey=thisismyapikey \
billimek/uptimerobot
```
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,
2019-05-27 05:55:51 +00:00
```console
2018-06-24 14:34:16 +00:00
$ helm install --name my-release -f values.yaml billimek/uptimerobot
```
2019-05-27 05:32:47 +00:00
Read through the [values.yaml ](https://github.com/billimek/billimek-charts/blob/master/uptimerobot/values.yaml ) file. It has several commented out suggested values.