Field discrepancies between alloy and dashboard configs #1

Closed
opened 2025-09-08 06:28:22 +00:00 by mileyceberus · 2 comments
mileyceberus commented 2025-09-08 06:28:22 +00:00 (Migrated from github.com)

Hi,

There seems to be some discrepancies between your alloy and dashboard configs.

For instance,

Alloy Dashboard
source_country source_country_code
dest_country dest_country_code

Replacing source_country_code with source_country seems to produce strange results as follows:

Image

Any suggestions?

Cheers.

Hi, There seems to be some discrepancies between your [alloy](https://roguesecurity.dev/blog/opnsense-loki) and [dashboard](https://roguesecurity.dev/blog/opnsense-loki-part2) configs. For instance, | Alloy | Dashboard | | --------------- | ---------------------- | | source_country | source_country_code | | dest_country | dest_country_code | Replacing source_country_code with source_country seems to produce strange results as follows: <img width="1338" height="742" alt="Image" src="https://github.com/user-attachments/assets/9fae477e-1bad-4a4e-82bb-3501f8a20af3" /> Any suggestions? Cheers.
mileyceberus commented 2025-09-08 08:33:54 +00:00 (Migrated from github.com)

I have added the correct legends for the Source Country & Destination Country panels as follows:

Panel Default Legend New Legend
Source Country blank {{source_country}}
Destination Country blank {{dest_country}}

These appear to have fixed the display.

Image
I have added the correct legends for the Source Country & Destination Country panels as follows: | Panel | Default Legend | New Legend | | ----- | ---------------- | ------------ | | Source Country | blank | {{source_country}} | | Destination Country | blank | {{dest_country}} | These appear to have fixed the display. <img width="1776" height="327" alt="Image" src="https://github.com/user-attachments/assets/8b866046-ed13-454c-9799-132b970606aa" />
StarkZarn commented 2025-10-12 21:35:50 +00:00 (Migrated from github.com)

Hey, thanks so much for bringing this up! Somehow my configs diverged between editing locally and writing up the blog. I've just fixed this and it should be resolved with PR #2

Sorry it took me awhile, I've been working on other projects. Glad you got it working though! If you check out the tweaks, I did exactly what you did, and also added some label tables in the pie charts, plus the fix on the geo-map panels.

Cheers!

Hey, thanks so much for bringing this up! Somehow my configs diverged between editing locally and writing up the blog. I've just fixed this and it should be resolved with PR #2 Sorry it took me awhile, I've been working on other projects. Glad you got it working though! If you check out the tweaks, I did exactly what you did, and also added some label tables in the pie charts, plus the fix on the geo-map panels. Cheers!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
StarkZarn/opnsense-grafana-loki#1
No description provided.