Code to Production 07: Observability, Metrics to Traces to Alerts¶
eShop's services contain zero lines of metrics code, and the dashboards still show rate, errors and duration for every route. The trick is to trace every request and compute the numbers from the spans. This post covers that setup on NKP, the queries that join one request across three stores, and the part most teams skip: watching the delivery system itself.
Code to Production: the series
Plug into the platform's stack, add one namespace of your own¶
NKP 2.19.1 ships Prometheus, Grafana, Alertmanager and Loki as platform applications. eShop uses them as they are and adds objects next to them, carrying the labels NKP's programs already look for.
Everything eShop adds lives in one namespace, eshop-tracing: Grafana Tempo (the trace store), a GitLab CI pipelines exporter, a blackbox exporter (the probe), the Grafana data sources and dashboards, and the alert rules.
Follow the arrows out of the left column: traces go to Tempo in eshop-tracing, stdout goes to NKP's log collectors, and nothing scrapes a service directly.
| Signal | Who emits it | How it travels | Where it lands |
|---|---|---|---|
| Traces | eshop-api, eshop-sync-master (.NET agent), eShop's Traefik | OTLP over HTTP, port 4318, no collector in between | Tempo, 7 days, bucket eshop-tempo in Ceph |
| Request metrics | Tempo's metrics generator, from those traces | remote write | NKP's Prometheus |
| Kubernetes state | NKP's kube-state-metrics | NKP's own scrape | NKP's Prometheus |
| Probe results | blackbox exporter | three Probe objects, every 60 s | NKP's Prometheus |
| Pipeline metrics | gitlab-ci-pipelines-exporter | a ServiceMonitor, every 30 s | NKP's Prometheus |
| Logs | every pod, JSON on stdout | NKP's Logging Operator (Fluent Bit, Fluentd) | NKP's Loki |
One thing people get wrong about NKP: the stack eShop reads does not run on the management cluster. Grafana, Prometheus, Alertmanager and Loki run on the workload cluster eshop-prd1, in the namespace kommander-default-workspace. Only the stack's configuration (the AppDeployment and eShop's override) lives on the management cluster.
RED metrics come from traces, not from a /metrics endpoint¶
Tempo sees every span of eshop-api, eshop-sync-master and Traefik. Its metrics generator turns them into span metrics and service graph metrics and pushes them to Prometheus1.
# eshop-infra/clusters/eshop-prd1/platform/tempo-values.yaml
metricsGenerator:
enabled: true
remoteWriteUrl: http://kube-prometheus-stack-prometheus.kommander-default-workspace.svc:9090/api/v1/write
processor:
span_metrics:
# Every further label multiplies the series for good.
dimensions: [http.response.status_code, deployment.environment.name]
service_graphs:
peer_attributes: [peer.service, db.name, db.system, server.address]
dimensions: [deployment.environment.name]
enable_client_server_prefix: true
Two extra labels, and no more: the HTTP status code (so 4xx and 5xx can be told apart) and the environment (so one Tempo and one Prometheus keep dev and prod apart).
Prometheus refuses pushed samples unless its remote-write receiver is on, and NKP's values leave it off. That's the only change eShop makes to NKP's settings, an override ConfigMap applied to the management cluster:
# eshop-infra/clusters/eshop-prd1/platform/nkp-monitoring-overrides.yaml
data:
values.yaml: |
prometheus:
prometheusSpec:
enableRemoteWriteReceiver: true
grafana:
sidecar:
datasources:
initDatasources: true
watchMethod: LIST
Check it with one read-only command. It must print true, and an NKP upgrade can put the default back:
kubectl -n kommander-default-workspace get prometheus \
-o jsonpath='{.items[*].spec.enableRemoteWriteReceiver}'
Why this way: the application carries no metrics code, and one mechanism gives rate, errors, duration and the service graph together. There's no ADR for it; the cluster README is the record, and dev's and prod's overlays carry it.
The price is coverage. A service that sends no traces has no request metrics. QA has none at all, eshop-web has none, and eshop-node-api is visible only as far as eshop-api calls it.
Pitfall: the data sources that never load¶
NKP loads data source ConfigMaps through a sidecar that asks Grafana to reload. Grafana answers HTTP 401, because NKP turns basic authentication off, and the data sources never appear.
The guard is the Grafana half of the override above. initDatasources: true writes them once before Grafana starts, and watchMethod: LIST is needed because with WATCH the init container never ends.
The guard has a price: Grafana reads data sources only at start, and on a new cluster it starts long before bootstrap.sh creates eShop's ConfigMap. Restart Grafana after the first bootstrap, and after any data source change:
One dashboard per environment, each panel answers one question¶
Dashboards are JSON files in clusters/eshop-prd1/platform/dashboards/, wrapped into one ConfigMap labelled grafana_dashboard: "1". There are three: eShop (dev), eShop (prod) and eShop pipelines.
The first row is RED for eshop-api: requests per second, success, 4xx, 5xx and p95 (1.90 ms here). The peaks are a short load generator run.
The query behind "Requests per second" shows the selection every tile shares:
sum(rate(traces_spanmetrics_calls_total{
service="eshop-api",
deployment_environment_name="dev",
span_kind="SPAN_KIND_SERVER",
span_name!~".*/healthz/.*"}[$__rate_interval]))
span_kind="SPAN_KIND_SERVER" keeps only the spans where eshop-api answers a request. The healthz filter matters: without it, Kubernetes' health checks look like steady traffic in an empty shop.
| Row | The question it answers | Source |
|---|---|---|
| Requests to eshop-api | Is it failing or slow right now? | span metrics |
| Service graph | Who calls whom? | service graph metrics |
| What Customers are doing | Are SMS codes, applications, offers and bids still completing? | span metrics of named routes |
| Status | Are the Deployments and the database up, and does the Gateway answer? | kube-state-metrics, the probe |
| Where to look | Which routes are slowest, which have the most errors? | span metrics |
| Recent traces | Which requests answered 4xx/5xx or took over 100 ms? | Tempo directly |
| At the Gateway | What does Traefik see, all environments together? | Traefik's span metrics |
| Logs | What did eshop-api warn about? | Loki |
Three reading habits save time:
- Only 5xx means eShop failed. A span is an error from HTTP 500 up. The load generator produces 4xx on purpose.
- "Is it running" comes from Kubernetes, not traffic. A service with no requests still shows as running.
- The probe is in the numbers. One request a minute to
/api/delivery-provincesis most of a quiet environment's traffic.
The data sources have eShop's own uids (eshop-prometheus, eshop-loki, eshop-tempo), so a dashboard doesn't break when NKP renames its built-in ones in an upgrade. And an edit made only in Grafana is overwritten at the next apply: export the JSON, commit it, change dev's and prod's together.
One request, three signals, joined by the trace ID¶
Take the Product page from issue #3. Loading it makes the browser call GET /api/products/<id>. Traefik starts the trace, passes the context to eshop-api in the W3C traceparent header2, and eshop-api's database query becomes a child span.
The same request lands in three stores. Tempo holds the trace, Prometheus holds the count Tempo derived from it, and Loki holds any line eshop-api wrote, with the TraceId in its scopes.
Here's that one request in each language. First the metric, in Explore with the data source Prometheus (eShop):
sum by (span_name) (
increase(traces_spanmetrics_calls_total{
service="eshop-api", deployment_environment_name="dev",
span_kind="SPAN_KIND_SERVER",
span_name=~"GET /api/products/.*"}[15m]))
You get one row per route template (GET /api/products/{id:int}), not one per Product. That's what keeps the series count flat.
Then the trace, with Tempo (eShop traces) and query type TraceQL:
{ resource.service.name = "eshop-api"
&& resource.deployment.environment.name = "dev"
&& span.http.route =~ "/api/products/.*" }
Then the log lines, with Loki (eshop-prd1 logs), pasting the trace ID you copied from the trace:
For the Product request, that Loki search returns nothing, and that's the correct answer. The handler writes no line of its own and the framework's per-request lines are off. The trace is the whole record.
A POST /api/applications/ trace does return lines: those requests call eshop-node-api through .NET's HTTP client, which logs at Information.
Logs: JSON to stdout, and the collector's wrapper is the trap¶
eShop configures nothing for logging. No agent, no sidecar, no shipper in deploy/. Services write one JSON object per line to stdout, and NKP's stack collects every pod.
// eshop-api/src/Eshop.Api/Program.cs
builder.Logging.ClearProviders();
builder.Logging.AddJsonConsole(options =>
{
options.UseUtcTimestamp = true;
options.TimestampFormat = "yyyy-MM-ddTHH:mm:ss.fffZ";
options.IncludeScopes = true;
});
IncludeScopes = true is the line that puts the TraceId into every log line once the tracing agent is loaded. The levels in appsettings.json set Microsoft.AspNetCore and Microsoft.EntityFrameworkCore to Warning, so there's no line per request and no SQL in the log.
Look at the opened line: time, stream and _p belong to NKP's collector, and the service's own JSON sits inside the log field as escaped text.
That wrapper is why a json parser stage gives you log, not LogLevel. The dashboards filter on the raw line with a regular expression instead4:
\W+ matches whatever sits between the key and the value: ":" in a plain line, \":\" in a wrapped one. Start from this pattern for your own filters.
The queries that matter:
# everything one environment's Sync master wrote
{namespace="eshop-dev", pod=~"eshop-sync-master-.*"}
# what the shared mock answered, for all environments' callers
{namespace="thirdparty", pod=~"thirdparty-mock-.*"} |= "request"
# warning-or-worse lines per minute in prod, as a graph
sum(count_over_time({namespace="eshop-prod", pod=~"eshop-api-.*"} |~ `LogLevel\W+(Warning|Error|Critical)` [1m]))
Keep kubectl logs in your hands too. It's the only tool left if Loki is in trouble, and --previous shows the last lines of a container that died:
kubectl -n eshop-dev logs deploy/eshop-api --since=15m
kubectl -n eshop-dev logs eshop-api-<pod> --previous
Two caveats. eShop's files set no log retention; Tempo's values say 168h with the comment "7 days, as the logs", so treat seven days as a working figure and confirm it on the cluster. And the object store has about 50 GiB usable, shared by Loki, Tempo and Velero, so a noisy service at Debug level can fill it for everyone.
Traces: auto-instrumentation from the infra repo, not from the service¶
Two things must both be present for a .NET pod to send spans: an Instrumentation resource in its namespace, and an annotation on the pod. The OpenTelemetry Operator's webhook then injects the agent through an init container3.
# eshop-infra/clusters/eshop-prd1/platform/tracing.yaml
kind: Instrumentation
metadata:
name: eshop
namespace: eshop-dev
spec:
exporter:
endpoint: http://tempo.eshop-tracing.svc:4318
propagators:
- tracecontext
- baggage
sampler:
type: parentbased_always_on
resource:
resourceAttributes:
deployment.environment.name: dev
env:
- name: OTEL_METRICS_EXPORTER
value: none
- name: OTEL_LOGS_EXPORTER
value: none
# ...
Every request is sampled, because the lab's traffic is small. Metrics and logs export are switched off, because Tempo accepts traces only. The agent image (version 1.15.0) is pinned by digest like every other image.
The annotation comes from a kustomize component, clusters/eshop-prd1/components/tracing-trial, which dev's and prod's overlays include and QA's doesn't. It does four things:
- Adds
instrumentation.opentelemetry.io/inject-dotnet: "true"to eshop-api and eshop-sync-master. - Sets
runAsUser: 1654for the pod (see below). - Raises memory limits, because the agent lives in the service's process: eshop-api 384Mi to 512Mi, eshop-sync-master 256Mi to 384Mi.
- Adds the NetworkPolicy
trace-exportso the two services can reach Tempo on 4318.
The memory patch starts with a JSON Patch test on the old value. If the base ever changes, the render fails instead of patching blindly. Copy that.
The waterfall on the right: eshop-traefik POST (91.81 ms), ReverseProxy, eshop-api POST /api/applications/ (90.88 ms) and its outgoing call (81.93 ms). The widest child is where the time went.
In this trace, 82 of 91 milliseconds were spent waiting on one callout. The search table names each trace by its first span, so its Service column says eshop-traefik, not eshop-api.
Each eshop-api span has a "Logs for this span" icon. It opens Loki for that span's pod, from 5 minutes before to 5 minutes after, mapping k8s.namespace.name and k8s.pod.name to the labels namespace and pod. It doesn't filter by trace ID, so you read around the moment.
What isn't instrumented: eshop-node-api, thirdparty-mock and eshop-web send no spans. They appear only as eshop-api's outgoing calls and as circles in the service graph. QA has no traces at all.
Pitfall: the agent's init container runs as root¶
The operator's init image names no user, which means root, and eShop's pods forbid root. Kubernetes refuses the init container with "container has runAsNonRoot and image will run as root".
The guard is runAsUser: 1654 for the whole pod. That's the .NET images' own user, so the services run exactly as before.
One more trap: TraceQL returns nothing, without an error, for an attribute no span carries. Start from the dashboard's working link and change one condition at a time.
Alerts: ten rules, prod and delivery only, and email is off on purpose¶
The rules are one PrometheusRule named eshop in platform/alerts/rules.yaml. Every rule carries source: eshop, a scope, a severity and a dashboard link.
# eshop-infra/clusters/eshop-prd1/platform/alerts/rules.yaml
- alert: EshopNotAnswering
expr: probe_success{job="eshop-probe", environment="prod"} == 0
for: 5m
labels:
severity: critical
source: eshop
scope: eShop prod
namespace: eshop-prod
annotations:
summary: "{{ $labels.instance }} does not answer"
# ...
dashboard: https://<NKP_INGRESS>/dkp/grafana/d/eshop-prod
| Alert | Fires when | For | Severity |
|---|---|---|---|
EshopServiceNotRunning | a Deployment in eshop-prod or thirdparty is short of replicas | 5 min | critical |
EshopDatabaseNotReady | no eshop-db-N pod in prod is ready | 5 min | critical |
EshopApiServerErrors | over 5% of eshop-api's prod requests are server errors | 5 min | critical |
EshopApiSlow | eshop-api's p95 in prod is above 1 second | 10 min | warning |
EshopNotAnswering | the probe gets no 200 from a prod URL | 5 min | critical |
EshopCertificateExpiring | prod's certificate expires in under 14 days | 1 h | warning |
EshopProbeNotReporting | no probe_success series exists for prod | 10 min | warning |
EshopMainPipelineFailed | a project's latest main pipeline failed | 5 min | warning |
EshopDeployFailed | the latest deploy to an environment failed | 5 min | warning |
EshopPipelineCollectorDown | the pipelines exporter isn't scraped, or follows no branch | 10 min | warning |
The design decisions worth copying:
- Prod only. Dev redeploys many times a day and hosts the load generator. Its alerts would train everyone to ignore alerts.
- A floor of traffic. Both API rules also require more than 0.05 requests per second over 5 minutes (15 requests). One failure among two requests isn't an outage.
- Guards for blind spots. A rule that reads a missing metric is silently false.
EshopProbeNotReportingusesabsent()to say so when the probe dies. - Same metrics as the dashboards. An alert's link opens a dashboard that shows the same number.
The probe: an outside-in check every 60 seconds¶
The probe is a Prometheus blackbox exporter5 (v0.29.1, pinned by digest). Three Probe objects ask it for two URLs per environment: the front page / and the public API /api/delivery-provinces.
Its one module, http_200, is strict: only status 200, TLS required, certificate verified against eShop's CA, 10 second timeout. A healthy cluster answers this six times:
Where alerts go: nowhere, and that's a recorded decision¶
Two alerts, both the platform's own, both under the receiver null. No alert whose name starts with Eshop is firing, which is the healthy state.
NKP's Alertmanager has one receiver, null. Email delivery is off, and the record is eshop-infra/.out-of-scope/email-alerts.md: Alertmanager emails nobody when an Eshop* alert fires, and the file names that as the chosen state.
The dashed red arrow is the honest part: a firing alert is visible on Alertmanager's page and in Grafana, and a person has to look.
Nothing is missing for a team that decides otherwise. clusters/eshop-prd1/alerting-email.sh is a human-only step that fills a template, has Alertmanager validate it inside its own pod, and stores it as a Secret without printing either value. Its routes send everything with source = "eshop" to email, plus the platform's severity = "critical" alerts, and never Watchdog, InfoInhibitor or KubeProxyDown.
To see pending alerts as well as firing ones, ask Prometheus. "No data" means nothing of eShop's is pending or firing:
Pitfall: red tiles that are correct¶
On a new environment, EshopNotAnswering and the "Through the Gateway" tile are red for QA and prod until the first release lands there, because nothing runs in those namespaces yet. The rebuild guide lists it as expected.
Watch the delivery system, not only the shop¶
GitLab CE shows each pipeline on its own page but has no time series Prometheus can read. A small exporter fills the gap6: gitlab-ci-pipelines-exporter v0.6.0 polls GitLab's API every 30 seconds for six projects, following main, release/N.x, release tags and recent merge requests.
Last 24 hours: 49 pipelines run, 0 failing, median main pipeline 7.16 minutes, and each of the six projects' latest main pipeline Passed.
That median matches issue #3's own pipeline: eshop-web's main pipeline #68 took 7 min 4 s. Lower rows cover deploys per GitLab environment, time waiting for a runner, and the slowest jobs.
The exporter's token is least privilege, enforced by script. A person creates a read_api token for a non-admin user who is Reporter on the six projects, then runs gitlab-metrics-token.sh. The script asks GitLab whose token it is, and refuses an administrator's.
One caveat on the numbers: the dashboard knows the latest pipeline of each branch, tag and merge request, not every run, and its run counters reset when the pod restarts.
Three schedules, one CI file¶
Three schedules on main: the re-scan daily at 06:00 Bangkok time, Renovate on Mondays at 07:00, the watchdog every 30 minutes. Each one's last pipeline passed.
One variable routes all three. A schedule with another value, or none, runs nothing:
# eshop-infra/.gitlab-ci.yml
watchdog:
stage: validate
tags: [eshop-shell]
timeout: 10m
variables:
KUBECONFIG: $ESHOP_PRD1_KUBECONFIG
rules:
- if: $CI_PIPELINE_SOURCE == "schedule" && $CI_COMMIT_BRANCH == "main" && $ESHOP_SCHEDULE == "watchdog"
script:
- scripts/ci/watchdog-eshop-prd1.sh
The watchdog: four read-only checks from outside the cluster¶
scripts/ci/watchdog-eshop-prd1.sh runs on the runner VM with the read-only identity eshop-ci-reader. In eshop-dev, eshop-qa, eshop-prod and thirdparty it checks:
- Every Deployment has all its replicas available.
- Every CloudNativePG Cluster's phase is exactly
Cluster in healthy state. - No pod restarted in the last hour.
- From the runner, through the Gateway, each environment's
/and/api/delivery-provincesanswer 200.
It overlaps with the probe and the alerts on purpose. It asks from outside the cluster, it doesn't depend on Prometheus or Alertmanager being alive, and its result is a pipeline everyone using GitLab can see. The cost is resolution: 30 minutes against the probe's 60 seconds.
Three properties to copy:
- Every check runs. It collects failures and exits 1 at the end, naming each one.
- A read that fails is a failed check. An expired token turns the watchdog red. It can't make it green.
- Restarts are remembered for an hour. A crash loop that recovers between two runs is invisible to checks 1 and 2. Check 3 still shows it.
A red watchdog makes main red, so EshopMainPipelineFailed fires for eshop-infra after 5 minutes.
Pitfall: the watchdog fails right after a first deploy, and it's right¶
Everything is ok except three FAIL lines, all "eshop-api ... restarted in the last hour", one per environment.
A watchdog that counts restarts in the last hour fails right after an environment's first deploy. eshop-api restarts until its new database answers, and check 3 says so. Every Deployment is still 1/1 available, every database is healthy, all six URLs answer 200.
That is expected, and the cluster README says so. Read the FAIL lines before re-running, then do nothing. Don't retry, don't restart anything; the next run after the hour is green.
One related trap: a service pipeline whose deploy trigger job failed stays red after a pipeline retry, because GitLab doesn't re-run a trigger job that way. Retry the job itself, or EshopMainPipelineFailed keeps firing.
The daily re-scan: what runs, by digest, against today's database¶
An image that was clean when it was built can have a CRITICAL published against it next week. The job rescan runs daily and does five things:
- Lists the pods of the four namespaces and keeps eShop's images by digest, from each container's status.
- Pulls each distinct digest from Harbor with
crane. - Scans them with the same script that passed them at build time (
scripts/gates/image-scan.sh, Trivy). The build-time gate is in post 04. - Writes a summary and per-image reports under
reports/rescan/, kept 30 days. - On a CRITICAL, opens the issue "Running images have critical vulnerabilities" in eshop-infra, labelled
bugandneeds-triage, or adds the day's summary to the one already open.
A scheduled run of the job. Look for clean on every image line and no line starting with CRITICAL.
eshop-dev:
clean <HARBOR>/eshop/eshop-api@sha256:4882a257...
clean <HARBOR>/eshop/eshop-web@sha256:fd5add0f...
eshop-qa:
clean <HARBOR>/eshop/eshop-api@sha256:2fa4a298...
eshop-prod:
clean <HARBOR>/eshop/eshop-api@sha256:2fa4a298...
thirdparty:
clean <HARBOR>/eshop/eshop-loadgen@sha256:ef30c9a1...
rescan: passed: no running image has a CRITICAL vulnerability
The summary has one line per image per namespace, and the scan counts fewer images than that, because each distinct digest is scanned once. QA and prod share digests when they run the same release, as in this excerpt. Dev's eshop-api digest differs because dev runs the newest main build.
It reads the pods, not the pins, because the question is "is what runs safe?" and a pod can run an image a pin no longer names. It opens an issue because nobody is emailed in this lab, and an issue stays open with its history until a person closes it.
If the cluster or Harbor can't be read, the job exits 2. Unknown is not clean. And the fix for a CRITICAL is never in the re-scan: it's a new build with the fixed package, then a release.
A load generator makes the signals worth looking at¶
A dashboard that shows zero teaches little. eShop ships eshop-loadgen, Locust 2.47.0, with its page at /loadgen/ on dev's hostname. Nothing runs until someone presses Start.
The last run's statistics per route. Rows ending in brackets, such as "/api/applications (malformed)" with 28 fails of 28, are deliberate mistakes.
The form starts with 20 users at a spawn rate of 2. Simulated Customers browse (weight 70), apply (20) or make mistakes on purpose (10), which is why the dashboard separates 4xx from 5xx.
Its limits are design: dev only, at most 100 simulated Customers (eshop-api in dev requests just 50 millicores of CPU), and everything marked with mobile numbers 0600xxxxxx, ID numbers starting 99 and User-Agent: eshop-loadgen/<n>.
Two caveats. Its Customers and Applications stay in dev's database; a purge is ruled out in .out-of-scope/purging-load-generator-data.md. And the Locust page is unauthenticated on dev's hostname, which is fine on a lab network and a hole anywhere else.
What production would change¶
| The lab | Production |
|---|---|
| Every request traced, no collector | An OpenTelemetry Collector that drops health-check spans and samples: every error, every slow trace, a share of the rest |
| Request metrics from traces only | Each service also exposes its own /metrics (runtime, connection pool) |
| QA has no traces and no request metrics | Instrument QA, so a release candidate is observed where it's tested |
| Tempo is one pod | More than one |
Alertmanager receiver null | A receiver with an on-call rotation, through the organisation's relay or pager, with a runbook per alert |
| Log and metric retention are NKP defaults | Set and documented explicitly, storage sized for real traffic |
| Watchdog failure seen only by someone who looks | The schedule owned by a watched address, or EshopMainPipelineFailed routed to on-call |
| Probe and watchdog only read | Add a read-only journey check (sign-in, the mocks answer), not the write-heavy smoke test on a timer |
| Re-scan covers eShop's images, CRITICAL only | Include the platform's images too |
The probe-and-watchdog row has a recorded reason. The smoke test signs up Customers and bids as them, 22 checks that leave records each time, so running it on a timer against prod is ruled out in .out-of-scope/scheduled-smoke-test-of-qa-and-prod.md. The record admits the gap: a broken sign-in between releases would pass both the probe and the watchdog.
Summary¶
- Use the platform's Prometheus, Grafana, Alertmanager and Loki as they are. Add your objects beside them, with the labels they select on, in one namespace.
- Compute RED from traces with Tempo's metrics generator, and cap the extra labels at the two you need: status code and environment.
- Give data sources your own uids, and keep dashboards, data sources and rules as files in Git.
- Log JSON to stdout with scopes on, so every line carries the TraceId. Keep per-request framework lines off where a trace exists.
- Filter wrapped logs on the raw line with a regex, not a JSON parser.
- Set
deployment.environment.namein theInstrumentation, so one store keeps environments apart. - Alert on prod and delivery only, with a traffic floor and an
absent()guard for every metric a rule depends on. - Probe from inside every 60 seconds and check from outside every 30 minutes. They fail differently.
- Make the outside check collect every failure, and treat a failed read as a failed check.
- Re-scan running images by digest every day, and open an issue on a CRITICAL.
- Write down what's off. "Email is off" as a file in the repo beats a README that claims otherwise.
- Read the
FAILlines before you retry anything.
Next: Post 08: Operations and caveats: what a person must do by hand, how the whole environment is rebuilt, and the full list of things this lab doesn't do.
-
Grafana Labs, Tempo metrics-generator — span metrics and service graphs derived from ingested traces and sent to a Prometheus
remote_writeendpoint. ↩ -
W3C, Trace Context — the Recommendation that defines the
traceparentheader. ↩ -
OpenTelemetry, Injecting Auto-instrumentation — the Operator's
Instrumentationresource and theinstrumentation.opentelemetry.io/inject-dotnetannotation. ↩ -
Grafana Labs, Loki log queries — stream selectors and line filter expressions such as
|=and|~. ↩ -
Prometheus, blackbox_exporter — probing of endpoints over HTTP, HTTPS, DNS, TCP, ICMP and gRPC. ↩
-
gitlab-ci-pipelines-exporter — a Prometheus / OpenMetrics exporter for GitLab CI pipelines insights. ↩
Discussion
Have thoughts on this post? Share them below — questions, corrections, or your own experience are all welcome.











