Skip to content

Commit

Permalink
Merge branch 'main' into readme-template
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwanaths authored Jan 9, 2024
2 parents 4c45a66 + 76401b2 commit c91d3c9
Show file tree
Hide file tree
Showing 692 changed files with 66,363 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packs/appdynamics-collector-1.13.684/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## The Appdynamics Collector Cloud Helm Charts
An Add-on pack for Spectro Cloud to use the monioring 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
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,25 @@
# 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/

LICENSES/
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: v2
appVersion: 1.13.684
dependencies:
- name: appdynamics-cloud-k8s-monitoring
repository: ""
version: 1.13.0
- name: appdynamics-cloud-db-collector
repository: ""
version: 1.4.0
- condition: appdynamics-otel-collector.enabled
name: appdynamics-otel-collector
repository: https://artifactory.bare.appdynamics.com/artifactory/appd-helm
version: 23.8.0-1073
- condition: appdynamics-security-collector.enabled
name: appdynamics-security-collector
repository: https://artifactory.bare.appdynamics.com/artifactory/appd-helm
version: 1.0.15
- condition: appdynamics-otel-instrumentation.enabled
name: appdynamics-otel-instrumentation
repository: https://artifactory.bare.appdynamics.com/artifactory/appd-helm
version: 23.8.0-1092
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: support@appdynamics.com
name: AppDynamics
name: appdynamics-collectors
type: application
version: 1.13.684

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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/
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v2
appVersion: 23.6.0
description: Helm Chart to deploy dbcollector as a deployment and corresponding dbconfigs.
home: https://appdynamics.com
icon: https://raw.githubusercontent.com/CiscoDevNet/appdynamics-charts/master/logo.png
keywords:
- appdynamics
- database
- dbcollector
- dbconfig
- kubernetes
- monitoring
- pod
- deployment
maintainers:
- email: support@appdynamics.com
name: AppDynamics
name: appdynamics-cloud-db-collector
version: 1.4.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{{ if .Values.install.dbCollector -}}
apiVersion: cluster.appdynamics.com/v1alpha1
# Kind will match the Kind section in generated CRD at Operator
kind: DbCollector
# Release is picked up from the command
metadata:
name: {{ printf "%s-%s" .Release.Name "appdynamics-db-collector" | trunc 63 }}
namespace: {{ .Release.Namespace }}
spec:
# spec for dbCollector here
{{- template "podConfigs" .Values.dbCollectorPod }}

{{ with .Values.appdCloudAuth -}}
# CIS credentials
clientId: {{ .clientId }}
# either clientSecret will be present
{{ if .clientSecret -}}
clientSecret: {{ .clientSecret }}
{{ else }}
# if clientSecret is not present then clientSecretKeyRef is expected
clientSecretVarSource: {{ .clientSecretEnvVar.valueFrom }}
{{- end }}
endpoint: {{ .endpoint }}
tokenUrl: {{ .tokenUrl }}

{{- end }}

{{ with .Values.dbCollectorConfig -}}
# Profiling flag and port
pprofEnable: {{ .pprof.enabled }}
{{ if .pprof.enabled -}}
pprofPort: {{ .pprof.port }}
{{- end }}
# Prometheus flag and port
metricEnable: {{ .metric.enabled }}
{{ if .metric.enabled -}}
metricPort: {{ .metric.port }}
{{- end }}
# Log level
logLevel : {{ .logLevel }}
{{- end }}
{{ if ne .Values.dbCollectorPod.image "appdynamics/appdynamics-cloud-db-collector:23.2.0-539"}}
# Mount path for generated config
configMountPath: /opt/appdynamics/appddbcol/conf/generated
{{ end }}
{{ end -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{{ if .Values.install.dbMonitoringConfigs -}}
# loop over available dbconfigs to create multiple CRs
{{- range .Values.dbMonitoringConfigs }}
# convert given configname to lower case
{{ $configResName := lower .configName }}
# default dbPasswordSecretName
{{- $dbPasswordSecretName := printf "%s-%s-%s" $.Release.Name $configResName "db-password"}}
---
apiVersion: cluster.appdynamics.com/v1alpha1
# Kind will match the Kind section in generated CRD at Operator
kind: DbConfig
# Release is picked up from the command
metadata:
name: {{ printf "%s-%s" $.Release.Name $configResName | trunc 255 }}
namespace: {{ $.Release.Namespace }}
spec:
# spec for dbConfigs here
dbType: {{ .dbType }}
configName: {{ .configName }}
# if collector name is specified, otherwise default to collector deployed via current release
{{ if not .dbCollector }}
dbCollector:
name: {{ printf "%s-%s" $.Release.Name "appdynamics-db-collector" | trunc 63 }}
namespace: {{ $.Release.Namespace }}
{{ else }}
dbCollector:
name: {{ .dbCollector.name }}
namespace: {{ .dbCollector.namespace }}
{{ end }}
hostname: {{ .hostname }}
hostport: {{ .hostport }}
username: {{ .username }}
# if Secret Name containing the password is given
{{ if .passwordSecretName }}
passwordSecretName: {{ .passwordSecretName }}
# otherwise use the created secret
{{ else }}
passwordSecretName: {{ $dbPasswordSecretName}}
{{ end }}

# database : optional field
{{ if .database -}}
database: {{ .database }}
{{ end -}}
# environment : optional field
{{ if .environment -}}
environment:
platform: {{ .environment.platform }}
{{ end }}
# tlsconfig : optional field
{{ if .tlsConfig -}}
tlsConfig:
# hostnameincertificate : optional field
{{ if .tlsConfig.hostNameInCertificate -}}
hostNameInCertificate: {{ .tlsConfig.hostNameInCertificate }}
{{- end }}
certSecretName: {{ .tlsConfig.certSecretName }}

{{ end }}
{{- end }}
{{ end -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This manifest creates a default secret for the dbconfig whose secret is passed as a string

{{ if .Values.install.dbMonitoringConfigs -}}
# loop over available dbconfigs to create multiple CRs
{{- range .Values.dbMonitoringConfigs }}
# convert given configname to lower case
{{ $configResName := lower .configName }}
# default dbSecretName
{{- $dbPasswordSecretName := printf "%s-%s-%s" $.Release.Name $configResName "db-password"}}

# secret to be created if db passwordSecretName is not provided( provided as a string )
{{ if not .passwordSecretName }}
---
apiVersion: v1
kind: Secret
metadata:
name: {{ $dbPasswordSecretName }}
namespace: {{ $.Release.Namespace }}
type: Opaque
stringData:
password: {{ .password }}
{{ end }}
{{- end }}
{{ end -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{ if or .Values.install.dbCollector .Values.install.dbMonitoringConfigs -}}
{{ if .Capabilities.APIVersions.Has "security.openshift.io/v1/SecurityContextConstraints" -}}
apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
annotations:
kubernetes.io/description: 'dbcollector-privileged-scc is a custom SCC for AppDynamics Cloud Database Collector'
name: dbcollector-privileged-scc
namespace: {{ .Release.Namespace }}
allowHostDirVolumePlugin: false
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegedContainer: false
readOnlyRootFilesystem: false
runAsUser:
type: RunAsAny
seLinuxContext:
type: MustRunAs
users:
- system:serviceaccount:{{ .Release.Namespace }}:{{ .Values.dbcollectorServiceAccount }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{ if or .Values.install.dbCollector .Values.install.dbMonitoringConfigs -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Values.dbcollectorServiceAccount }}
namespace: {{ .Release.Namespace }}
{{- end }}
Loading

0 comments on commit c91d3c9

Please sign in to comment.