Back to Grafana

Grafana OpenTelemetry Semantic Conventions

pkg/semconv/README.md

13.0.13.3 KB
Original Source

Grafana OpenTelemetry Semantic Conventions

<!-- toc --> <!-- tocstop -->

Adding new attributes

  1. Add a new attribute to a new or existing attribute group in model/registry.
  2. Add a reference to the new attribute in a new or existing attribute group in model/trace.
  3. If you are adding a new attribute group, add a new semconv HTML comment tag to the README.md file with the name of the new attribute group.
  4. Run make all to update the generated files.

For more information:

Attribute Groups

grafana.datasource

<!-- semconv trace.grafana.datasource -->
AttributeTypeDescriptionExamplesRequirement LevelStability
grafana.datasource.typestringThe datasource type.prometheus; loki; grafana-github-datasourceRecommended
grafana.datasource.uidstringThe datasource unique identifier.abcdefg-123456Recommended
<!-- endsemconv -->

grafana.datasource.request

<!-- semconv trace.grafana.datasource.request -->
AttributeTypeDescriptionExamplesRequirement LevelStability
grafana.datasource.request.query_countintThe number of queries in the request.3Recommended
<!-- endsemconv -->

k8s

<!-- semconv trace.k8s -->
AttributeTypeDescriptionExamplesRequirement LevelStability
k8s.dataplaneservice.namestringThe name of the DataPlaneService.v0alpha1.prometheus.grafana.appRecommended
<!-- endsemconv -->

grafana.plugin

<!-- semconv trace.grafana.plugin -->
AttributeTypeDescriptionExamplesRequirement LevelStability
grafana.plugin.idstringThe plugin ID.prometheus; loki; grafana-github-datasourceRecommended
grafana.plugin.source.classstringThe plugin source class.coreRecommended
grafana.plugin.typestringThe plugin type.datasourceRecommended
<!-- endsemconv -->