grafana / intro-to-mltp

Introduction to Metrics, Logs, Traces and Profiles session companion code.
GNU Affero General Public License v3.0
365 stars 80 forks source link

Updates configuration for local and Grafana Cloud execution. #73

Closed hedss closed 8 months ago

hedss commented 8 months ago

The ctl.sh scripts and unconfigured YAML for Grafana Cloud was slightly cumbersome. With the advent of Flow and the ability to read from local files, this commit allows the Agent to simply use a common JSON object located in file to configure the URL and credentials for each signal.

The README includes details on how to configure for Grafana Cloud, which is now simply a matter of replacing the URLs and basic auth credentials in the agent/endspoints-cloud.json file.

Also a slight modification to the endpoints code to standardise naming conventions.

Finally, static configurations for the Agent have now been deprecated and the relevant files and options removed.