charts/charts/comcast
Jeff Billimek bed22d6551
mass-rename of chart repo (#3)
* mass-rename of chart repo

* update all Chart.yaml files to replace references from old repo to new
repo
* update all Chart.yaml files to set apiVersion to v2 where necessary
* update all README.md files to replace references from old repo to new
repo

* fix teslamate dependencies for v2

Signed-off-by: Jeff Billimek <jeff@billimek.com>
2020-08-29 11:22:37 -04:00
..
templates implement revisionHistoryLimit: 3 (#152) 2020-02-23 06:32:29 -07:00
.helmignore moving all charts under charts/ dir (#112) 2020-01-10 14:58:11 -05:00
Chart.yaml mass-rename of chart repo (#3) 2020-08-29 11:22:37 -04:00
OWNERS moving all charts under charts/ dir (#112) 2020-01-10 14:58:11 -05:00
README.md mass-rename of chart repo (#3) 2020-08-29 11:22:37 -04:00
values.yaml moving all charts under charts/ dir (#112) 2020-01-10 14:58:11 -05:00

Comcast Data Cap Usage Collector For InfluxDB and Grafana

Screenshot

This tool allows you to run periodic comcast data usage checks and save the results to Influxdb

TL;DR;

$ helm repo add k8s-at-home https://k8s-at-home.com/charts/
$ helm install k8s-at-home/comcast

Introduction

This code is adopted from the work done by barrycarey in the similar thing for capturing speedtest data as well as jantman's xfinity-usage python example

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release k8s-at-home/comcast

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release --purge

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

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 Comcast configuration. There are several values here that will have to match our kubernetes configuration.

Configuration

The following tables lists the configurable parameters of the Sentry chart and their default values.

Parameter Description Default
image.repository Comcast image billimek/comcastusage-for-influxdb
image.tag Comcast image tag latest
image.pullPolicy Comcast image pull policy IfNotPresent
debug Display debugging output false
config.delay how many seconds to wait between checks 3600
config.influxdb.host InfluxDB hostname influxdb-influxdb
config.influxdb.port InfluxDB port 8086
config.influxdb.database InfluxDB database comcast
config.influxdb.username InfluxDB username ``
config.influxdb.password InfluxDB password ``
config.influxdb.ssl InfluxDB connection using SSL false
config.comcast.username Comcast website login usernma someuser
config.comcast.password Comcast website login password somepassword
podAnnotations Key-value pairs to add as pod annotations {}

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

helm install --name my-release \
  --set config.comcast.username=tonystark,config.comcast.password=mypassword \
    k8s-at-home/comcast

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

helm install --name my-release -f values.yaml k8s-at-home/comcast

Read through the values.yaml file. It has several commented out suggested values.

InfluxDB metrics

'measurement': 'comcast_data_usage',
'fields': {
		'used',
		'total',
		'unit'
}