mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
updating uptimerobot to match upstream changes
This commit is contained in:
parent
46a5420259
commit
ebfbc83510
@ -1,4 +1,4 @@
|
||||
# Comcast Data Cap Usage Collector For InfluxDB and Grafana**
|
||||
# Comcast Data Cap Usage Collector For InfluxDB and Grafana
|
||||
|
||||
![Screenshot](https://github.com/billimek/comcastUsage-for-influxdb/raw/master/images/comcast_grafana_example.png)
|
||||
|
||||
|
@ -1,14 +1,14 @@
|
||||
apiVersion: v1
|
||||
name: uptimerobot
|
||||
version: 1.0.0
|
||||
appVersion: 1.0.0
|
||||
version: 1.1.2
|
||||
appVersion: 1.1.0
|
||||
description: A tool to get statistics from Uptime Robot and log it into InfluxDB
|
||||
keywords:
|
||||
- uptimerobot
|
||||
- influxdb
|
||||
home: https://github.com/billimek/node-influx-uptimerobot
|
||||
home: https://github.com/trojanc/node-influx-uptimerobot
|
||||
sources:
|
||||
- https://github.com/billimek/node-influx-uptimerobot
|
||||
- https://github.com/trojanc/node-influx-uptimerobot
|
||||
- https://github.com/billimek/billimek-charts
|
||||
maintainers:
|
||||
- name: billimek
|
||||
|
@ -50,6 +50,8 @@ The following tables lists the configurable parameters of the Sentry chart and t
|
||||
| `config.influxdb.port` | InfluxDB port | `8086` |
|
||||
| `config.influxdb.database` | InfluxDB database | `uptimerobot` |
|
||||
| `config.influxdb.protocol` | InfluxDB protocol | `http` |
|
||||
| `config.influxdb.username` | InfluxDB username | `` |
|
||||
| `config.influxdb.password` | InfluxDB password | `` |
|
||||
| `config.uptimerobot.apikey` | uptimerobot API key (REQUIRED) | `someapikey` |
|
||||
|
||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
||||
|
@ -24,4 +24,11 @@ If release name contains chart name it will be used as a full name.
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create chart name and version as used by the chart label.
|
||||
*/}}
|
||||
{{- define "uptimerobot.chart" -}}
|
||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
@ -1,22 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ template "uptimerobot.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "uptimerobot.name" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
release: "{{ .Release.Name }}"
|
||||
heritage: "{{ .Release.Service }}"
|
||||
data:
|
||||
config.json: |
|
||||
{
|
||||
"uptimerobot" : {
|
||||
"apikey" : "{{ .Values.config.uptimerobot.apikey }}"
|
||||
},
|
||||
"influx" : {
|
||||
"host" : "{{ .Values.config.influxdb.host }}",
|
||||
"port" : {{ .Values.config.influxdb.port }},
|
||||
"protocol" : "{{ .Values.config.influxdb.protocol }}",
|
||||
"database" : "{{ .Values.config.influxdb.database }}"
|
||||
}
|
||||
}
|
@ -24,22 +24,46 @@ spec:
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
env:
|
||||
- name: DELAY
|
||||
- name: UPTIMEROBOT_API_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ template "uptimerobot.fullname" . }}
|
||||
key: uptimerobot-apikey
|
||||
{{- if .Values.config.influxdb.username }}
|
||||
- name: INFLUX_USERNAME
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: {{ template "uptimerobot.fullname" . }}
|
||||
key: influxdb-username
|
||||
{{- end }}
|
||||
{{- if .Values.config.influxdb.password }}
|
||||
- name: INFLUX_PASSWORD
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: {{ template "uptimerobot.fullname" . }}
|
||||
key: influxdb-password
|
||||
{{- end }}
|
||||
- name: APPLICATION_INTERVAL
|
||||
value: "{{ .Values.delay }}"
|
||||
{{- if .Values.config.uptimerobot.logs_limit }}
|
||||
- name: UPTIMEROBOT_LOGS_LIMIT
|
||||
value: "{{ .Values.config.uptimerobot.logs_limit }}"
|
||||
{{- end }}
|
||||
{{- if .Values.config.uptimerobot.response_times_limit }}
|
||||
- name: UPTIMEROBOT_RESPONSE_TIMES_LIMIT
|
||||
value: "{{ .Values.config.uptimerobot.response_times_limit }}"
|
||||
{{- end }}
|
||||
- name: INFLUX_HOST
|
||||
value: "{{ .Values.config.influxdb.host }}"
|
||||
- name: INFLUX_PORT
|
||||
value: "{{ .Values.config.influxdb.port }}"
|
||||
- name: INFLUX_PROTOCOL
|
||||
value: "{{ .Values.config.influxdb.protocol }}"
|
||||
- name: INFLUX_DATABASE
|
||||
value: "{{ .Values.config.influxdb.database }}"
|
||||
resources:
|
||||
{{ toYaml .Values.resources | indent 12 }}
|
||||
volumeMounts:
|
||||
- name: {{ template "uptimerobot.name" . }}
|
||||
mountPath: /usr/src/node-influx-uptimerobot/config.json
|
||||
subPath: config.json
|
||||
{{- if .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
volumes:
|
||||
- name: {{ template "uptimerobot.name" . }}
|
||||
configMap:
|
||||
name: {{ template "uptimerobot.fullname" . }}
|
||||
items:
|
||||
- key: config.json
|
||||
path: config.json
|
||||
{{- end }}
|
18
uptimerobot/templates/secret.yaml
Normal file
18
uptimerobot/templates/secret.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ template "uptimerobot.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "uptimerobot.name" . }}
|
||||
chart: {{ template "uptimerobot.chart" . }}
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
type: Opaque
|
||||
data:
|
||||
uptimerobot-apikey: {{ .Values.config.uptimerobot.apikey | b64enc | quote }}
|
||||
{{- if .Values.config.influxdb.username }}
|
||||
influxdb-username: {{ .Values.config.influxdb.username | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.config.influxdb.password }}
|
||||
influxdb-password: {{ .Values.config.influxdb.password | b64enc | quote }}
|
||||
{{- end }}
|
@ -3,9 +3,9 @@
|
||||
# Declare variables to be passed into your templates.
|
||||
replicaCount: 1
|
||||
image:
|
||||
repository: billimek/uptimerobot-influxdb
|
||||
repository: billimek/node-influx-uptimerobot
|
||||
tag: latest
|
||||
pullPolicy: IfNotPresent
|
||||
pullPolicy: Always
|
||||
resources: {}
|
||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||
# choice for the user. This also increases chances charts run on environments with little
|
||||
@ -26,6 +26,11 @@ config:
|
||||
port: 8086
|
||||
protocol: http
|
||||
database: uptimerobot
|
||||
# username:
|
||||
# password:
|
||||
uptimerobot:
|
||||
# API key is mandatory and must be populated
|
||||
apikey: someapikey
|
||||
# logs_limit: 100
|
||||
# response_times_limit: 100
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user