Skip to content

Commit

Permalink
chore: expose some tail configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vihas Splunk committed Nov 8, 2023
1 parent a2e332b commit 9e3f500
Show file tree
Hide file tree
Showing 19 changed files with 1,376 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ data:
pos_file /var/log/splunk-fluentd-containers.log.pos
path_key source
read_from_head true
enable_stat_watcher true
refresh_interval 60
<parse>
@include source.containers.parse.conf
time_key time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
component: otel-collector-agent
release: default
annotations:
checksum/config: d4c9b20f56dff552575d9327efe08d7a4313d01e9d3599ac56598532080df6fd
checksum/config: 1c29b0dcba3cf6ba0f4428e2173637e2833540b2b39c7c59f32d3610c2715e2d
kubectl.kubernetes.io/default-container: otel-collector
spec:
hostNetwork: true
Expand Down
6 changes: 6 additions & 0 deletions examples/fluentd-refresh-interval/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Example of chart configuration

## Multiline Fluentd logging for Java stacktraces

This example shows how to configure FluentD to capture logs that span multiple lines,
specifically Java application stacktraces.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
clusterName: CHANGEME
splunkObservability:
realm: CHANGEME
accessToken: CHANGEME
logsEnabled: true

logsEngine: fluentd

fluentd:
config:
refreshInterval: 30
enableStatWatcher: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
---
# Source: splunk-otel-collector/templates/clusterRole.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: default-splunk-otel-collector
labels:
app.kubernetes.io/name: splunk-otel-collector
helm.sh/chart: splunk-otel-collector-0.86.1
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/instance: default
app.kubernetes.io/version: "0.87.0"
app: splunk-otel-collector
chart: splunk-otel-collector-0.86.1
release: default
heritage: Helm
rules:
- apiGroups:
- ""
resources:
- events
- namespaces
- namespaces/status
- nodes
- nodes/spec
- nodes/stats
- nodes/proxy
- pods
- pods/status
- persistentvolumeclaims
- persistentvolumes
- replicationcontrollers
- replicationcontrollers/status
- resourcequotas
- services
verbs:
- get
- list
- watch
- apiGroups:
- apps
resources:
- daemonsets
- deployments
- replicasets
- statefulsets
verbs:
- get
- list
- watch
- apiGroups:
- extensions
resources:
- daemonsets
- deployments
- replicasets
verbs:
- get
- list
- watch
- apiGroups:
- batch
resources:
- jobs
- cronjobs
verbs:
- get
- list
- watch
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- get
- list
- watch
- nonResourceURLs:
- /metrics
verbs:
- get
- list
- watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
# Source: splunk-otel-collector/templates/clusterRoleBinding.yaml
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: default-splunk-otel-collector
labels:
app.kubernetes.io/name: splunk-otel-collector
helm.sh/chart: splunk-otel-collector-0.86.1
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/instance: default
app.kubernetes.io/version: "0.87.0"
app: splunk-otel-collector
chart: splunk-otel-collector-0.86.1
release: default
heritage: Helm
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: default-splunk-otel-collector
subjects:
- kind: ServiceAccount
name: default-splunk-otel-collector
namespace: default
Loading

0 comments on commit 9e3f500

Please sign in to comment.