Commit new App releases for TrueCharts

Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
This commit is contained in:
TrueCharts-Bot 2021-11-23 15:31:43 +00:00
parent b3a7cb5998
commit 383c8e62c2
62 changed files with 2264 additions and 3 deletions

View File

@ -1,6 +1,15 @@
# Changelog<br>
<a name="prometheus-0.0.10"></a>
### [prometheus-0.0.10](https://github.com/truecharts/apps/compare/prometheus-0.0.9...prometheus-0.0.10) (2021-11-23)
#### Fix
* correct port reference for alertmanager
<a name="prometheus-0.0.9"></a>
### [prometheus-0.0.9](https://github.com/truecharts/apps/compare/prometheus-0.0.8...prometheus-0.0.9) (2021-11-23)

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org
version: 8.9.3
digest: sha256:8e3b075bc94570b49db18d1ea9431f95ed06504fb372ee04f43c667c784d7b14
generated: "2021-11-23T13:09:15.168835398Z"
generated: "2021-11-23T15:28:12.101560849Z"

View File

@ -20,7 +20,7 @@ sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
type: application
version: 0.0.9
version: 0.0.10
annotations:
truecharts.org/catagories: |
- metrics

View File

@ -1,4 +1,6 @@
{{- define "prometheus.alertmanager.alertmanager" -}}
{{- if .Values.alertmanager.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: Alertmanager
metadata:
@ -17,7 +19,7 @@ spec:
{{- else if and .Values.ingress.alertmanager.enabled .Values.ingress.alertmanager.hosts }}
externalUrl: {{ if .Values.ingress.alertmanager.tls }}https{{else}}http{{ end }}://{{ (index .Values.ingress.alertmanager.hosts 0).name }}{{ .Values.alertmanager.routePrefix }}
{{- else }}
externalUrl: http://{{ template "kube-prometheus.alertmanager.fullname" . }}.{{ .Release.Namespace }}:{{ .Values.alertmanager.service.port }}{{ .Values.alertmanager.routePrefix }}
externalUrl: http://{{ template "kube-prometheus.alertmanager.fullname" . }}.{{ .Release.Namespace }}:{{ .Values.service.alertmanager.ports.alertmanager.port }}{{ .Values.alertmanager.routePrefix }}
{{- end }}
portName: "{{ .Values.alertmanager.portName }}"
paused: {{ .Values.alertmanager.paused }}
@ -178,3 +180,4 @@ spec:
alertmanagerConfigSelector: {{- include "common.tplvalues.render" (dict "value" .Values.alertmanager.configSelector "context" $) | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}

View File

@ -11,6 +11,8 @@
{{- include "prometheus.prometheus.additionalscrapejobs" . }}
{{- include "prometheus.prometheus.servicemonitor" . }}
{{- include "prometheus.alertmanager.alertmanager" . }}
{{/* Render the templates */}}
{{ include "common.postSetup" . }}

View File

@ -0,0 +1,45 @@
# Changelog<br>
<a name="loki-1.0.4"></a>
### [loki-1.0.4](https://github.com/truecharts/apps/compare/loki-1.0.3...loki-1.0.4) (2021-11-23)
#### Chore
* move loki to stable
<a name="loki-1.0.3"></a>
### [loki-1.0.3](https://github.com/truecharts/apps/compare/loki-1.0.2...loki-1.0.3) (2021-11-23)
#### Chore
* update non-major deps helm releases ([#1386](https://github.com/truecharts/apps/issues/1386))
<a name="loki-1.0.2"></a>
### [loki-1.0.2](https://github.com/truecharts/apps/compare/loki-1.0.1...loki-1.0.2) (2021-11-22)
#### Chore
* update non-major deps helm releases ([#1383](https://github.com/truecharts/apps/issues/1383))
<a name="loki-1.0.1"></a>
### [loki-1.0.1](https://github.com/truecharts/apps/compare/loki-1.0.0...loki-1.0.1) (2021-11-22)
#### Chore
* update non-major ([#1380](https://github.com/truecharts/apps/issues/1380))
<a name="loki-0.0.1"></a>
### loki-0.0.1 (2021-11-21)
#### Add
* Add Loki ([#1367](https://github.com/truecharts/apps/issues/1367))

View File

@ -0,0 +1,8 @@
# Configuration Options
##### Connecting to other apps
If you need to connect this App to other Apps on TrueNAS SCALE, please refer to our "Linking Apps Internally" quick-start guide:
https://truecharts.org/manual/Quick-Start%20Guides/14-linking-apps/
##### Available config options
In the future this page is going to contain an automated list of options available in the installation/edit UI.

View File

@ -0,0 +1,9 @@
dependencies:
- name: common
repository: https://truecharts.org
version: 8.9.3
- name: promtail
repository: https://grafana.github.io/helm-charts
version: 3.9.1
digest: sha256:3f841378ab3f9adc465dda0eeb860887a06946efe1c6b896d11c8b3a0264d5e6
generated: "2021-11-23T15:28:42.266961174Z"

View File

@ -0,0 +1,31 @@
apiVersion: v2
appVersion: "2.4.1"
dependencies:
- name: common
repository: https://truecharts.org
version: 8.9.3
- name: "promtail"
condition: promtail.enabled
repository: "https://grafana.github.io/helm-charts"
version: "^3.0.0"
deprecated: false
description: "Loki: like Prometheus, but for logs."
home: https://github.com/truecharts/apps/tree/master/charts/stable/loki
icon: https://raw.githubusercontent.com/grafana/loki/master/docs/sources/logo.png
keywords:
- logs
kubeVersion: '>=1.16.0-0'
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
name: loki
sources:
- https://github.com/grafana/loki
type: application
version: 1.0.4
annotations:
truecharts.org/catagories: |
- logs
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U

View File

@ -0,0 +1,38 @@
# Introduction
Loki: like Prometheus, but for logs.
TrueCharts are designed to be installed as TrueNAS SCALE app only. We can not guarantee this charts works as a stand-alone helm installation.
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/apps/issues/new/choose)**
## Source Code
* <https://github.com/grafana/loki>
## Requirements
Kubernetes: `>=1.16.0-0`
## Dependencies
| Repository | Name | Version |
|------------|------|---------|
| https://grafana.github.io/helm-charts | promtail | ^3.0.0 |
| https://truecharts.org | common | 8.9.3 |
## Installing the Chart
To install this App on TrueNAS SCALE check our [Quick-Start Guide](https://truecharts.org/manual/Quick-Start%20Guides/03-Installing-an-App/).
## Uninstalling the Chart
To remove this App from TrueNAS SCALE check our [Quick-Start Guide](https://truecharts.org/manual/Quick-Start%20Guides/07-Deleting-an-App/).
## Support
- Please check our [quick-start guides](https://truecharts.org/manual/Quick-Start%20Guides/01-Open-Apps/) first.
- See the [Wiki](https://truecharts.org)
- Check our [Discord](https://discord.gg/tVsPTHWTtr)
- Open a [issue](https://github.com/truecharts/apps/issues/new/choose)
---
All Rights Reserved - The TrueCharts Project

View File

@ -0,0 +1,3 @@
Loki: like Prometheus, but for logs.
This App is supplied by TrueCharts, for more information please visit https://truecharts.org

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,69 @@
# Default Helm-Values
TrueCharts is primarily build to supply TrueNAS SCALE Apps.
However, we also supply all Apps as standard Helm-Charts. In this document we aim to document the default values in our values.yaml file.
Most of our Apps also consume our "common" Helm Chart.
If this is the case, this means that all values.yaml values are set to the common chart values.yaml by default. This values.yaml file will only contain values that deviate from the common chart.
You will, however, be able to use all values referenced in the common chart here, besides the values listed in this document.
## Values
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| alerting_groups | list | `[]` | |
| args[0] | string | `"-config.file=/etc/loki/loki.yaml"` | |
| config.auth_enabled | bool | `false` | |
| config.chunk_store_config.max_look_back_period | string | `"0s"` | |
| config.compactor.shared_store | string | `"filesystem"` | |
| config.compactor.working_directory | string | `"/data/loki/boltdb-shipper-compactor"` | |
| config.ingester.chunk_block_size | int | `262144` | |
| config.ingester.chunk_idle_period | string | `"3m"` | |
| config.ingester.chunk_retain_period | string | `"1m"` | |
| config.ingester.lifecycler.ring.kvstore.store | string | `"inmemory"` | |
| config.ingester.lifecycler.ring.replication_factor | int | `1` | |
| config.ingester.max_transfer_retries | int | `0` | |
| config.ingester.wal.dir | string | `"/data/loki/wal"` | |
| config.limits_config.enforce_metric_name | bool | `false` | |
| config.limits_config.reject_old_samples | bool | `true` | |
| config.limits_config.reject_old_samples_max_age | string | `"168h"` | |
| config.schema_config.configs[0].from | string | `"2020-10-24"` | |
| config.schema_config.configs[0].index.period | string | `"24h"` | |
| config.schema_config.configs[0].index.prefix | string | `"index_"` | |
| config.schema_config.configs[0].object_store | string | `"filesystem"` | |
| config.schema_config.configs[0].schema | string | `"v11"` | |
| config.schema_config.configs[0].store | string | `"boltdb-shipper"` | |
| config.server.http_listen_port | int | `3100` | |
| config.storage_config.boltdb_shipper.active_index_directory | string | `"/data/loki/boltdb-shipper-active"` | |
| config.storage_config.boltdb_shipper.cache_location | string | `"/data/loki/boltdb-shipper-cache"` | |
| config.storage_config.boltdb_shipper.cache_ttl | string | `"24h"` | |
| config.storage_config.boltdb_shipper.shared_store | string | `"filesystem"` | |
| config.storage_config.filesystem.directory | string | `"/data/loki/chunks"` | |
| config.table_manager.retention_deletes_enabled | bool | `false` | |
| config.table_manager.retention_period | string | `"0s"` | |
| controller.replicas | int | `1` | Number of desired pods |
| controller.revisionHistoryLimit | int | `3` | ReplicaSet revision history limit |
| controller.rollingUpdate.partition | string | `nil` | Set statefulset RollingUpdate partition |
| controller.rollingUpdate.surge | string | `nil` | Set deployment RollingUpdate max surge |
| controller.rollingUpdate.unavailable | int | `1` | Set deployment RollingUpdate max unavailable |
| controller.strategy | string | `"RollingUpdate"` | Set the controller upgrade strategy For Deployments, valid values are Recreate (default) and RollingUpdate. For StatefulSets, valid values are OnDelete and RollingUpdate (default). DaemonSets ignore this. |
| controller.type | string | `"statefulset"` | Set the controller type. Valid options are deployment, daemonset or statefulset |
| env | object | `{}` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"grafana/loki"` | |
| image.tag | string | `"2.4.1@sha256:1d802d29cf041601895ce16439757baf4dac71a21069957616ee7988746bf59c"` | |
| persistence.config.enabled | bool | `true` | |
| persistence.config.mountPath | string | `"/etc/loki"` | Where to mount the volume in the main container. |
| persistence.config.objectName | string | `"{{ include \"common.names.fullname\" . -}}-config"` | Specify the name of the configmap object to be mounted |
| persistence.config.type | string | `"secret"` | |
| probes.liveness.path | string | `"/ready"` | |
| probes.readiness.path | string | `"/ready"` | |
| probes.startup.path | string | `"/ready"` | |
| promtail.enabled | bool | `true` | |
| service.main.ports.main.port | int | `3100` | |
| service.main.ports.main.protocol | string | `"HTTP"` | |
| service.main.ports.main.targetPort | int | `3100` | |
| volumeClaimTemplates.data.enabled | bool | `true` | |
| volumeClaimTemplates.data.mountPath | string | `"/data"` | |
All Rights Reserved - The TrueCharts Project

View File

@ -0,0 +1,148 @@
image:
repository: grafana/loki
pullPolicy: IfNotPresent
tag: 2.4.1@sha256:1d802d29cf041601895ce16439757baf4dac71a21069957616ee7988746bf59c
controller:
# -- Set the controller type.
# Valid options are deployment, daemonset or statefulset
type: statefulset
# -- Number of desired pods
replicas: 1
# -- Set the controller upgrade strategy
# For Deployments, valid values are Recreate (default) and RollingUpdate.
# For StatefulSets, valid values are OnDelete and RollingUpdate (default).
# DaemonSets ignore this.
strategy: RollingUpdate
rollingUpdate:
# -- Set deployment RollingUpdate max unavailable
unavailable: 1
# -- Set deployment RollingUpdate max surge
surge:
# -- Set statefulset RollingUpdate partition
partition:
# -- ReplicaSet revision history limit
revisionHistoryLimit: 3
args:
- "-config.file=/etc/loki/loki.yaml"
service:
main:
ports:
main:
protocol: "HTTP"
targetPort: 3100
port: 3100
probes:
liveness:
path: "/ready"
readiness:
path: "/ready"
startup:
path: "/ready"
env: {}
# TZ: UTC
# PUID: 1001
config:
# existingSecret:
auth_enabled: false
ingester:
chunk_idle_period: 3m
chunk_block_size: 262144
chunk_retain_period: 1m
max_transfer_retries: 0
wal:
dir: /data/loki/wal
lifecycler:
ring:
kvstore:
store: inmemory
replication_factor: 1
## Different ring configs can be used. E.g. Consul
# ring:
# store: consul
# replication_factor: 1
# consul:
# host: "consul:8500"
# prefix: ""
# http_client_timeout: "20s"
# consistent_reads: true
limits_config:
enforce_metric_name: false
reject_old_samples: true
reject_old_samples_max_age: 168h
schema_config:
configs:
- from: 2020-10-24
store: boltdb-shipper
object_store: filesystem
schema: v11
index:
prefix: index_
period: 24h
server:
http_listen_port: 3100
storage_config:
boltdb_shipper:
active_index_directory: /data/loki/boltdb-shipper-active
cache_location: /data/loki/boltdb-shipper-cache
cache_ttl: 24h # Can be increased for faster performance over longer query periods, uses more disk space
shared_store: filesystem
filesystem:
directory: /data/loki/chunks
chunk_store_config:
max_look_back_period: 0s
table_manager:
retention_deletes_enabled: false
retention_period: 0s
compactor:
working_directory: /data/loki/boltdb-shipper-compactor
shared_store: filesystem
# Needed for Alerting: https://grafana.com/docs/loki/latest/alerting/
# This is just a simple example, for more details: https://grafana.com/docs/loki/latest/configuration/#ruler_config
# ruler:
# storage:
# type: local
# local:
# directory: /rules
# rule_path: /tmp/scratch
# alertmanager_url: http://alertmanager.svc.namespace:9093
# ring:
# kvstore:
# store: inmemory
# enable_api: true
# Specify Loki Alerting rules based on this documentation: https://grafana.com/docs/loki/latest/alerting/
# When specified, you also need to add a ruler config section above. An example is shown in the alerting docs.
alerting_groups: []
# - name: example
# rules:
# - alert: HighThroughputLogStreams
# expr: sum by(container) (rate({job=~"loki-dev/.*"}[1m])) > 1000
# for: 2m
persistence:
# @default -- See below
config:
enabled: true
type: secret
# -- Specify the name of the configmap object to be mounted
objectName: '{{ include "common.names.fullname" . -}}-config'
# -- Where to mount the volume in the main container.
mountPath: /etc/loki
volumeClaimTemplates:
data:
enabled: true
mountPath: "/data"
promtail:
enabled: true

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,17 @@
{{/*
Create the app name of loki clients. Defaults to the same logic as "loki.fullname", and default client expects "promtail".
*/}}
{{- define "client.name" -}}
{{- if .Values.client.name -}}
{{- .Values.client.name -}}
{{- else if .Values.client.fullnameOverride -}}
{{- .Values.client.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- $name := default "promtail" .Values.client.nameOverride -}}
{{- if contains $name .Release.Name -}}
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- end -}}

View File

@ -0,0 +1 @@
{{ include "common.all" . }}

View File

@ -0,0 +1,17 @@
{{- if gt (len .Values.alerting_groups) 0 }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "common.names.fullname" . }}
labels:
{{- include "common.labels" . | nindent 4 }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
data:
{{ include "common.names.fullname" . }}-alerting-rules.yaml: |-
groups:
{{- toYaml .Values.alerting_groups | nindent 6 }}
{{- end }}

View File

@ -0,0 +1,13 @@
---
apiVersion: v1
kind: Secret
metadata:
name: {{ include "common.names.fullname" . -}}-config
labels:
{{- include "common.labels" . | nindent 4 }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
data:
loki.yaml: {{ tpl (toYaml .Values.config) . | b64enc}}

View File

4
stable/loki/item.yaml Normal file
View File

@ -0,0 +1,4 @@
icon_url: https://raw.githubusercontent.com/grafana/loki/master/docs/sources/logo.png
categories:
- logs