/etc/influxdb/influxdb.conf dosyasını aşağıdaki gibi editleyiniz
[http]
[...]
# Determines whether HTTPS is enabled.
https-enabled = true
helmins() { | |
kubectl -n kube-system create serviceaccount tiller | |
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller | |
helm init --service-account=tiller | |
} | |
helmdel() { | |
kubectl -n kube-system delete deployment tiller-deploy | |
kubectl delete clusterrolebinding tiller | |
kubectl -n kube-system delete serviceaccount tiller | |
UPDATE tbladmins SET authmodule = '' AND authdata = '' WHERE username = 'youradminusername'; |
#!/bin/bash | |
IMAGE_DIRECTORY="/var/lib/libvirt/images" | |
KICKSTART_DIRECTORY="/var/www/html" | |
if [ ${DEBUG} ];then | |
OUTPUT=/dev/tty | |
else | |
OUTPUT=/dev/null | |
fi |
chown -R www-data:www-data /application/ |
//Yeni db oluşturulması | |
curl -XPOST "http://localhost:8086/query?u=user&p=pass" --data-urlencode "q=CREATE DATABASE monitor" | |
//insert işlemi | |
curl -XPOST "http://localhost:8086/write?db=monitor&u=user&p=pass" -d 'network_traffic,host=test,interface=eth1,direction=inbound value=1' | |
//select işlemi | |
curl -G "http://localhost:8086/query?pretty=true&u=user&p=pass" --data-urlencode "db=mydb" --d "q=SELECT * FROM network_traffic" |
/etc/influxdb/influxdb.conf dosyasını aşağıdaki gibi editleyiniz
[http]
[...]
# Determines whether HTTPS is enabled.
https-enabled = true
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add - | |
apt-get update | |
apt-get install influxdb | |
apt-get install influxdb-client | |
package main | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"fmt" | |
"io" | |
"log" | |
) |
echo 'Acquire::ForceIPv4 "true";' | sudo tee /etc/apt/apt.conf.d/99force-ipv4
func BandwidthSize(bytes uint64) (float64, string) { | |
var tmp float64 = float64(bytes) | |
var s string = " " | |
bytes = uint64(tmp) | |
switch { | |
case bytes < uint64(2<<9): | |
case bytes < uint64(2<<19): |