Influxdb: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(6 dazwischenliegende Versionen von 4 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
 
=Install=
 
=Install=
*wget https://dl.influxdata.com/influxdb/releases/influxdb_1.2.2_amd64.deb
+
*[[Influxdb install]]
*sudo dpkg -i influxdb_1.2.2_amd64.deb
 
  
 
=Influx Client=
 
=Influx Client=
 
==Enter the Client==
 
==Enter the Client==
 +
===Plaintext===
 
*influx
 
*influx
 +
===ssl===
 +
*influx -ssl -unsafeSsl
 +
 
==Create a database==
 
==Create a database==
 
>create database telegraf;
 
>create database telegraf;
 
==Create a user==
 
==Create a user==
>create user telegraf with password ‘oimel’;
+
>create user telegraf with password 'oimel';
 +
 
 
==Grant rights to user==
 
==Grant rights to user==
 
>grant all on telegraf to telegraf;
 
>grant all on telegraf to telegraf;
Zeile 16: Zeile 20:
 
==Drop a user==
 
==Drop a user==
 
>drop user telegraf with password ‘oimel’;
 
>drop user telegraf with password ‘oimel’;
 +
 +
=SSL Connection=
 +
*Zertifikate nach /etc/ssl kopieren
 +
*vi /etc/influxdb/influxdb.conf
 +
<pre>
 +
[http]
 +
https-enabled = true
 +
https-certificate = "/etc/ssl/my-cert.crt"
 +
https-private-key = "/etc/ssl/my-key.key"
 +
</pre>
 +
*systemctl restart influxdb.service
 +
=Influxdb Querys=
 +
*[[Influxdb Querys]]

Aktuelle Version vom 29. März 2023, 07:35 Uhr

Install

Influx Client

Enter the Client

Plaintext

  • influx

ssl

  • influx -ssl -unsafeSsl

Create a database

>create database telegraf;

Create a user

>create user telegraf with password 'oimel';

Grant rights to user

>grant all on telegraf to telegraf;

Drop a database

>drop database telegraf;

Drop a user

>drop user telegraf with password ‘oimel’;

SSL Connection

  • Zertifikate nach /etc/ssl kopieren
  • vi /etc/influxdb/influxdb.conf
[http]
https-enabled = true
https-certificate = "/etc/ssl/my-cert.crt"
https-private-key = "/etc/ssl/my-key.key"
  • systemctl restart influxdb.service

Influxdb Querys