Skip to content

Automation to create InfluxDB fails #26

@ghost

Description

The $ curl not found at Grafana Pod.

bash-5.0$ curl 'http://admin:admin@127.0.0.1:3000/api/datasources' -X POST -H 'Content-Type: application/json;charset=UTF-8' --data-binary '{"name":"jmeterdb","type":"influxdb","url":"http://'$influxdb_svc':8086","access":"proxy","isDefault":true,"database":"jmeter","user":"admin","password":"admin"}'
bash: curl: command not found
bash-5.0$ cat /etc/issue 
Welcome to Alpine Linux 3.12
Kernel \r on an \m (\l)

When you try execute the script initialize_cluster.sh return a generic error:

./initialize_cluster.sh 
Enter the Jmeter Namespace: mynamespace
Creating Influxdb jmeter Database
Creating the Influxdb data source
OCI runtime exec failed: exec failed: container_linux.go:370: starting container process caused: exec: "curl": executable file not found in $PATH: unknown
command terminated with exit code 126

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions