mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 07:59:02 +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)
|
![Screenshot](https://github.com/billimek/comcastUsage-for-influxdb/raw/master/images/comcast_grafana_example.png)
|
||||||
|
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: uptimerobot
|
name: uptimerobot
|
||||||
version: 1.0.0
|
version: 1.1.2
|
||||||
appVersion: 1.0.0
|
appVersion: 1.1.0
|
||||||
description: A tool to get statistics from Uptime Robot and log it into InfluxDB
|
description: A tool to get statistics from Uptime Robot and log it into InfluxDB
|
||||||
keywords:
|
keywords:
|
||||||
- uptimerobot
|
- uptimerobot
|
||||||
- influxdb
|
- influxdb
|
||||||
home: https://github.com/billimek/node-influx-uptimerobot
|
home: https://github.com/trojanc/node-influx-uptimerobot
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/billimek/node-influx-uptimerobot
|
- https://github.com/trojanc/node-influx-uptimerobot
|
||||||
- https://github.com/billimek/billimek-charts
|
- https://github.com/billimek/billimek-charts
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: billimek
|
- 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.port` | InfluxDB port | `8086` |
|
||||||
| `config.influxdb.database` | InfluxDB database | `uptimerobot` |
|
| `config.influxdb.database` | InfluxDB database | `uptimerobot` |
|
||||||
| `config.influxdb.protocol` | InfluxDB protocol | `http` |
|
| `config.influxdb.protocol` | InfluxDB protocol | `http` |
|
||||||
|
| `config.influxdb.username` | InfluxDB username | `` |
|
||||||
|
| `config.influxdb.password` | InfluxDB password | `` |
|
||||||
| `config.uptimerobot.apikey` | uptimerobot API key (REQUIRED) | `someapikey` |
|
| `config.uptimerobot.apikey` | uptimerobot API key (REQUIRED) | `someapikey` |
|
||||||
|
|
||||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
||||||
|
@ -25,3 +25,10 @@ If release name contains chart name it will be used as a full name.
|
|||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- 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 }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
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 }}"
|
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:
|
resources:
|
||||||
{{ toYaml .Values.resources | indent 12 }}
|
{{ toYaml .Values.resources | indent 12 }}
|
||||||
volumeMounts:
|
|
||||||
- name: {{ template "uptimerobot.name" . }}
|
|
||||||
mountPath: /usr/src/node-influx-uptimerobot/config.json
|
|
||||||
subPath: config.json
|
|
||||||
{{- if .Values.nodeSelector }}
|
{{- if .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ toYaml .Values.nodeSelector | indent 8 }}
|
{{ toYaml .Values.nodeSelector | indent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
|
||||||
- name: {{ template "uptimerobot.name" . }}
|
|
||||||
configMap:
|
|
||||||
name: {{ template "uptimerobot.fullname" . }}
|
|
||||||
items:
|
|
||||||
- key: config.json
|
|
||||||
path: config.json
|
|
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.
|
# Declare variables to be passed into your templates.
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
image:
|
image:
|
||||||
repository: billimek/uptimerobot-influxdb
|
repository: billimek/node-influx-uptimerobot
|
||||||
tag: latest
|
tag: latest
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: Always
|
||||||
resources: {}
|
resources: {}
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# 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
|
# choice for the user. This also increases chances charts run on environments with little
|
||||||
@ -26,6 +26,11 @@ config:
|
|||||||
port: 8086
|
port: 8086
|
||||||
protocol: http
|
protocol: http
|
||||||
database: uptimerobot
|
database: uptimerobot
|
||||||
|
# username:
|
||||||
|
# password:
|
||||||
uptimerobot:
|
uptimerobot:
|
||||||
# API key is mandatory and must be populated
|
# API key is mandatory and must be populated
|
||||||
apikey: someapikey
|
apikey: someapikey
|
||||||
|
# logs_limit: 100
|
||||||
|
# response_times_limit: 100
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user