I did Onboarding Walkthrough (Grafana Cloud) where I’ve selected Prometheus but there is no configuration, just a button for downloading the Agent.
I haven’t found any configuration example about setting Cloud API/credentials. So, please tell me, how to set up the Agent to push collected data (WAL) to the Grafana Cloud?
The github repo you provided says that Prometheus is optional, but that is not correct. In this case, the repo is offloading data into an independent Prometheus instance and then that instance is sending data to Grafana (Cloud). So, to use the examples provided, you will need to setup a Prometheus database and then add that as a datasource to Grafana Cloud.
Hi @aaronshifflett, thanks for the reply.
I have a Prometheus instance in Grafana Cloud but I don’t know how to configure Grafana Agent (local installation) to push the data to the cloud.
About the Prom optionality, MKTXP can provide some stats from its CLI, so that’s why Prometheus is optional but it doesn’t matter now.
There are a few different ways to implement and operate agent-based monitoring, so this will depend on what OS and/or application(s) you want to collect data for.
Some simple example configurations can be found here:
And selecting one of the integrations in the Onboarding Walkthrough as you mentioned will customize the agent config file for those specific metrics, logs, and/or traces. Since there isn’t an available integration for Mikrotik ROS you can either create the config file using the agent docs above or perhaps start with the basic OS integration (such as the Linux node exporter or the Docker integration) and modify the provided config file to scrape the MKTXP exporter. I’m not familiar with the MKTXP exporter but Grafana Agent is a lightweight subset of Prometheus, so if the MKTXP exporter you linked exposes those metrics then the agent should be able to scrape them.
The remote_write url will be the Prometheus endpoint provided in your cloud account portal. You’ll see the username / instance ID provided there as well, and the password will be an API key you create with Metrics Publisher role. You can also open a support ticket from the cloud account portal for additional assistance!
I want to collect Mikrotik statistics which are prepared by MKTXP into the Prometheus format. My MKTXP collector runs in docker container with ip 172.18.0.5 on port 49090. And next I have an another docker container, Grafana_Agent.
Okay, thanks to @erict things started to make sense to me … for future reference, one has to be on Grafana Cloud Portal - managing the Stack and there clicking ‘Details’ button on Prometheus did the trick and tells the right user/key and the remote_write snippet.