Infheictheacht
Use Prometheus agus OpenTelemetry to see aggregate traffic, earráidí, downloads, agus leathanach usage gan tracking individual cuairteoirí.
Méadrachtaí Prometheus
[metrics]
enabled = true
listen = "127.0.0.1:9100"
Easpórtáil OTLP
FLUXHEIM_OTLP=enabled
OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_METRIC_EXPORT_INTERVAL=5000
The observability compose stack sets these do the suíomh gréasáin service. Set FLUXHEIM_OTLP=disabled to rith the same binary gan exporting méadrachtaí nó traces.
Déanann leagan 1.6.37 an observability smoke áitiúil níos iontaofa trí thosuithe sealadacha Prometheus agus Jaeger a athiarracht le calafoirt úr-leithdháilte nuair a bhíonn calafoirt host-network in iomaíocht le próisis runner eile.
Keep labels low-cardinality: bealach group, teanga, status class, download artifact, agus GitHub target are useful. Raw IP addresses agus user identifiers are not.
Cad atá le cur ar dashboard
| Comhartha | Cén fáth a bhfuil sé tábhachtach |
|---|---|
| Iarratais de réir bealaigh | Shows which poiblí leathanaigh agus docs are being used. |
| Iarratais de réir locale | Shows which teangacha need the most care. |
| Aicmí stádais | Shows earráidí gan tracking individual úsáideoirí. |
| Download clicks | Shows which eisiúint artifacts are useful. |
| Cliceanna GitHub | Léiríonn na naisc tionscadail sheachtracha is tábhachtaí. |
Teorainn phríobháideachais
- Use aggregate counters agus histograms instead of raw iarratas logs.
- Do not label metrics with IP addresses, user agents, or full URLs.
- Keep Prometheus agus OTLP éisteoirí on loopback nó an internal network.
- Make tracking behavior visible on the privacy agus cookies leathanaigh.