This datasource provides access to Mezmo (LogDNA) logs in grafana panels. You can build and install it yourself in your environment. Grafana does not accept contributions of plugins to their registry that talk to commercial services, unless you pay for a commercial grafana.com subscription, which is why this is not in the main grafana registry.
-
Install dependencies
npm install
-
Build plugin in development mode and run in watch mode
npm run dev
-
Build plugin in production mode
npm run build
You can build and install this as a private plugin. To do this you must sign the plugin, privately.
When distributing a Grafana plugin either within the community or privately the plugin must be signed so the Grafana application can verify its authenticity. This can be done with the @grafana/sign-plugin package.
Note: It's not necessary to sign a plugin during development. The docker development environment that is scaffolded with @grafana/create-plugin caters for running the plugin without a signature.
Before signing a plugin please read the Grafana plugin publishing and signing criteria documentation carefully.
@grafana/create-plugin has added the necessary commands and workflows to make signing and distributing a plugin via the grafana plugins catalog as straightforward as possible.
Before signing a plugin for the first time please consult the Grafana plugin signature levels documentation to understand the differences between the types of signature level.
- Create a Grafana Cloud account.
- Make sure that the first part of the plugin ID matches the slug of your Grafana Cloud account.
- You can find the plugin ID in the
plugin.jsonfile inside your plugin directory. For example, if your account slug isacmecorp, you need to prefix the plugin ID withacmecorp-.
- You can find the plugin ID in the
- Create a Grafana Cloud API key with the
PluginPublisherrole. - Keep a record of this API key as it will be required for signing a plugin
With signing key in hand, do the following:
rm -rf dist
npm run build
GRAFANA_ACCESS_POLICY_TOKEN=XXXX npx @grafana/sign-plugin@latest --rootUrls URL_OF_YOUR_INSTALLATION
cp -a dist/ sdague-mezmo-datasource/
VERSION=$(cat package.json | jq '.version' -r)
zip sdague-mezmo-datasource-$VERSION.zip sdague-mezmo-datasource -r
This is now ready for installation.