Skip to content

Configuration

The Metrics Agent chart is configured via values.yaml. This page describes the main options.

Top-level values

KeyDescriptionDefault
nameOverrideOverride deployment name prefixalerthawk
replicasNumber of pod replicas1

Image

KeyDescriptionDefault
image.repositoryContainer image repositorythiagoguaru/alerthawk.metrics
image.tagImage tag3.1.12 (or chart appVersion)
image.pullPolicyPull policyAlways

Deployment strategy

KeyDescriptionDefault
strategy.typeRollingUpdate or RecreateRollingUpdate
strategy.rollingUpdate.maxSurgeMax surge25%
strategy.rollingUpdate.maxUnavailableMax unavailable25%

Service account and RBAC

KeyDescriptionDefault
serviceAccount.createCreate a ServiceAccounttrue
serviceAccount.nameServiceAccount namealerthawk-sa
serviceAccount.annotationsAnnotations
serviceAccount.clusterRoleBinding.createCreate ClusterRoleBindingtrue
serviceAccount.clusterRoleBinding.clusterRoleClusterRole to bindcluster-admin

The agent needs cluster (or namespace) read access to collect metrics. By default the chart creates a ServiceAccount and binds it to cluster-admin. If you set serviceAccount.create: false, create the ServiceAccount and ClusterRoleBinding yourself.

Security context

KeyDescriptionDefault
securityContext.allowPrivilegeEscalationAllow privilege escalationfalse
securityContext.privilegedPrivileged containerfalse
securityContext.readOnlyRootFilesystemRead-only root filesystemfalse
securityContext.runAsNonRootRun as non-root userfalse

Resources (optional)

yaml
resources:
  limits:
    cpu: 500m
    memory: 512Mi
  requests:
    cpu: 100m
    memory: 128Mi

Other

KeyDescriptionDefault
progressDeadlineSecondsDeployment progress deadline600
revisionHistoryLimitReplicaSet history limit10
terminationGracePeriodSecondsPod termination grace period30
podAnnotationsPod annotations
imagePullSecretsImage pull secret names

Example values.yaml

yaml
nameOverride: "alerthawk"
replicas: 1

image:
  repository: thiagoguaru/alerthawk.metrics
  tag: "3.1.12"
  pullPolicy: Always

strategy:
  type: RollingUpdate
  rollingUpdate:
    maxSurge: 25%
    maxUnavailable: 25%

serviceAccount:
  create: true
  name: alerthawk-sa
  clusterRoleBinding:
    create: true
    clusterRole: cluster-admin

securityContext:
  allowPrivilegeEscalation: false
  privileged: false
  readOnlyRootFilesystem: false
  runAsNonRoot: false

env:
  CLUSTER_NAME: "aks-tools-01"
  METRICS_API_URL: "http://alerthawk-metrics-api.alerthawk.svc.cluster.local:8080"
  METRICS_COLLECTION_INTERVAL_SECONDS: "40"
  NAMESPACES_TO_WATCH: "alerthawk,clickhouse,production"
  COLLECT_LOGS: "false"
  CLUSTER_ENVIRONMENT: "PROD"
  LOG_LEVEL: "Information"
  SENTRY_DSN: ""
  ENVIRONMENT: "Production"

See Environment variables for all env options.

AlertHawk - Self-hosted monitoring solution.