Skip to content

Commit

Permalink
Merge pull request #2380 from amvanbaren/tracing-otel-attrs
Browse files Browse the repository at this point in the history
Add OpenTelemetry attributes
  • Loading branch information
amvanbaren committed Feb 22, 2024
2 parents 42347de + 9ed49cc commit 861e4f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN /usr/bin/yarn --cwd website \
&& /usr/bin/yarn --cwd website build

# Main image derived from openvsx-server
FROM docker.io/amvanbaren/openvsx-server:1b712aa
FROM docker.io/amvanbaren/openvsx-server:4ff5504

COPY --from=builder --chown=openvsx:openvsx /workdir/website/static/ BOOT-INF/classes/static/
COPY --from=builder --chown=openvsx:openvsx /workdir/configuration/ config/
Expand Down
5 changes: 5 additions & 0 deletions configuration/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ management:
health:
probes:
enabled: true
metrics:
tags:
"[service.name]": ${spring.application.name}
"[deployment.environment]": ${ENVNAME}
"[service.instance.id]": ${HOSTNAME}
endpoints:
web:
exposure:
Expand Down
12 changes: 0 additions & 12 deletions kubernetes/open-vsx.org.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -81,26 +81,14 @@ local newGrafanaAgentConfigMap() = {
url: ${PROMETHEUS_URL}
scrape_configs:
- job_name: integrations/spring-boot
relabel_configs:
- replacement: ${HOSTNAME}
target_label: instance
static_configs:
- targets: ['localhost:8081']
labels:
environment: ${ENVNAME}
metrics_path: /actuator/prometheus
global:
scrape_interval: 60s
traces:
configs:
- name: default
attributes:
- key: environment
action: upsert
value: ${ENVNAME}
- key: instance
action: upsert
value: ${HOSTNAME}
remote_write:
- endpoint: ${TEMPO_URL}
basic_auth:
Expand Down

0 comments on commit 861e4f3

Please sign in to comment.