6.1 KiB
CloudFoundry
CloudFoundry Attributes
CloudFoundry resource attributes.
[1]: Application instrumentation should use the value from environment
variable VCAP_APPLICATION.application_id. This is the same value as
reported by cf app <app-name> --guid.
[2]: CloudFoundry defines the instance_id in the Loggregator v2 envelope.
It is used for logs and metrics emitted by CloudFoundry. It is
supposed to contain the application instance index for applications
deployed on the runtime.
Application instrumentation should use the value from environment
variable CF_INSTANCE_INDEX.
[3]: Application instrumentation should use the value from environment
variable VCAP_APPLICATION.application_name. This is the same value
as reported by cf apps.
[4]: Application instrumentation should use the value from environment
variable VCAP_APPLICATION.org_id. This is the same value as
reported by cf org <org-name> --guid.
[5]: Application instrumentation should use the value from environment
variable VCAP_APPLICATION.org_name. This is the same value as
reported by cf orgs.
[6]: Application instrumentation should use the value from environment
variable VCAP_APPLICATION.process_id. It is supposed to be equal to
VCAP_APPLICATION.app_id for applications deployed to the runtime.
For system components, this could be the actual PID.
[7]: CloudFoundry applications can consist of multiple jobs. Usually the
main process will be of type web. There can be additional background
tasks or side-cars with different process types.
[8]: Application instrumentation should use the value from environment
variable VCAP_APPLICATION.space_id. This is the same value as
reported by cf space <space-name> --guid.
[9]: Application instrumentation should use the value from environment
variable VCAP_APPLICATION.space_name. This is the same value as
reported by cf spaces.
[10]: CloudFoundry defines the source_id in the Loggregator v2 envelope.
It is used for logs and metrics emitted by CloudFoundry. It is
supposed to contain the component name, e.g. "gorouter", for
CloudFoundry components.
When system components are instrumented, values from the
Bosh spec
should be used. The system.id should be set to
spec.deployment/spec.name.
[11]: CloudFoundry defines the instance_id in the Loggregator v2 envelope.
It is used for logs and metrics emitted by CloudFoundry. It is
supposed to contain the vm id for CloudFoundry components.
When system components are instrumented, values from the
Bosh spec
should be used. The system.instance.id should be set to spec.id.