This is a Grafana datasource plugin for G-Core Labs statistics.
Grafana supports a wide range of data sources, including Prometheus, MySQL, and even Datadog. There’s a good chance you can already visualize metrics from the systems you have set up.
In our case this datasource plugin is backed by Gcore CDN statistics API.
If you are running multiple instances of Grafana you might run into problems if they have different versions of the datasource.yaml configuration file. The best way to solve this problem is to add a version number to each datasource in the configuration and increase it when you update the config. Grafana will only update datasources with the same or lower version number than specified in the config. That way, old configs cannot overwrite newer configs if they restart at the same time.
apiVersion: 1
datasources:
- name: cdn-stats
orgId: 1
editable: true
access: proxy
type: gcorelabs-cdn-stats-datasource
isDafault: true
version: 1
jsonData:
apiUrl: api.gcore.com
secureJsonData:
apiKey: 'APIKey ...'