-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
218 changed files
with
20,478 additions
and
0 deletions.
There are no files selected for viewing
83 changes: 83 additions & 0 deletions
83
examples/add-receiver-creator/rendered_manifests/clusterRole.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.70.0 | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/instance: default | ||
app.kubernetes.io/version: "0.70.0" | ||
app: splunk-otel-collector | ||
chart: splunk-otel-collector-0.70.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
24
examples/add-receiver-creator/rendered_manifests/clusterRoleBinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.70.0 | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/instance: default | ||
app.kubernetes.io/version: "0.70.0" | ||
app: splunk-otel-collector | ||
chart: splunk-otel-collector-0.70.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 |
289 changes: 289 additions & 0 deletions
289
examples/add-receiver-creator/rendered_manifests/configmap-agent.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,289 @@ | ||
--- | ||
# Source: splunk-otel-collector/templates/configmap-agent.yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: default-splunk-otel-collector-otel-agent | ||
labels: | ||
app.kubernetes.io/name: splunk-otel-collector | ||
helm.sh/chart: splunk-otel-collector-0.70.0 | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/instance: default | ||
app.kubernetes.io/version: "0.70.0" | ||
app: splunk-otel-collector | ||
chart: splunk-otel-collector-0.70.0 | ||
release: default | ||
heritage: Helm | ||
data: | ||
relay: | | ||
exporters: | ||
sapm: | ||
access_token: ${SPLUNK_OBSERVABILITY_ACCESS_TOKEN} | ||
endpoint: https://ingest.CHANGEME.signalfx.com/v2/trace | ||
signalfx: | ||
access_token: ${SPLUNK_OBSERVABILITY_ACCESS_TOKEN} | ||
api_url: https://api.CHANGEME.signalfx.com | ||
correlation: null | ||
ingest_url: https://ingest.CHANGEME.signalfx.com | ||
sync_host_metadata: true | ||
extensions: | ||
health_check: null | ||
k8s_observer: | ||
auth_type: serviceAccount | ||
node: ${K8S_NODE_NAME} | ||
memory_ballast: | ||
size_mib: ${SPLUNK_BALLAST_SIZE_MIB} | ||
zpages: null | ||
processors: | ||
batch: null | ||
filter/logs: | ||
logs: | ||
exclude: | ||
match_type: strict | ||
resource_attributes: | ||
- key: splunk.com/exclude | ||
value: "true" | ||
groupbyattrs/logs: | ||
keys: | ||
- com.splunk.source | ||
- com.splunk.sourcetype | ||
- container.id | ||
- fluent.tag | ||
- istio_service_name | ||
- k8s.container.name | ||
- k8s.namespace.name | ||
- k8s.pod.name | ||
- k8s.pod.uid | ||
k8sattributes: | ||
extract: | ||
annotations: | ||
- from: pod | ||
key: splunk.com/sourcetype | ||
- from: namespace | ||
key: splunk.com/exclude | ||
tag_name: splunk.com/exclude | ||
- from: pod | ||
key: splunk.com/exclude | ||
tag_name: splunk.com/exclude | ||
- from: namespace | ||
key: splunk.com/index | ||
tag_name: com.splunk.index | ||
- from: pod | ||
key: splunk.com/index | ||
tag_name: com.splunk.index | ||
labels: | ||
- key: app | ||
metadata: | ||
- k8s.namespace.name | ||
- k8s.node.name | ||
- k8s.pod.name | ||
- k8s.pod.uid | ||
- container.id | ||
- container.image.name | ||
- container.image.tag | ||
filter: | ||
node_from_env_var: K8S_NODE_NAME | ||
pod_association: | ||
- sources: | ||
- from: resource_attribute | ||
name: k8s.pod.uid | ||
- sources: | ||
- from: resource_attribute | ||
name: k8s.pod.ip | ||
- sources: | ||
- from: resource_attribute | ||
name: ip | ||
- sources: | ||
- from: connection | ||
- sources: | ||
- from: resource_attribute | ||
name: host.name | ||
memory_limiter: | ||
check_interval: 2s | ||
limit_mib: ${SPLUNK_MEMORY_LIMIT_MIB} | ||
resource: | ||
attributes: | ||
- action: insert | ||
key: k8s.node.name | ||
value: ${K8S_NODE_NAME} | ||
- action: upsert | ||
key: k8s.cluster.name | ||
value: CHANGEME | ||
resource/add_agent_k8s: | ||
attributes: | ||
- action: insert | ||
key: k8s.pod.name | ||
value: ${K8S_POD_NAME} | ||
- action: insert | ||
key: k8s.pod.uid | ||
value: ${K8S_POD_UID} | ||
- action: insert | ||
key: k8s.namespace.name | ||
value: ${K8S_NAMESPACE} | ||
resource/logs: | ||
attributes: | ||
- action: upsert | ||
from_attribute: k8s.pod.annotations.splunk.com/sourcetype | ||
key: com.splunk.sourcetype | ||
- action: delete | ||
key: k8s.pod.annotations.splunk.com/sourcetype | ||
- action: delete | ||
key: splunk.com/exclude | ||
resourcedetection: | ||
detectors: | ||
- env | ||
- system | ||
override: true | ||
timeout: 10s | ||
receivers: | ||
hostmetrics: | ||
collection_interval: 10s | ||
scrapers: | ||
cpu: null | ||
disk: null | ||
filesystem: null | ||
load: null | ||
memory: null | ||
network: null | ||
paging: null | ||
processes: null | ||
jaeger: | ||
protocols: | ||
grpc: | ||
endpoint: 0.0.0.0:14250 | ||
thrift_http: | ||
endpoint: 0.0.0.0:14268 | ||
kubeletstats: | ||
auth_type: serviceAccount | ||
collection_interval: 10s | ||
endpoint: ${K8S_NODE_IP}:10250 | ||
extra_metadata_labels: | ||
- container.id | ||
metric_groups: | ||
- container | ||
- pod | ||
- node | ||
otlp: | ||
protocols: | ||
grpc: | ||
endpoint: 0.0.0.0:4317 | ||
http: | ||
endpoint: 0.0.0.0:4318 | ||
prometheus/agent: | ||
config: | ||
scrape_configs: | ||
- job_name: otel-agent | ||
scrape_interval: 10s | ||
static_configs: | ||
- targets: | ||
- ${K8S_POD_IP}:8889 | ||
receiver_creator: | ||
receivers: | ||
smartagent/coredns: | ||
config: | ||
extraDimensions: | ||
metric_source: k8s-coredns | ||
port: 9153 | ||
type: coredns | ||
rule: type == "pod" && labels["k8s-app"] == "kube-dns" | ||
smartagent/kube-controller-manager: | ||
config: | ||
extraDimensions: | ||
metric_source: kubernetes-controller-manager | ||
port: 10257 | ||
skipVerify: true | ||
type: kube-controller-manager | ||
useHTTPS: true | ||
useServiceAccount: true | ||
rule: type == "pod" && labels["k8s-app"] == "kube-controller-manager" | ||
smartagent/kubernetes-apiserver: | ||
config: | ||
extraDimensions: | ||
metric_source: kubernetes-apiserver | ||
skipVerify: true | ||
type: kubernetes-apiserver | ||
useHTTPS: true | ||
useServiceAccount: true | ||
rule: type == "port" && port == 443 && pod.labels["k8s-app"] == "kube-apiserver" | ||
smartagent/kubernetes-proxy: | ||
config: | ||
extraDimensions: | ||
metric_source: kubernetes-proxy | ||
port: 10249 | ||
type: kubernetes-proxy | ||
rule: type == "pod" && labels["k8s-app"] == "kube-proxy" | ||
smartagent/kubernetes-scheduler: | ||
config: | ||
extraDimensions: | ||
metric_source: kubernetes-scheduler | ||
port: 10251 | ||
type: kubernetes-scheduler | ||
rule: type == "pod" && labels["k8s-app"] == "kube-scheduler" | ||
smartagent/postgresql: | ||
config: | ||
connectionString: sslmode=disable user={{.username}} password={{.password}} | ||
params: | ||
password: password | ||
username: postgres | ||
port: 5432 | ||
type: postgresql | ||
rule: type == "port" && port == 5432 | ||
watch_observers: | ||
- k8s_observer | ||
signalfx: | ||
endpoint: 0.0.0.0:9943 | ||
smartagent/signalfx-forwarder: | ||
listenAddress: 0.0.0.0:9080 | ||
type: signalfx-forwarder | ||
zipkin: | ||
endpoint: 0.0.0.0:9411 | ||
service: | ||
extensions: | ||
- health_check | ||
- k8s_observer | ||
- memory_ballast | ||
- zpages | ||
pipelines: | ||
metrics: | ||
exporters: | ||
- signalfx | ||
processors: | ||
- memory_limiter | ||
- batch | ||
- resourcedetection | ||
- resource | ||
receivers: | ||
- hostmetrics | ||
- kubeletstats | ||
- otlp | ||
- receiver_creator | ||
- signalfx | ||
metrics/agent: | ||
exporters: | ||
- signalfx | ||
processors: | ||
- memory_limiter | ||
- batch | ||
- resource/add_agent_k8s | ||
- resourcedetection | ||
- resource | ||
receivers: | ||
- prometheus/agent | ||
traces: | ||
exporters: | ||
- sapm | ||
- signalfx | ||
processors: | ||
- memory_limiter | ||
- k8sattributes | ||
- batch | ||
- resourcedetection | ||
- resource | ||
receivers: | ||
- otlp | ||
- jaeger | ||
- smartagent/signalfx-forwarder | ||
- zipkin | ||
telemetry: | ||
metrics: | ||
address: 0.0.0.0:8889 |
Oops, something went wrong.