machine-agent

by Helm

Helm chartv0.2.8App 20.3.2

AppDynamics Machine Agent for infrastructure visibility

About this chart

Machine Agent Chart

AppDynamics is an application intelligence platform that provides end-to-end visibility into performance of business-critical applications. This chart deploys AppDynamics MachineAgent Daemonset to the cluster.

Prerequisites

  • Kubernetes 1.7+ OpenShift 3.7+
  • Helm and tiller installed in the cluster with the appropriate RBAC settings
  • An AppDynamics account. AppDynamics offers a free trial

Quick start

  • Get the repo:
$ helm repo add  appdynamics-charts https://appdynamics.github.io/appdynamics-chart

$ helm repo update

  • Install the chart on Kubernetes
helm install --namespace=appdynamics \
--set controller.accessKey=<controller-key> --set controller.host=<*.saas.appdynamics.com> \
--set controller.port=443 --set controller.ssl=true \
--set controller.accountName=<account-name> --set controller.globalAccountName=<global-account-name> \
--set analytics.eventEndpoint=https://analytics.api.appdynamics.com --set agent.netviz=true serverviz appdynamics-charts/machine-agent
  • Install the chart on OpenShift
helm install ./machine-agent --name=stable --namespace=appdynamics \
--set controller.accessKey=<controller-key> --set controller.host=<*.saas.appdynamics.com> \
--set controller.port=443 --set controller.ssl=true --set controller.accountName=<account-name> \
--set controller.globalAccountName=<global-account-name> \
--set analytics.eventEndpoint=https://analytics.api.appdynamics.com \
--set openshift.scc=true --set agent.netviz=true

Configuration settings

ParameterDescriptionDefault
controller.hostHost name of AppDynamics controller
controller.portAppdynamics Controller port number443
controller.sslUse ssl to connect to AppDynamics controllertrue
controller.accountNameAppDynamics account namecustomer1
controller.globalAccountNameAppDynamics global account name
controller.accessKeyAccess key to the AppDynamics controller
agent.simEnabledInfrastructure monitoring enabledtrue
agent.dockerEnabledContainer monitoring enabledtrue
agent.includeMastersDeploy agent to master nodes. The flag has no effect in managed cloud environmentstrue
agent.logLevelAgent logging levelinfo
agent.stdoutLoggingSend logging to consolefalse
agent.hierarchyPathPath of host names in AppDynamics controller
agent.uniqueHostIdUnique host id override
agent.metricsLimitMax number of metrics accepted by the controller from the agent4000
agent.proxyHostProxy host name
agent.proxyPortProxy host name
agent.proxyUserProxy username
agent.proxyPassProxy password
agent.enableContainerAsHostIDControls the value of the Dappdynamics.docker.container.containerIdAsHostId.enabled parameter of the machine agentfalse
agent.netvizInclude network visibility agentfalse
netvizPortHost port number for the network visibility agent3892
netvizImage.image.repositoryName of the network agent imagedocker.io/appdynamics/machine-agent-netviz
netvizImage.image.tagTag of the network agent imagelatest
netvizImage.image.pullPolicyThe network agent image pull policyAlways
analytics.eventEndpointAnalytics service endpointhttps://analytics.api.appdynamics.com/
analytics.portAnalytics service port
serviceAccount.createFlag indicating that the service account will be createdtrue
serviceAccount.nameService account name.appdynamics-infraviz
rbac.createFlag indicating that the roles for the service account will be createdtrue
openshift.sccCreates scc for the service account on OpenShift. Set to false for all other Kubernetes distributionstrue
daemonset.image.repositoryName of the machine agent imagedocker.io/appdynamics/machine-agent-analytics
daemonset.image.tagTag of the machine agent imagelatest
daemonset.image.pullPolicyThe machine agent image pull policyAlways
daemonset.nodeSelectorNode selector directive
daemonset.tolerations Tolerations directive
daemonset.resources Resources directiveSee below
daemonset.priorityClassName Priority class reference, e.g. system-node-critical.Optional. When set to system-node-critical the chart must be deployed to kube-system namespace

Example resource limits:

   resources:
    limits:
      cpu: 600m
      memory: "1G"
    requests: 
      cpu: 300m
      memory: "800M"

Deploy machine-agent with OpenTenant

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