-
What Grafana version and what operating system are you using?
Grafana Version = 8.4.7 -
What are you trying to achieve?
I am trying to access a CSV datasource from Grafana using nixOS -
How are you trying to achieve it?
I am using the below config in the .nix file
services.grafana = {
enable = true;
domain = “grafana.xxxx.xxxx”;
rootUrl = “”;
port = 3000;
addr = “127.0.0.1”;
extraOptions = {
SMTP_ENABLED = “true”;
SMTP_FROM_ADDRESS = “xxxx@xxxx.xxxx";
SMTP_HOST = “smtp.office365.com:587”;
SMTP_PASSWORD = lib.removeSuffix “\n” (builtins.readFile /etc/nixos/secrets/smtp_secret);
SMTP_USER = “xxxx”@xxxx.xxxx;
PLUGIN_MARCUSOLSSON_CSV_DATASOURCE_ALLOW_LOCAL_MODE=“true”;
};
provision = {
enable = true;
datasources = [{
url = “”;
type = “prometheus”;
name = “xxxx-prometheus";
access = “proxy”;
}
{
url = “”;
type = “loki”;
name = “xxxx-loki";
access = “proxy”;
}
{
url = “”;
type = “CSV”;
editable = true;
name = "CSV1”;
access = “proxy”;
}];
};
}; -
What happened?
The datasource seems to be added . But when I click on the created datasource , it throws an error “Plugin not found, no installed plugin with that id” and "** Unknown Plugin
Data Source Error**"
-
What did you expect to happen?
The datasource should be valid and testable -
Can you copy/paste the configuration(s) that you are having problems with?
services.grafana = {
enable = true;
domain = “grafana.xxxx.xxxx”;
rootUrl = “”;
port = 3000;
addr = “127.0.0.1”;
extraOptions = {
SMTP_ENABLED = “true”;
SMTP_FROM_ADDRESS = “xxxx@xxxx.xxxx";
SMTP_HOST = “smtp.office365.com:587”;
SMTP_PASSWORD = lib.removeSuffix “\n” (builtins.readFile /etc/nixos/secrets/smtp_secret);
SMTP_USER = “xxxx”@xxxx.xxxx;
PLUGIN_MARCUSOLSSON_CSV_DATASOURCE_ALLOW_LOCAL_MODE=“true”;
};
provision = {
enable = true;
datasources = [{
url = “”;
type = “prometheus”;
name = “xxxx-prometheus";
access = “proxy”;
}
{
url = “”;
type = “loki”;
name = “xxxx-loki";
access = “proxy”;
}
{
url = “”;
type = “CSV”;
editable = true;
name = "CSV1”;
access = “proxy”;
}];
};
}; -
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
Yes.
On Grafana UI , when I click on the created datasource it shows
" Unknown Plugin
Data Source Error"
. Also an error pops up with message “Plugin not found, no installed plugin with that id”