Grafana agent config api

Hello,
I’m trying to use the grafana agent API described here and I’m having a bit of a problem using the get and update config.
When I go to /agent/api/v1/configs, I get an error “no config store running”.
Also, when I’m trying to upadte and add a new config, I get an error “not connected to store”.
I guess there is some configuration I need to apply to make it work, but I couldn’t find any documentation on this.
Can anyone help?

Also, once I add/update a specific configuration, how do I apply it?

Thank you.

Those API endpoints are used primarily when using the Scraping Service mode which requires a key value store (consul or etcd). Are you running in scraping service mode? You can refer to the scraping service documentation for more details.

Feel free for any future questions add them to the Agent discussions or github issues, the Agent team checks those more regularly than these forums.