Scrivio Interview library
LeadershipPrincipal7 min read · updated 12 November 2026

Your company spends heavily on several monitoring vendors fed by Micrometer metrics from Spring services. How would you think about vendor choice and exit strategy over many years?

I would treat the vendor as a replaceable backend and the instrumentation as a long-lived company asset. Services instrument with Micrometer and OpenTelemetry only, never with vendor agents or vendor APIs in application code. All data flows through a collector layer that we own, so changing or splitting backends is a configuration change, not a code change across hundreds of services. Then we compare vendors by cost per service and per signal, review contracts on a fixed cycle, and keep an internal owner responsible for the standards and the exit plan.

Why this question is asked

Observability spending is now one of the larger infrastructure costs in many companies, and it tends to grow quietly. The real risk is not the price today but lock-in: once every service has a vendor's agent and SDK calls in its code, leaving takes years of migration work, so the vendor has little reason to negotiate. Interviewers ask this at the most senior level because the answer shows whether we can think in terms of architecture, contracts and organisation over a long horizon. In this answer, we will recap how Spring services produce metrics today, look at where lock-in actually happens, design the layers that keep us free to move, set up the economics, and describe how an exit would actually run.

1A Quick Recap: How Spring Services Emit Metrics

Spring Boot records metrics through Micrometer, a vendor-neutral facade: application code and Spring's own instrumentation register meters such as timers and counters against a MeterRegistry, and a registry implementation for a particular backend turns them into that backend's format. Adding micrometer-registry-prometheus exposes /actuator/prometheus; adding a vendor's registry pushes to that vendor. Since Spring Boot 3, the Observation API also feeds traces through Micrometer Tracing, with OpenTelemetry as a common bridge, and Boot can export metrics in OTLP, the OpenTelemetry protocol, which most vendors accept.

OpenTelemetry is the other half of the picture: an open standard and set of tools for metrics, traces and logs, including the OpenTelemetry Collector, a separate process that receives telemetry, processes it, and forwards it to one or more backends.

2Where Lock-In Actually Happens

Lock-in rarely comes from the data format. It comes from three places. The first is code: services that call a vendor's SDK directly, use its custom annotations, or depend on a vendor's Java agent to add instrumentation. Every such service has to be changed and redeployed to leave. The second is configuration spread across services: API keys, endpoints and vendor-specific registry settings in every application's properties. The third is everything built on top of the data: dashboards, alerts, SLO definitions and runbooks written in a vendor's query language. That last kind is unavoidable to some degree, but it can be kept small and portable.

Notice that the first two are entirely within our control, and they are the expensive ones to undo. A company with 400 services and a vendor SDK in each faces 400 changes; a company where services only know Micrometer and a collector address faces one.

3The Layers That Keep Us Free to Move

So the architecture has clear layers with one rule each. Application code only uses Micrometer and OpenTelemetry APIs. The platform starter configures export, typically OTLP to a collector running next to the service or in the cluster, so no service holds vendor credentials. The collector layer, which the platform team owns, handles batching, filtering, dropping of noisy metrics, and routing to backends. The backends are interchangeable at the end.

Properties
# Platform starter defaults: services only know the local collector
management.otlp.metrics.export.url=http://otel-collector.observability:4318/v1/metrics
management.otlp.metrics.export.step=30s
# no vendor API keys in any service
# Collector pipeline (owned by the platform team), shown in outline:
# receivers: otlp
# processors: batch, filter (drop unused metric families), attributes (add cluster)
# exporters: vendor_a, prometheus_remote_write
# pipelines: metrics: [otlp] -> [batch, filter, attributes] -> [vendor_a, prometheus_remote_write]
Step throughTelemetry layers and who owns them
  1. Application codeMicrometer and OpenTelemetry APIs only; owned by service teams
  2. Platform starterexport settings, common tags, filters; owned by platform
  3. Collector layerbatching, filtering, routing; owned by platform
  4. Backendsvendor A, vendor B, self-hosted; replaceable
  5. Dashboards, alerts, SLOskept as code, minimal vendor-specific queries

5 layers, from the top down. Step through them one at a time.

The exact property names depend on your Boot version, so check them against its documentation, but the shape stays the same. Notice that sending to two backends at once is a one-line change in the collector. That ability is the whole exit strategy in miniature.

4Thinking About the Economics

With several vendors, the first question is what each one costs per unit of value. I would break spending down by vendor, by signal (metrics, traces, logs) and by service, and compute something like monthly cost per service and cost per million active series. Often the analysis shows overlap: two vendors receiving the same metrics, or a premium APM product used by three teams while everyone pays for it.

Then I would match signals to backends by need. SLO metrics and alerting need reliability and good query tools, which may justify a premium vendor. High-volume, low-value metrics may be fine in a self-hosted Prometheus or Mimir with short retention. Because the collector routes per pipeline, this split costs configuration, not engineering. Contracts should be reviewed on a fixed cycle, roughly a year before renewal, with a real alternative tested in parallel. A vendor who knows we can move in a quarter negotiates differently from one who knows we cannot move at all.

5What an Exit Actually Looks Like

An exit plan only counts if it has been rehearsed. With the layers above, leaving a vendor runs in phases. We add the new backend as a second exporter in the collector and ship to both for one to three months. During that time we rebuild the important dashboards and alerts, ideally from definitions kept as code, and compare them side by side during real incidents. Once teams trust the new backend, we switch alert routing, then stop the old exporter, and keep read access to the old vendor for as long as retention or audit rules require.

No service redeploys at any point. That is the test I would set for the architecture: could we start shipping to a second backend next week without touching application code? If the answer is no, that is the first thing to fix.

Step throughExiting a metrics vendor without touching services
  1. Add new backend as second collector exporter
  2. Ship to both for 1 to 3 months
  3. Rebuild key dashboards and alertsfrom definitions kept as code
  4. Teams trust the new backend in real incidents?
    YesSwitch alert routingNoKeep both and fix the gaps
  5. Stop old exporter, keep read access for retention

5 steps in order. Play them, or step through them one at a time.

6Keeping an Internal Owner

None of this survives without someone responsible for it. I would name an internal owner, usually a small observability group in the platform team, who owns the standards, the starter, the collector configuration, the vendor relationships and the cost reports. Their job includes saying no to a team that wants to add a vendor agent for a quick win, and making sure the open path is easier than the proprietary one. Over many years, people change and vendors change; a clear owner with written standards is what keeps the decisions consistent.

7Follow-up questions

Are vendor agents always a bad idea?

Not always. A Java agent can add useful automatic instrumentation quickly. The risk is depending on it for things our code relies on. The OpenTelemetry Java agent gives similar automatic instrumentation in a vendor-neutral way, so if an agent is used, I would prefer that one and treat any vendor-specific agent as a temporary choice.

Does the collector add a failure point?

It adds a component that must be run well, with enough replicas, buffering and monitoring of its own. In return it gives retries, batching and routing that every service would otherwise have to handle. Running it as a highly available deployment per cluster, with a small local buffer, keeps the risk low.

How do you keep dashboards portable?

Keep dashboard and alert definitions in version control, generated from templates where possible, and keep queries simple and close to standard PromQL where vendors support it. Some rewriting on exit is unavoidable, but it is far smaller when the definitions are code rather than clicks in a vendor UI.

8Conclusion

In this answer, we treated instrumentation as a company asset and vendors as replaceable backends. Micrometer and OpenTelemetry keep application code neutral, a collector layer that we own decouples services from backends and makes parallel shipping trivial, and vendor agents and APIs stay out of application code. On top of that we compare cost per service and per signal, review contracts on a fixed cycle with a tested alternative, rehearse the exit in phases, and keep an internal owner for the standards.

What to say in the interviewAbout 80 seconds aloud

Open with

I would separate the long-lived part, our instrumentation, from the replaceable part, the vendor. Services instrument only with Micrometer and OpenTelemetry APIs, and the platform starter configures export, typically OTLP to an OpenTelemetry Collector we run.

Then, if they want more

No service has vendor SDK calls, vendor agents or vendor API keys. The collector does batching, filtering and routing, so adding, splitting or replacing a backend is a collector change, not four hundred service changes.

On the economics, I would break spending down by vendor, by signal and by service, look for overlap, and route each signal to the backend it needs, premium for SLO metrics and alerting, cheaper self-hosted storage for high-volume data. Contracts get reviewed on a fixed cycle with an alternative tested in parallel, which changes the negotiation.

The exit plan itself is phased: ship to both backends for a few months, rebuild the key dashboards and alerts from definitions kept as code, switch alerting once teams trust it, then stop the old exporter.

And I would keep a named internal owner, a small observability group, responsible for the standards, the collector and the vendor relationships, so the decisions stay consistent for years.

About this answer

Last updated
12 November 2026
Versions it names
Spring Boot 3
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
Spring Boot reference, Actuator
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Your company spends heavily on several monitoring vendors fed by Micrometer metrics from...": https://scrivio-interview-library.netlify.app/spring-boot/actuator/4c9a78f706/