AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / unix / Perguntas / 536355
Accepted
Satish
Satish
Asked: 2019-08-20 13:49:20 +0800 CST2019-08-20 13:49:20 +0800 CST 2019-08-20 13:49:20 +0800 CST

vários [[collectd]] em influx.conf

  • 772

Tenho a seguinte collectdinstância rodando em influx.confarquivo e está tudo ok, mas agora quero configurar outra instância totalmente isolada com uma existente como faço isso? E posso fazer o seguinte no influx.confarquivo?

[[collectd]]
  enabled = true
  bind-address = "0.0.0.0:8096"
  database = "database-1"

[[collectd]]
  enabled = true
  bind-address = "0.0.0.0:8097"
  database = "database-2"
linux database
  • 1 1 respostas
  • 504 Views

1 respostas

  • Voted
  1. Best Answer
    Bart
    2019-08-21T04:24:12+08:002019-08-21T04:24:12+08:00

    De acordo com a documentação , você deve poder usar várias instâncias de entrada CollectD exatamente como especificou acima.

    Editar

    Sua configuração falha security-levele provavelmente mais opções:

    run: invalid collectd config: Invalid security level. To generate a valid configuration file run `influxd config > influxdb.generated.conf`
    

    Isso funciona para mim com até 3 collectdinstâncias configuradas assim:

    [[collectd]]
      enabled = true 
      bind-address = ":25826"
      database = "collectd-1"
      retention-policy = ""
      batch-size = 5000
      batch-pending = 10
      batch-timeout = "10s"
      read-buffer = 0
      typesdb = "/usr/share/collectd/types.db"
      security-level = "none"
      auth-file = "/etc/collectd/auth_file"
      parse-multivalue-plugin = "split"
    
    [[collectd]]
      enabled = true
      bind-address = ":25827"
      database = "collectd-2"
      retention-policy = ""
      batch-size = 5000
      batch-pending = 10
      batch-timeout = "10s"
      read-buffer = 0
      typesdb = "/usr/share/collectd/types.db"
      security-level = "none"
      auth-file = "/etc/collectd/auth_file"
      parse-multivalue-plugin = "split"
    
    [[collectd]]
      enabled = true
      bind-address = ":25828"
      database = "collectd-3"
      retention-policy = ""
      batch-size = 5000
      batch-pending = 10
      batch-timeout = "10s"
      read-buffer = 0
      typesdb = "/usr/share/collectd/types.db"
      security-level = "none"
      auth-file = "/etc/collectd/auth_file"
      parse-multivalue-plugin = "split"
    
    $ docker run -p 8086:8086 -v $PWD/influxdb.conf:/etc/influxdb/influxdb.conf:ro -v $PWD/types.db:/usr/share/collectd/types.db influxdb -config /etc/influxdb/influxdb.conf
    [...]
    ts=2019-08-20T14:23:49.750638Z lvl=info msg="Starting collectd service" log_id=0HNrR~ZG000 service=collectd
    ts=2019-08-20T14:23:49.750653Z lvl=info msg="Loading types from file" log_id=0HNrR~ZG000 service=collectd path=/usr/share/collectd/types.db
    ts=2019-08-20T14:23:49.754041Z lvl=info msg="Listening on UDP" log_id=0HNrR~ZG000 service=collectd addr=[::]:25826
    ts=2019-08-20T14:23:49.754405Z lvl=info msg="Starting collectd service" log_id=0HNrR~ZG000 service=collectd
    ts=2019-08-20T14:23:49.754436Z lvl=info msg="Loading types from file" log_id=0HNrR~ZG000 service=collectd path=/usr/share/collectd/types.db
    ts=2019-08-20T14:23:49.759837Z lvl=info msg="Listening on UDP" log_id=0HNrR~ZG000 service=collectd addr=[::]:25827
    ts=2019-08-20T14:23:49.760296Z lvl=info msg="Starting collectd service" log_id=0HNrR~ZG000 service=collectd
    ts=2019-08-20T14:23:49.760321Z lvl=info msg="Loading types from file" log_id=0HNrR~ZG000 service=collectd path=/usr/share/collectd/types.db
    ts=2019-08-20T14:23:49.763582Z lvl=info msg="Listening on UDP" log_id=0HNrR~ZG000 service=collectd addr=[::]:25828
    ts=2019-08-20T14:23:49.764035Z lvl=info msg="Sending usage statistics to usage.influxdata.com" log_id=0HNrR~ZG000
    ts=2019-08-20T14:23:49.764091Z lvl=info msg="Listening for signals" log_id=0HNrR~ZG000
    
    • 1

relate perguntas

  • Existe uma maneira de fazer ls mostrar arquivos ocultos apenas para determinados diretórios?

  • Inicie/pare o serviço systemd usando o atalho de teclado [fechado]

  • Necessidade de algumas chamadas de sistema

  • astyle não altera a formatação do arquivo de origem

  • Passe o sistema de arquivos raiz por rótulo para o kernel do Linux

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Possível firmware ausente /lib/firmware/i915/* para o módulo i915

    • 3 respostas
  • Marko Smith

    Falha ao buscar o repositório de backports jessie

    • 4 respostas
  • Marko Smith

    Como exportar uma chave privada GPG e uma chave pública para um arquivo

    • 4 respostas
  • Marko Smith

    Como podemos executar um comando armazenado em uma variável?

    • 5 respostas
  • Marko Smith

    Como configurar o systemd-resolved e o systemd-networkd para usar o servidor DNS local para resolver domínios locais e o servidor DNS remoto para domínios remotos?

    • 3 respostas
  • Marko Smith

    apt-get update error no Kali Linux após a atualização do dist [duplicado]

    • 2 respostas
  • Marko Smith

    Como ver as últimas linhas x do log de serviço systemctl

    • 5 respostas
  • Marko Smith

    Nano - pule para o final do arquivo

    • 8 respostas
  • Marko Smith

    erro grub: você precisa carregar o kernel primeiro

    • 4 respostas
  • Marko Smith

    Como baixar o pacote não instalá-lo com o comando apt-get?

    • 7 respostas
  • Martin Hope
    user12345 Falha ao buscar o repositório de backports jessie 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl Por que a maioria dos exemplos do systemd contém WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky Como exportar uma chave privada GPG e uma chave pública para um arquivo 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll status systemctl mostra: "Estado: degradado" 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim Como podemos executar um comando armazenado em uma variável? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S Por que /dev/null é um arquivo? Por que sua função não é implementada como um programa simples? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 Como ver as últimas linhas x do log de serviço systemctl 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - pule para o final do arquivo 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla Por que verdadeiro e falso são tão grandes? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis Substitua a string em um arquivo de texto enorme (70 GB), uma linha 2017-12-30 06:58:33 +0800 CST

Hot tag

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve