Splunk AppDynamics Tier Name Strategies
tierNameStrategy
property to one of these values:Manual Strategy
By default, the tierNameStrategy
is manual, which uses the deployment name or tierName
parameter to set the tier name.
- If
tierName
is not provided, then use deployment name astiername
. - If
tierName
is provided in an instrumentation rule, then use it.
For example in this spec, <deployment name> is the default tier name applied to the ecom and groceries namespace , and BookStore is the tier name applied to the books namespace.
apiVersion: cluster.appdynamics.com/v1alpha1
kind: Clusteragent
metadata:
name: k8s-cluster-agent
namespace: appdynamics
spec:
appName: "<cluster-name>"
# ...
# auto-instrumentation config
instrumentationMethod: Env
nsToInstrumentRegex: ecom|books|groceries
tierNameStrategy: manual
instrumentationRules:
- namespaceRegex: books
tierName: BookStore
Label Strategy
This option uses the label
parameter as the tier name strategy. To use the label
option, specify a value in the tierNameLabel
parameter. The tierNameLabel
value refers to a label specified in the workload spec.
- If
spec.tierNameLabel
is provided, then use it (unless overwritten in an instrumentation rule). - If
tierNameLabel
is provided in an instrumentation rule, then use it.
For example in this spec, the workload spec label tiername
is used to set the tier name in the ecom and groceries namespaces, and the label tier
is used in the books namespace.
apiVersion: cluster.appdynamics.com/v1alpha1
kind: Clusteragent
metadata:
name: k8s-cluster-agent
namespace: appdynamics
spec:
appName: "<cluster-name>"
# ...
# auto-instrumentation config
instrumentationMethod: Env
nsToInstrumentRegex: ecom|books|groceries
tierNameStrategy: label
tierNameLabel: tiername
instrumentationRules:
- namespaceRegex: books
tierNameLabel: tier
For an application deployed to the ecom
or groceries
namespaces that sets the label tiername
(shown in this Deployment spec snippet), it reports to the eCommerce
tier in the Controller's Dashboard.
apiVersion: apps/v1
kind: Deployment
metadata:
name: ecom-app
labels:
tiername: eCommerce
spec:
...