Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates installed from integration package are missing dynamic templates #4610

Closed
axw opened this issue Jan 12, 2021 · 0 comments · Fixed by #4611
Closed

Templates installed from integration package are missing dynamic templates #4610

axw opened this issue Jan 12, 2021 · 0 comments · Fixed by #4611
Assignees

Comments

@axw
Copy link
Member

axw commented Jan 12, 2021

APM Server version (apm-server version):

6d06e68

Description of the problem including expected versus actual behavior:

When running under Fleet, templates are missing the APM-specific dynamic templates for labels.

Steps to reproduce:

  • Install APM package, assign to a policy and agent
  • Send some APM data to the agent
  • Check the index template mappings

In the mappings, the dynamic templates will look like

"dynamic_templates": [
    {
      "strings_as_keyword": {
        "mapping": {
          "ignore_above": 1024,
          "type": "keyword"
        },
        "match_mapping_type": "string"
      }
    }
  ]

They should look like (ignore duplicates, that's #4576)

"dynamic_templates": [
    {
      "labels": {
        "path_match": "labels.*",
        "mapping": {
          "type": "keyword"
        },
        "match_mapping_type": "string"
      }
    },
    {
      "container.labels": {
        "path_match": "container.labels.*",
        "mapping": {
          "type": "keyword"
        },
        "match_mapping_type": "string"
      }
    },
    {
      "fields": {
        "path_match": "fields.*",
        "mapping": {
          "type": "keyword"
        },
        "match_mapping_type": "string"
      }
    },
    {
      "docker.container.labels": {
        "path_match": "docker.container.labels.*",
        "mapping": {
          "type": "keyword"
        },
        "match_mapping_type": "string"
      }
    },
    {
      "kubernetes.labels.*": {
        "path_match": "kubernetes.labels.*",
        "mapping": {
          "type": "keyword"
        },
        "match_mapping_type": "*"
      }
    },
    {
      "kubernetes.annotations.*": {
        "path_match": "kubernetes.annotations.*",
        "mapping": {
          "type": "keyword"
        },
        "match_mapping_type": "*"
      }
    },
    {
      "labels_string": {
        "path_match": "labels.*",
        "mapping": {
          "type": "keyword"
        },
        "match_mapping_type": "string"
      }
    },
    {
      "labels_boolean": {
        "path_match": "labels.*",
        "mapping": {
          "type": "boolean"
        },
        "match_mapping_type": "boolean"
      }
    },
    {
      "labels_*": {
        "path_match": "labels.*",
        "mapping": {
          "scaling_factor": 1000000,
          "type": "scaled_float"
        },
        "match_mapping_type": "*"
      }
    },
    {
      "labels_string": {
        "path_match": "labels.*",
        "mapping": {
          "type": "keyword"
        },
        "match_mapping_type": "string"
      }
    },
    {
      "labels_boolean": {
        "path_match": "labels.*",
        "mapping": {
          "type": "boolean"
        },
        "match_mapping_type": "boolean"
      }
    },
    {
      "labels_*": {
        "path_match": "labels.*",
        "mapping": {
          "scaling_factor": 1000000,
          "type": "scaled_float"
        },
        "match_mapping_type": "*"
      }
    },
    {
      "labels_string": {
        "path_match": "labels.*",
        "mapping": {
          "type": "keyword"
        },
        "match_mapping_type": "string"
      }
    },
    {
      "labels_boolean": {
        "path_match": "labels.*",
        "mapping": {
          "type": "boolean"
        },
        "match_mapping_type": "boolean"
      }
    },
    {
      "labels_*": {
        "path_match": "labels.*",
        "mapping": {
          "scaling_factor": 1000000,
          "type": "scaled_float"
        },
        "match_mapping_type": "*"
      }
    },
    {
      "labels_string": {
        "path_match": "labels.*",
        "mapping": {
          "type": "keyword"
        },
        "match_mapping_type": "string"
      }
    },
    {
      "labels_boolean": {
        "path_match": "labels.*",
        "mapping": {
          "type": "boolean"
        },
        "match_mapping_type": "boolean"
      }
    },
    {
      "labels_*": {
        "path_match": "labels.*",
        "mapping": {
          "scaling_factor": 1000000,
          "type": "scaled_float"
        },
        "match_mapping_type": "*"
      }
    },
    {
      "labels_string": {
        "path_match": "labels.*",
        "mapping": {
          "type": "keyword"
        },
        "match_mapping_type": "string"
      }
    },
    {
      "labels_boolean": {
        "path_match": "labels.*",
        "mapping": {
          "type": "boolean"
        },
        "match_mapping_type": "boolean"
      }
    },
    {
      "labels_*": {
        "path_match": "labels.*",
        "mapping": {
          "scaling_factor": 1000000,
          "type": "scaled_float"
        },
        "match_mapping_type": "*"
      }
    },
    {
      "transaction.marks": {
        "path_match": "transaction.marks.*",
        "mapping": {
          "type": "keyword"
        },
        "match_mapping_type": "string"
      }
    },
    {
      "transaction.marks.*.*": {
        "path_match": "transaction.marks.*.*",
        "mapping": {
          "scaling_factor": 1000000,
          "type": "scaled_float"
        },
        "match_mapping_type": "*"
      }
    },
    {
      "strings_as_keyword": {
        "mapping": {
          "ignore_above": 1024,
          "type": "keyword"
        },
        "match_mapping_type": "string"
      }
    }
  ],
@axw axw mentioned this issue Jan 12, 2021
10 tasks
@jalvz jalvz self-assigned this Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants