Skip to content

Commit

Permalink
[chore] add example showcasing multimetrics format for platform metri…
Browse files Browse the repository at this point in the history
…cs (#1222)
  • Loading branch information
atoulme committed Mar 20, 2024
1 parent 58132a0 commit 397bc37
Show file tree
Hide file tree
Showing 10 changed files with 1,141 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/multi-metrics/README.md
@@ -0,0 +1,5 @@
# Example of chart configuration

## Use multi-metric format when sending metrics to Splunk Platform

The HEC multi-metric format combines multiple metrics in the same HEC metrics payload to optimize transfer.
13 changes: 13 additions & 0 deletions examples/multi-metrics/enable-multi-metrics-values.yaml
@@ -0,0 +1,13 @@
clusterName: CHANGEME

splunkPlatform:
endpoint: CHANGEME
token: CHANGEME
metricsIndex: CHANGEME
metricsEnabled: true

agent:
config:
exporters:
splunk_hec/platform_metrics:
use_multi_metric_format: true
83 changes: 83 additions & 0 deletions examples/multi-metrics/rendered_manifests/clusterRole.yaml
@@ -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.96.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/instance: default
app.kubernetes.io/version: "0.96.1"
app: splunk-otel-collector
chart: splunk-otel-collector-0.96.0
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
24 changes: 24 additions & 0 deletions examples/multi-metrics/rendered_manifests/clusterRoleBinding.yaml
@@ -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.96.0
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/instance: default
app.kubernetes.io/version: "0.96.1"
app: splunk-otel-collector
chart: splunk-otel-collector-0.96.0
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

0 comments on commit 397bc37

Please sign in to comment.