Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppD Charts appdynamics-collectors (1.22.1287) #90

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 26 additions & 0 deletions packs/appdynamics-collectors-1.22.1287/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## The Appdynamics Collector Cloud Helm Charts
An Add-on pack for Spectro Cloud to use the monitoring of k8s cluster with AppDynamics collectors.

## Appdynamics Cloud Helm Charts
This repository maintains helm charts for installing Appdynamics Cloud Collector.

## Parameters
| Parameter | Description |
|-----------|-------------|
| clusterName | String to specify the name of the k8s cluster |
| endpoint | The endpoint Tenant to which you want to send the data to. Please refer the product guide link from References for more details |
| clientId | clientId of your Tenant . Please refer the product guide link from References for more details |
| clientSecret | clientSecret of your Tenant. Please refer the product guide link from References for more details |
| tokenUrl | tokenUrl of your Tenant. Please refer the product guide link from References for more details |
| tenantId | tenantId of your Tenant. Please refer the product guide link from References for more details |


## References
To enable log collection for your cluster, please refer:
https://docs.appdynamics.com/fso/cloud-native-app-obs/en/kubernetes-and-app-service-monitoring/log-collection/onboard-logs-from-kubernetes/configure-the-log-collector

Here is the guide to auto-instrument your application.
https://docs.appdynamics.com/fso/cloud-native-app-obs/en/kubernetes-and-app-service-monitoring/application-performance-monitoring-with-opentelemetry/configure-services-running-inside-a-supported-kubernetes-cluster/auto-instrument-your-services-using-opentelemetry-operator-for-kubernetes

Here is the complete product guide about the AppDynamics collectors.
https://docs.appdynamics.com/fso/cloud-native-app-obs/en/kubernetes-and-app-service-monitoring/install-kubernetes-and-app-service-monitoring
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
eks-helper/

LICENSES/
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
dependencies:
- name: appdynamics-cloud-k8s-monitoring
repository: ""
version: 1.22.0
- name: appdynamics-cloud-db-collector
repository: ""
version: 1.9.0
- name: appdynamics-network-monitoring
repository: ""
version: 0.2.0
- name: appdynamics-csaas-k8s-cluster-agent
repository: ""
version: 1.19.0
- name: appdynamics-otel-collector
repository: https://artifactory.bare.appdynamics.com/artifactory/appd-helm
version: 24.7.0-1646
- name: appdynamics-security-collector
repository: https://artifactory.bare.appdynamics.com/artifactory/appd-helm
version: 1.0.26
- name: appdynamics-otel-instrumentation
repository: https://artifactory.bare.appdynamics.com/artifactory/appd-helm
version: 24.4.0-1589
- name: appdynamics-auto-instrumentation-agent
repository: ""
version: 1.19.0
digest: sha256:4994a2bff71c0f7cd9ad85ce8d073457ec5aba566a25b4fa585c3f01e4d7ca82
generated: "2024-07-29T04:41:38.754051677Z"
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
apiVersion: v2
appVersion: 1.22.1287
dependencies:
- name: appdynamics-cloud-k8s-monitoring
repository: ""
version: 1.22.0
- name: appdynamics-cloud-db-collector
repository: ""
version: 1.9.0
- condition: appdynamics-network-monitoring.enabled
name: appdynamics-network-monitoring
repository: ""
version: 0.2.0
- name: appdynamics-csaas-k8s-cluster-agent
repository: ""
version: 1.19.0
- condition: appdynamics-otel-collector.enabled
name: appdynamics-otel-collector
repository: https://artifactory.bare.appdynamics.com/artifactory/appd-helm
version: 24.7.0-1646
- condition: appdynamics-security-collector.enabled
name: appdynamics-security-collector
repository: https://artifactory.bare.appdynamics.com/artifactory/appd-helm
version: 1.0.26
- condition: appdynamics-otel-instrumentation.enabled
name: appdynamics-otel-instrumentation
repository: https://artifactory.bare.appdynamics.com/artifactory/appd-helm
version: 24.4.0-1589
- condition: appdynamics-auto-instrumentation-agent.enabled
name: appdynamics-auto-instrumentation-agent
repository: ""
version: 1.19.0
description: Helm Charts for installing Appdynamics Collectors
home: https://appdynamics.com
icon: https://raw.githubusercontent.com/CiscoDevNet/appdynamics-charts/master/logo.png
keywords:
- appdynamics
- cloud
- collector
- cluster
- kubernetes
- monitoring
- pod
- deployment
maintainers:
- email: [email protected]
name: AppDynamics
name: appdynamics-collectors
type: application
version: 1.22.1287
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
APPDYNAMICS
END USER LICENSE AGREEMENT

By accessing the Software herein, you (and the organization you represent) ("You") acknowledge and agree that the use
of the Software and open source software are governed by (1) the General Terms found at
https://www.cisco.com/c/dam/en_us/about/doing_business/legal/Cisco_General_Terms.pdf and the applicable Product
Specific Terms found at https://www.cisco.com/c/en/us/about/legal/cloud-and-software/software-terms.html or (2) any
other superseding agreement between AppDynamics, or its parent company Cisco Systems, Inc., as applicable, and You.
References to End User in any superseding agreement shall mean You.

AppDynamics Proprietary and Confidential * Revision 2024.03
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v2
appVersion: 24.4.0
description: Sophisticated helm chart to deploy appdynamics auto instrumentation agent
home: https://appdynamics.com
icon: https://raw.githubusercontent.com/CiscoDevNet/appdynamics-charts/master/logo.png
keywords:
- appdynamics
- cluster
- kubernetes
- openshift
- monitoring
- pod
- deployment
maintainers:
- email: [email protected]
name: AppDynamics
name: appdynamics-auto-instrumentation-agent
version: 1.19.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Appdynamics Helm Chart

### Add AppDynamics helm repo

### Create values yaml to override default ones
```yaml
imageInfo:
agentImage: docker.io/appdynamics/auto-instrumentation-agent
agentTag: 24.4.0
imagePullPolicy: Always
imagePullSecret: null

controllerInfo:
url: <controller-url>
account: <controller-account>
username: <controller-username>
password: <controller-password>
accessKey: <controller-accesskey>

agentServiceAccount: appdynamics-auto-instrumentation-agent

instrumentationConfig:
enabled: true
containerAppCorrelationMethod: proxy
```
### Install auto-instrumentation-agent using helm chart
```bash
helm install auto-instrumentation-agent appdynamics-charts/auto-instrumentation-agent -f <values-file>.yaml --namespace appdynamics
```

### Note:
auto instrumentation agent installation is independent of otel collector.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- define "appdynamics-auto-instrumentation-agent.sensitiveDataController" -}}
{{ (get . "data") | trim | b64enc | required (get . "message") }}
{{- end -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
apiVersion: cluster.appdynamics.com/v1alpha1
kind: AutoInstrumentationAgent
metadata:
name: {{ (cat (regexReplaceAll "([^a-zA-Z0-9-.]+)" (lower (.Values.autoInstrumentationAgent.agentName | default (cat .Release.Name "-" "ai-agent" | nospace))) "-") "-" .Release.Namespace | nospace) | trunc 63 }}
namespace: {{ .Release.Namespace }}
spec:
agentName: {{ cat .Release.Name "-" "ai-agent" "-" .Release.Namespace }}
controllerUrl: {{ required "AppDynamics controller URL is required!" .Values.controllerInfo.url }}
account: {{ required "AppDynamics controller account is required!" .Values.controllerInfo.account }}
image: {{ .Values.imageInfo.agentImage }}:{{ .Values.imageInfo.agentTag }}
serviceAccountName: {{ .Values.agentServiceAccount }}

{{ if .Values.controllerInfo.customSSLCert -}}
# Custom SSL config
customSSLSecret: auto-instrumentation-agent-ssl-cert
{{- end }}

{{ with .Values.controllerInfo -}}
{{ if .proxyUrl -}}
# Proxy config
proxyUrl: {{ .proxyUrl }}
{{ if .authenticateProxy -}}
proxyUser: {{ required "Proxy user is required to authenticate proxy!" .proxyUser }}
{{- end }}
{{- end }}
{{- end }}

# Log specific properties
{{ with .Values.logProperties -}}
logFileSizeMb: {{ .logFileSizeMb }}
logFileBackups: {{ .logFileBackups }}
logLevel: {{ .logLevel }}
{{- end }}


{{ if .Values.imageInfo.imagePullPolicy -}}
# Image pull policy
imagePullPolicy: {{ .Values.imageInfo.imagePullPolicy }}
{{- end }}

{{ if .Values.imageInfo.imagePullSecret -}}
# Image pull secret
imagePullSecret: {{ .Values.imageInfo.imagePullSecret }}
{{- end }}

#labels
labels:
{{- toYaml .Values.autoInstrumentationAgent.labels | nindent 4 }}

# Node selector
nodeSelector:
{{- toYaml .Values.autoInstrumentationAgent.nodeSelector | nindent 4 }}

# Tolerations
tolerations:
{{- toYaml .Values.autoInstrumentationAgent.tolerations | nindent 4 }}

# Resources
resources:
{{- toYaml .Values.autoInstrumentationAgent.resources | nindent 4 }}

{{ with .Values.instrumentationConfig -}}
# Instrumentation config
{{ if .defaultAppName -}}
defaultAppName: {{ .defaultAppName }}
{{- end }}
{{ if .defaultEnv -}}
defaultEnv: {{ .defaultEnv }}
{{- end }}
{{ if .defaultInstrumentationLabelMatch -}}
defaultInstrumentationLabelMatch:
{{- toYaml .defaultInstrumentationLabelMatch | nindent 4 }}
{{- end }}
{{ if .defaultInstrumentMatchString -}}
defaultInstrumentMatchString: {{ .defaultInstrumentMatchString }}
{{- end }}
{{ if .defaultCustomConfig -}}
defaultCustomConfig: {{ .defaultCustomConfig }}
{{- end }}
{{ if .appNameStrategy -}}
appNameStrategy: {{ .appNameStrategy }}
{{- end }}
{{ if .tierNameStrategy -}}
tierNameStrategy: {{ .tierNameStrategy }}
{{- end }}
{{ if .appNameLabel -}}
appNameLabel: {{ .appNameLabel }}
{{- end }}
{{ if .tierNameLabel -}}
tierNameLabel: {{ .tierNameLabel }}
{{- end }}
{{ if .nodeName -}}
nodeName: {{ .nodeName }}
{{- end }}
{{ if .imageInfo -}}
imageInfo:
{{- toYaml .imageInfo | nindent 4}}
{{- end }}
{{ if .instrumentationMethod -}}
instrumentationMethod: {{ .instrumentationMethod }}
{{- end }}
{{ if .resourcesToInstrument -}}
resourcesToInstrument:
{{- toYaml .resourcesToInstrument | nindent 4 }}
{{- end }}
{{ if .instrumentationRules -}}
instrumentationRules:
{{- toYaml .instrumentationRules | nindent 4 }}
{{- end }}
{{ if .nsToInstrumentRegex -}}
nsToInstrumentRegex: {{ .nsToInstrumentRegex }}
{{- end }}
{{ if .netvizInfo -}}
netvizInfo:
{{- toYaml .netvizInfo | nindent 4 }}
{{- end }}
{{ if .runAsUser -}}
runAsUser: {{ .runAsUser }}
{{- end }}
{{ if .runAsGroup -}}
runAsGroup: {{ .runAsGroup }}
{{- end }}
{{ if .runAsNonRoot -}}
runAsNonRoot: {{ .runAsNonRoot }}
{{- end }}
{{ if .readOnlyRootFilesystem -}}
readOnlyRootFilesystem: {{ .readOnlyRootFilesystem }}
{{- end }}
{{ if .allowPrivilegeEscalation -}}
allowPrivilegeEscalation: {{ .allowPrivilegeEscalation }}
{{- end }}
{{ if .capabilities -}}
capabilities: {{ .capabilities }}
{{- end }}
{{ if .seccompProfile -}}
seccompProfile: {{ .seccompProfile }}
{{- end }}
{{ if .windowsOptions -}}
windowsOptions: {{ .windowsOptions }}
{{- end }}
{{ if .seLinuxOptions -}}
seLinuxOptions: {{ .seLinuxOptions }}
{{- end }}
{{ if .procMount -}}
procMount: {{ .procMount }}
{{- end }}
{{ if .privileged -}}
privileged: {{ .privileged }}
{{- end }}
{{ if .numberOfTaskWorkers -}}
numberOfTaskWorkers: {{ .numberOfTaskWorkers }}
{{- end }}
{{ if .defaultAnalyticsHost -}}
defaultAnalyticsHost: {{ .defaultAnalyticsHost }}
{{- end }}
{{ if .defaultAnalyticsPort -}}
defaultAnalyticsPort: {{ .defaultAnalyticsPort }}
{{- end }}
{{ if .defaultAnalyticsSslEnabled -}}
defaultAnalyticsSslEnabled: {{ .defaultAnalyticsSslEnabled }}
{{- end }}
{{ if .enableInstallationReport -}}
enableInstallationReport: {{ .enableInstallationReport }}
{{ end -}}
{{ if .enableForceReInstrumentation -}}
enableForceReInstrumentation: {{ .enableForceReInstrumentation }}
{{ end -}}
{{if .containerAppCorrelationMethod -}}
containerAppCorrelationMethod: {{ .containerAppCorrelationMethod }}
{{ end -}}
{{if .metadataServerPort -}}
metadataServerPort: {{ .metadataServerPort }}
{{ end -}}
{{ end -}}
Loading
Loading