Actor picture

Grafana Generate Snapshots

defensivedepth/grafana-generate-snapshots

Generates a Grafana Dashboard Snapshot. To use, edit the Grafana login URL in the source and re-build the act. Then call the API with valid Grafana credentials and target report URL in the body. The output will be the snapshot URL. This act must use image with Puppeteer (Node.js 8 + Puppeteer on Debian).

You need to have an Apify account with an API token.

  1. To run the actor from your program externally, copy-paste the code below into your program (based on programming language)

  2. Replace <YOUR_API_TOKEN> with your own token (you can find it here)

1
2
3
4
5
6
7
8
const Apify = require('Apify');

Apify.client.setOptions({ token: '<YOUR_API_TOKEN>' });

const run = await Apify.call('defensivedepth/grafana-generate-snapshots', { });

console.log('Actor finished, here is the output:');
console.dir(run.output);
For further information, check out these resources
  • Modified
  • Last run
  • Used49 times
  • Used by19 users