grafana-agent

by slamdev

Helm chartv0.0.1App v0.26.1

Helm chart to deploy [grafana-agent](https://github.com/grafana/agent).

About this chart

grafana-agent

Helm chart to deploy grafana-agent.

Homepage: https://github.com/slamdev/helm-charts/tree/master/charts/grafana-agent

Maintainers

NameEmailUrl
slamdev[email protected]

Values

KeyTypeDefaultDescription
additionalResourceslist[]list of additional resources to create (are processed via tpl function)
affinityobject{}affinity for scheduler pod assignment
args[0]string"--config.file=/grafana-agent.yaml"
confstring"server:\n log_level: info"grafana-agent config to provision inside of the container
containerPortslist[{"containerPort":12345,"name":"http"},{"containerPort":12346,"name":"grpc"}]ports exposed by container
envlist[{"name":"HOSTNAME","valueFrom":{"fieldRef":{"fieldPath":"spec.nodeName"}}},{"name":"POD_NAME","valueFrom":{"fieldRef":{"fieldPath":"metadata.name"}}},{"name":"POD_IP","valueFrom":{"fieldRef":{"fieldPath":"status.podIP"}}}]additional environment variables for the deployment
fullnameOverridestring""full name of the chart.
image.pullPolicystring"IfNotPresent"image pull policy
image.repositorystring"grafana/grafana-agent"image repository
image.tagstring""image tag (chart's appVersion value will be used if not set)
imagePullSecretslist[]image pull secret for private images
livenessProbe.httpGet.pathstring"/http-metrics/-/ready"path for liveness probe
livenessProbe.httpGet.portstring"http"port for liveness probe
nameOverridestring""override name of the chart
nodeSelectorobject{}node for scheduler pod assignment
podAnnotationsobject{}annotations to add to the pod
podSecurityContextobject{}specifies security settings for a pod
readinessProbe.httpGet.pathstring"/http-metrics/-/ready"path for readiness probe
readinessProbe.httpGet.portstring"http"port for readiness probe
resourcesobject{}custom resource configuration
securityContextobject{}specifies security settings for a container
service.annotationsobject{}service annotations
service.portslist[{"name":"http","port":12345,"targetPort":"http"},{"name":"grpc","port":12346,"targetPort":"grpc"}]service ports
service.typestring"ClusterIP"service type
serviceAccount.annotationsobject{}annotations to add to the service account
serviceAccount.createboolfalsespecifies whether a service account should be created
serviceAccount.namestringnilthe name of the service account to use; if not set and create is true, a name is generated using the fullname template
startupProbe.httpGet.pathstring"/http-metrics/-/ready"path for startup probe
startupProbe.httpGet.portstring"http"port for startup probe
tolerationslist[]tolerations for scheduler pod assignment
volumeMountslist[]additional volume mounts
volumeslist[]additional volumes
workload.annotationsobject{}annotations to add to the workload
workload.daemonSetSpec.updateStrategyobject{}an update strategy to replace existing DaemonSet pods with new pods
workload.deploymentSpec.replicasint1number of desired pods
workload.deploymentSpec.strategyobject{}the deployment strategy to use to replace existing pods with new ones.
workload.kindstring"deployment"can be deployment, statefulSet or daemonSet
workload.labelsobject{}labels to add to the workload
workload.statefulSetSpec.podManagementPolicystring"OrderedReady"controls how pods are created during initial scale up
workload.statefulSetSpec.replicasint1number of desired pods
workload.statefulSetSpec.updateStrategyobject{}indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template
workload.statefulSetSpec.volumeClaimTemplatesobject{}a list of claims that pods are allowed to reference

Deploy grafana-agent with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has grafana-agent on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartgrafana-agent is pinned at v0.0.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply