Skip to main content
Version: 7.x

grafana

Source

Installing

Add to your deploy.php

require 'contrib/grafana.php';

Configuration options

  • url (required): the URL to the creates annotation api endpoint.
  • token (required): authentication token. Can be created at Grafana Console.
  • time (optional) โ€“ set deploy time of annotation. specify epoch milliseconds. (Defaults is set to the current time in epoch milliseconds.)
  • tags (optional) โ€“ set tag of annotation.
  • text (optional) โ€“ set text of annotation. (Defaults is set to "Deployed " + git log -n 1 --format="%h")
deploy.php

set('grafana', [
'token' => 'eyJrIj...',
'url' => 'http://grafana/api/annotations',
'tags' => ['deploy', 'production'],
]);

Usage

If you want to create annotation about successful end of deployment.

after('deploy:success', 'grafana:annotation');

Tasks

grafana:annotation

Source

Creates Grafana annotation of deployment.



Support Deployer โค๏ธ

Hello, my name is Anton Medvedev (@antonmedv). I'm the creator of the Deployer. I maintain this open source project in my spare time. Supporters on GitHub give me extra motivation to work on the project.

Consider supporting Deployer via GitHub Sponsors.

Also, please, nominate me for GitHub Stars award. Thanks!