sematext-agent

by joaquinito2051

Helm chartv1.0.7App 1.0

Helm chart for deploying Sematext Agent to Kubernetes

About this chart

Sematext Agent

Sematext Agent collects metrics about hosts (CPU, memory, disk, network, processes), containers (both Docker and rkt) and orchestrator platforms and ships that to Sematext Cloud. Sematext Cloud is available in the US and EU regions.

Introduction

This chart installs the Sematext Agent to all nodes in your cluster via a DaemonSet resource.

Prerequisites

Installation

To install the chart run the following command:

$ helm install --name release_name \
    --set containerToken=YOUR_CONTAINER_TOKEN,logseneToken=YOUR_LOGS_TOKEN <helm-repo>/sematext-agent

$ helm install --name release_name \

After a few minutes, you should see logs, metrics, and events reported in Sematext web UI.

NOTE: If you want to use Sematext in EU region set the region as well --set region=EU. Also, it is worth mentioning that the agent is running as a privileged container.

Deleting

To uninstall the chart delete release_name deployment:

$ helm delete --purge release_name

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

Configuration

The following table lists the configuration parameters of the sematext-agent chart and default values.

ParameterDescriptionDefault
containerTokenSematext Container tokenNil Provide your Container token
logseneTokenSematext Logsene tokenNil Provide your Logsene token
regionSematext regionUS Sematext US or EU region
agent.image.repositoryThe image repositorysematext/agent
agent.image.tagThe image taglatest
agent.image.pullPolicyImage pull policyAlways
agent.service.portService port80
agent.service.typeService typeClusterIP
agent.resourcesAgent resources{}
logagent.image.repositoryThe image repositorysematext/logagent
logagent.image.tagThe image taglatest
logagent.image.pullPolicyImage pull policyAlways
logagent.resourcesLogagent resources{}
logagent.extraHostVolumeMountsExtra mounts{}
customUrl.serverBaseUrlCustom Base URLNil
customUrl.logsReceiverUrlCustom Logsene receiver URLNil
customUrl.eventsRecieverUrlCustom Event receiver URLNil
serviceAccount.createCreate a service accounttrue
serviceAccount.nameService account nameNil Defaults to chart name
rbac.createRBAC enabledtrue
tolerationsTolerations[]
nodeSelectorNode selector{}

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:
$ helm install --name release_name \
    --set containerToken=YOUR_CONTAINER_TOKEN \
    <helm-repo>/sematext-agent
$ helm install --name release_name \

Alternatively, you can use a YAML file that specifies the values while installing the chart. For example:

$ helm install --name release_name -f custom_values.yaml <helm-repo>/sematext-agent

Deploy sematext-agent with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has sematext-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 chartsematext-agent is pinned at v1.0.7 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