Enable RUM on APM (ECK)

Hi,

I'm trying to enable RUM in my ECK deployment. I've added this to my yaml config, but it doesn't work:

apiVersion: apm.k8s.elastic.co/v1
kind: ApmServer
metadata:
  name: apm-server-quickstart
  namespace: default
spec:
  version: 7.6.0
  count: 1
  secureSettings:
  - secretName: apm-secret-settings
  config:
    output:
      elasticsearch:
        hosts: ["quickstart-es-http:9200"]
        username: elastic
        password: "${ES_PASSWORD}"
        protocol: "https"
        ssl.certificate_authorities: ["/usr/share/apm-server/config/elasticsearch-ca/tls.crt"]
    rum:
      enabled: true
      event_rate:
        limit: 300
        lru_size: 1000
      allow_origins: ['*']
      library_pattern: "node_modules|~"
      exclude_from_grouping: "^/webpack"
      source_mapping:
        enabled: true
        cache:
          expiration: 5m
        index_pattern: "apm-*-source_map*"
  elasticsearchRef:
    name: quickstart
podTemplate:
spec:
  containers:
  - name: apm-server
    volumeMounts:
    - mountPath: /usr/share/apm-server/config/elasticsearch-ca
      name: elasticsearch-ca
      readOnly: true
  volumes:
  - name: elasticsearch-ca
    secret:
      defaultMode: 420
      optional: false
      secretName: es-ca # This is the secret that holds the Elasticsearch CA cert

Can anyone give me a hint what I'm doing wrong?

Thank you!

This seems odd :

I guess it should be:

Any reason to not using elasticsearchRef as described in the documentation ?

Sorry, I copied an version of my yaml with this typo. For sure it is like the demo. The APM Server is running and works for .net core apps. My only problem is, that it doesn't enable rum.

I've updated my initial post... (fixed typo and completed the code snippet, was only a part)

Is the relevant setting not

apm-server.rum.enabled: true

instead of

rum.enabled: true

2 Likes

I will have a try. But while looking at the following file, I got the feeling that rum.enabled should be right:

You were right. That was the point, thank you!