Skip to content

Instantly share code, notes, and snippets.

@ruflin
Last active October 17, 2018 12:50
Show Gist options
  • Save ruflin/8a6dece8e38254f609b70cf854017bf5 to your computer and use it in GitHub Desktop.
Save ruflin/8a6dece8e38254f609b70cf854017bf5 to your computer and use it in GitHub Desktop.

Change meaning of agent.type and service.type

So far service.name was used for things like elasticsearch. APM is putting this information under service.type and service.name is not used yet. .name and .type is also used in other places in ECS. Most of the .name entries are user defined and type is predefined values.

The general suggestion is to make .type the value that will not change over time but .name can. A few examples:

Filebeat Agent reading MySQL logs on production

agent.name: filebeat-prod
agent.type: filebeat
service.name: mysql-prod
service.type: mysql
service.environment: prod

APM Node.js agent is running inside the service foo on testing (self built)

agent.name: 
agent.type: apm-agent-nodejs
service.name: foo-test
service.type: foo

The same APM agent is running in the same service but in production:

agent.name: 
agent.type: apm-agent-nodejs
service.name: foo-prod
service.type: foo

Currently in APM

service.name: "opbeans-python"

This is given by the user. type would be copied?

agent.name and service.name are empty if not set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment