Skip to content

Conversation

@bisgaard-itis
Copy link
Contributor

@bisgaard-itis bisgaard-itis commented Oct 27, 2025

What do these changes do?

Related issue/s

Related PR/s

Checklist

  • I tested and it works

bisgaard-itis and others added 16 commits October 8, 2025 21:05
* move services around (cleanup)

* add first services

* add more prometheus configs

* add all instrumented simcore services to grafana dashboard

* add newline in grafana dashboard json

* minor improvement to simcore service grafana dashboard

* end with empty lineto please gh

* several other minor changes

* another minor fix

* ensure newline

* remove TRACING_OPENTELEMETRY_COLLECTOR_SAMPLING_PERCENTAGE and add TRACING_SAMPLING_PROBABILITY

* fix files which don't match itis/main

* TRACING_SAMPLING_PROBABILITY -> TRACING_OPENTELEMETRY_SAMPLING_PROBABILITY

---------

Co-authored-by: Dustin Kaiser <[email protected]>
@bisgaard-itis bisgaard-itis self-assigned this Oct 27, 2025
@bisgaard-itis bisgaard-itis added the observability alerting/monitoring label Oct 27, 2025
@bisgaard-itis bisgaard-itis added this to the Imparable milestone Oct 27, 2025
Copy link
Collaborator

@YuryHrytsuk YuryHrytsuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

.log_level = parsed_fields.log_level
.log_timestamp = parsed_fields.log_timestamp
.log_source = parsed_fields.log_source
.log_uid = parsed_fields.log_uid
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this becomes a label in Loki?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are not labels, because labels should have low cardinality (https://grafana.com/docs/loki/latest/get-started/labels/bp-labels/). Instead this adds them as keys in the log json. Then there is a json parser directly in loki and after applying that one can filter on these fields.

image

if exists(.message) {
parsed_fields, err = parse_regex(.message, r'log_level=(?P<log_level>[^|]*) \| log_timestamp=(?P<log_timestamp>[^|]*) \| log_source=(?P<log_source>[^|]*) \| log_uid=(?P<log_uid>[^|]*) \| log_oec=(?P<log_oec>[^|]*) \| log_trace_id=(?P<log_trace_id>[^|]*) \| log_span_id=(?P<log_span_id>[^|]*) \| log_msg=(?P<log_msg>.*)$')
if err == null {
.log_level = parsed_fields.log_level
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably this won't parse traefik logs.

We did fix this in Graylog #293

Might be interesting if you want to include traefik log level

Copy link
Member

@mrnicegyu11 mrnicegyu11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bisgaard-itis please consider YH's comments, or at least the traefik one. Thanks a lot, merge at your own discretion please

@mrnicegyu11 mrnicegyu11 enabled auto-merge (squash) October 27, 2025 16:16
@mrnicegyu11 mrnicegyu11 disabled auto-merge October 27, 2025 16:16
@mrnicegyu11 mrnicegyu11 merged commit 946fb52 into ITISFoundation:main Oct 27, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

observability alerting/monitoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants