{"repo":"alphagov/paas-grafana-annotation-resource","free":true,"listed":false,"github":"https://github.com/alphagov/paas-grafana-annotation-resource","clone":"git clone https://github.com/alphagov/paas-grafana-annotation-resource.git","description":"A concourse resource for creating and updating Grafana annotations, now maintained by GOV.UK Pay","language":"Go","stars":12,"topics":["concourse","concourse-resource","grafana","govuk-pay"],"license":"MIT","category":"analytics","readme_excerpt":"paas-grafana-annotation-resource ----------------------------- A resource for adding annotations to Grafana dashboards. The resource represents a single Grafana ( version = 6.4 ) and this resource can be used to add and update annotations using tags. Version 6.4 and above is required because the resource assumes that resources are represented by a single annotation. Usage ----- See the example below for all the pipeline code. If you create an annotation using with put: resource-name , it will be a point-in-time annotation. This put step will write the ID of the current resource to resource-name/id . In order to make it the annotation a region annotation, put to the resource again, but pass the resource name to the path path param. This will update the annotation, and make it a region beginning when the resource was created, and ending at the current time. Example ------- In the following example, imagine we are running smoke tests from Concourse, and we want to annotate our Grafana dashboard with a region during which the smoke tests ran. First define grafana-annotation as a resource type: Then declare a grafana-annotation resource with a descriptive name: Then use the resource: Configuration ------------- The source can be configured like so: The params can be configured like so: Notes ----- - The tags in source and params are merged - When an existing annotation is updated, the tags from creation are overwritten with the tags from the update - You should ensure put steps to","default_branch":null,"files":null,"tree":[],"storefront":"/r/alphagov","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alphagov/paas-grafana-annotation-resource/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}