I have a API endpoint located in AWS (Python/Flask).
The API is decorated with prometheus instrumentation.
when I call the API endpoint from my local machine, I can see the metrics recorded in Prometheus TSDB, so I got data flowing…
now in the Prometheus console via PromQL and in Grafana… for as long as I generate/call the end point (generate load). When my load generator stops… the dashboard/graph information in Grafana disappears,
it does not show me activity if I say show all, even if I increase the time window.
Although I can go into Prometheus and via PromQL query my activity and it’s there.Guessing it’s probably a error on my side in defining the Grafana dashboard… all I can think of
Well, K8s and AWS both are a bit out of my skill set but I will try to get the thread moving so that someone else may help you out.
As I understood that the Graph disappear.
What panel visualisation you are using?
Also, did you try to increase the timeline e.g. from 30 minutes to let’s say 1 hour on the top bar of the panel might have helped?
Lastly, what do you see in the grafana backend logs? if there is nothing in the logs then increase the log level to debug mode and try to reproduce the issue and post the log output here
It might be more helpful to post some sort of screencast to understand it better.
Ok, so I have 2 sources, called “issuer” and “verifier”
Left 2
rate(iamza_trustreg_txncounter_verifier_domain_count_total[5m])
rate(iamza_trustreg_txncounter_verifier_count_total[5m])
Right 2
rate(iamza_trustreg_txncounter_issuer_domain_count_total[5m])
rate(iamza_trustreg_txncounter_issuer_count_total[5m])
so while the process creating the fake workload runs I got the line/graph as per the 2 dashboards (top right, bottom left), and then on the next 5 sec refresh the dashboard would go black/empty as per the other 2 dashboards (top left/bottom right)
Grafana logs ?
if you might be willing to do a teams session, might be easier to show.
went digging for the logs, remembered how to get to them, with this being a EKS cluster deploy…
I’m running my workload generator at the moment.
Not sure if there are more logs… this does not seem like allot of log information for the 6 dashboards on the screen, 4 of which should be painting nice graphs atm.
G
After some research found out that this is a known issue in Prometheus and it is due to the use of multiple queries towards a Prometheus datasource.
The solution proposed is to change the refId to a unique value in the JSON, according to:
Therefore please have a look there and maybe this fix can help you out (also check the other user comments as there is always something more explained to resolve it).
In case if it does help you then, we would appreciate it if you can open a bug report about this in our official GitHub repository using this link.
hmmmm, where do I change this json, this refid.
it’s strange, this is 4 dashboards, or would each dashboard with its various line each be a separate query.
Hi hi
So did the RefID changes, had no impact, ps version is 6.7.4
I deployed a new copy of Grafana on my local machine, pointing to the same Prometheus data store.
Created the same 4 dashboards and it’s working as I’d expect it to, version 9.2.4
Note while recreating the dashboards I inspected the JSON and they all / always seem to be getting created with refID:A
might make sense to have this number auto increment or make it a random gen number if there is a issue with it.
a little update.
I upgraded my grafana on the cluster to 9.2.4
it’s working… better, seems to be more stable, still have graphs disappearing though, and then returning with a next refresh, as it stands it won’t be acceptable for a production monitoring environment that manages/monitors financial transactions/flows…
G
observation…
Just wanted to try a different visualisation, bar graphs based on rate of the various inputs…
well when i select data source and then metric my metric is not there…
although i can refresh my graph in prometheus dashboard/graph itself.
wonder if the problem is somewhere/somehow getting to the data itself.
G