Grafana Issue Behind Traefik and Cloudflare

I think i am finally tired of this grafana error message, so annoying i am not sure why the grafana team did not fix this thing and keep shipping this software for people to be frustrated when they can create a software without this issue

I will be using the app and one day all of a sudden i open it in another browser and all of a sudden i see this error message and eventually it goes away after like hours or days. it is getting annoying and i am pretty much done with this

How do i setup grafana with proxy settings so grafana can function like any other software behind proxy that never gave issue except for grafana

here is what i currently have

  grafana:
    image: grafana/grafana:10.2.0-ubuntu
    container_name: grafana
    volumes:
      - grafana-data:/var/lib/grafana
      - ./grafana/datasources:/etc/grafana/datasources
      - ./grafana/dashboards:/etc/grafana/dashboards
      - ./grafana/setup.sh:/setup.sh
    entrypoint: /setup.sh
    restart: always
    networks:
      - test 
    env_file:
      - .env.grafana
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=test"
      - "traefik.http.services.grafana.loadbalancer.server.port=3000"
      - "traefik.http.routers.grafana-http.entrypoints=http"
      - "traefik.http.routers.grafana-http.rule=Host(`grafana.example.com`)"

and here is content of .env.grafana

GF_SECURITY_ADMIN_USER=
GF_SECURITY_ADMIN_PASSWORD=
GF_USERS_ALLOW_SIGN_UP=false

so please let me know what settings so i never have to see that annoying error message again.

I have grafana behind traefik and traefik behind cloudflare

did you read my message at all? did you see am using docker?

what part of the link is solution to my problem???

again i am using docker and that link did not mention docker or anything related it once

did you read the page I linked at all?

you must have missed the part that mentions docker and traefik in your haste to flame volunteers giving up their time to assist, when you can’t even be bothered to read the help being offered…

2 Likes

Please read original post, i had that already

but the link you posted has nothing about fixing the proxy issue
just saying basic thing about traefik which i even posted in my code i already have

common man

firstly, can you please explain why you think this is a grafana issue?

since you are running grafana on docker, traefik behind cloudflare, the issue could be with grafana, docker, traefik or cloudflare, or anything in between… just because the other apps do not exhibit the same issues you are seeing in grafana, does not mean the issue is with grafana.

in my experience with using grafana with cloudflare, npm, apache etc., any issues i have experienced leading to the dreaded orange message, have been due to misconfigurations either in my grafana.ini, or in my load balancer configs, or in my reverse proxy settings. but once you get the config right and it is working, it stays working, and those settings do not change.

due to grafana being compiled software in most cases, the code does also not change, unless updated, so if it is working one day, and then not working the next day or later the same day, without you making any changes, the issue is probably not grafana, it is probably cloudflare making changes, or caching incorrect assets etc. or blocking an exploit, or incorrectly minifying javascript files, which is not supported by grafana and is going to be or has been deperecated by cloudflare.

some things to check in cloudflare:

disable caching:

disable auto javascript minify

if you get the orange message again via cloudflare, see if grafana works locally, and if it works, then come on man, please go log a cloudflare issue and not a grafana issue…

I think grafana should be able to resolve this issue so it works behind any proxy settings

i run many apps that i run the same way and none of them had any issue like this so why should i not blame grafana on this?

ok fine lets say you know what it is not grafana that is the issue, but if your plan is to make users use grafana and have no issues then i think you fix it to resolve the issue cloudflare is creating by setting environment variables that will work around what cloudflare is doing.

reason why is cloudflare does same thing for many apps and websites but most of them work just fine except grafana

anyways there is no auto minify options under configuration rules, so am not sure if your screenshots are recent one

check the cache options page, and I said the minify was due to be deprecated, I have not used cloudflare in ages, too many issues :smiley:

if you want grafana to fix this, how about you log an issue on github, and work with grafana’s engineers to figure this issue out, and actually contribute to making the software you are better for yourself and everyone else…

1 Like

so what are you using if not using cloudflare?

i did the cache rule thing already hours ago after dedicating hours to finally put the annoying error at rest and so far so good i think

but with grafana never say never so fingers crossed for couple of days

i am not self hosting grafana anymore, so i am not using anything…

I think your attitude is quite aggressive. Go and pay for Grafana support if you maintain this style.
I will set slow mode for this topic for now.

2 Likes

@jangaraj like seriously? my attitude is quite aggressive and then because you have the power to you decided to put thread in slow mode?

imagine having this guy have power and control over society??? just imagine that
depending on his mood or what side of the bed he wakes up in, it may be sad day for people

have fun with it, why not just ban me or matter of fact delete the thread, so we can make you happy again

I’m not going to ban you. I’m enjoying this slow conversation with you. Please let me know what you made for this society. It will be nice if you disclose your proper name, when you are going to argue.

Thank you.

@encryptblockr you still have my genuine interest about this topic and you are not banned. Will you continue (preferably without words like seriously, must, etc.)?

2 Likes