summaryrefslogtreecommitdiffstats
path: root/src/go/collectors/go.d.plugin/config/go.d/sd
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/go/plugin/go.d/config/go.d/sd/docker.conf (renamed from src/go/collectors/go.d.plugin/config/go.d/sd/docker.conf)73
-rw-r--r--src/go/plugin/go.d/config/go.d/sd/net_listeners.conf (renamed from src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf)102
2 files changed, 171 insertions, 4 deletions
diff --git a/src/go/collectors/go.d.plugin/config/go.d/sd/docker.conf b/src/go/plugin/go.d/config/go.d/sd/docker.conf
index b0f1a3aa9..c93fbef87 100644
--- a/src/go/collectors/go.d.plugin/config/go.d/sd/docker.conf
+++ b/src/go/plugin/go.d/config/go.d/sd/docker.conf
@@ -26,6 +26,8 @@ classify:
match:
- tags: "apache"
expr: '{{ match "sp" .Image "httpd httpd:* */apache */apache:* */apache2 */apache2:*" }}'
+ - tags: "beanstalk"
+ expr: '{{ match "sp" .Image "*/beanstalkd */beanstalkd:*" }}'
- tags: "cockroachdb"
expr: '{{ match "sp" .Image "cockroachdb/cockroach cockroachdb/cockroach:*" }}'
- tags: "consul"
@@ -36,10 +38,18 @@ classify:
expr: '{{ or (eq .PrivatePort "8091") (match "sp" .Image "couchbase couchbase:*") }}'
- tags: "couchdb"
expr: '{{ or (eq .PrivatePort "5984") (match "sp" .Image "couchdb couchdb:*") }}'
+ - tags: "dovecot"
+ expr: '{{ or (eq .PrivatePort "24242") (match "sp" .Image "*/dovecot */dovecot:*") }}'
- tags: "elasticsearch"
expr: '{{ or (eq .PrivatePort "9200") (match "sp" .Image "elasticsearch elasticsearch:* */elasticsearch */elasticsearch:* */opensearch */opensearch:*") }}'
+ - tags: "gearman"
+ expr: '{{ and (eq .PrivatePort "4730") (match "sp" .Image "*/gearmand */gearmand:*") }}'
+ - tags: "ipfs"
+ expr: '{{ and (eq .PrivatePort "5001") (match "sp" .Image "ipfs/kubo ipfs/kubo:*") }}'
- tags: "lighttpd"
expr: '{{ match "sp" .Image "*/lighttpd */lighttpd:*" }}'
+ - tags: "memcached"
+ expr: '{{ or (eq .PrivatePort "11211") (match "sp" .Image "memcached memcached:* */memcached */memcached:*") }}'
- tags: "mongodb"
expr: '{{ or (eq .PrivatePort "27017") (match "sp" .Image "mongo mongo:* */mongodb */mongodb:* */mongodb-community-server */mongodb-community-server:*") }}'
- tags: "mysql"
@@ -54,12 +64,22 @@ classify:
expr: '{{ or (eq .PrivatePort "5432") (match "sp" .Image "postgres postgres:* */postgres */postgres:* */postgresql */postgresql:*") }}'
- tags: "proxysql"
expr: '{{ or (eq .PrivatePort "6032") (match "sp" .Image "*/proxysql */proxysql:*") }}'
+ - tags: "puppet"
+ expr: '{{ or (eq .PrivatePort "8140") (match "sp" .Image "puppet/puppetserver puppet/puppetserver:*") }}'
- tags: "rabbitmq"
expr: '{{ or (eq .PrivatePort "15672") (match "sp" .Image "rabbitmq rabbitmq:* */rabbitmq */rabbitmq:*") }}'
- tags: "redis"
expr: '{{ or (eq .PrivatePort "6379") (match "sp" .Image "redis redis:* */redis */redis:*") }}'
+ - tags: "rethinkdb"
+ expr: '{{ and (eq .PrivatePort "28015") (match "sp" .Image "rethinkdb rethinkdb:* */rethinkdb */rethinkdb:*") }}'
+ - tags: "squid"
+ expr: '{{ match "sp" .Image "*/squid */squid:*" }}'
- tags: "tengine"
expr: '{{ match "sp" .Image "*/tengine */tengine:*" }}'
+ - tags: "tor"
+ expr: '{{ and (eq .PrivatePort "9051") (match "sp" .Image "*/tor */tor:*") }}'
+ - tags: "tomcat"
+ expr: '{{ match "sp" .Image "tomcat tomcat:* */tomcat */tomcat:*" }}'
- tags: "vernemq"
expr: '{{ match "sp" .Image "*/vernemq */vernemq:*" }}'
- tags: "zookeeper"
@@ -73,6 +93,11 @@ compose:
module: apache
name: docker_{{.Name}}
url: http://{{.Address}}/server-status?auto
+ - selector: "beanstalk"
+ template: |
+ module: beanstalk
+ name: docker_{{.Name}}
+ address: {{.Address}}
- selector: "cockroachdb"
template: |
module: cockroachdb
@@ -103,6 +128,11 @@ compose:
module: couchdb
name: docker_{{.Name}}
url: http://{{.Address}}
+ - selector: "dovecot"
+ template: |
+ module: dovecot
+ name: docker_{{.Name}}
+ address: {{.Address}}
- selector: "elasticsearch"
template: |
module: elasticsearch
@@ -115,11 +145,26 @@ compose:
username: admin
password: admin
{{ end -}}
+ - selector: "gearman"
+ template: |
+ module: gearman
+ name: docker_{{.Name}}
+ address: {{.Address}}
+ - selector: "ipfs"
+ template: |
+ module: ipfs
+ name: docker_{{.Name}}
+ url: http://{{.Address}}
- selector: "lighttpd"
template: |
module: lighttpd
name: docker_{{.Name}}
url: http://{{.Address}}/server-status?auto
+ - selector: "memcached"
+ template: |
+ module: memcached
+ name: docker_{{.Name}}
+ address: {{.Address}}
- selector: "mongodb"
template: |
module: mongodb
@@ -154,6 +199,11 @@ compose:
module: pika
name: docker_{{.Name}}
address: redis://@{{.Address}}
+ - selector: "rethinkdb"
+ template: |
+ module: rethinkdb
+ name: docker_{{.Name}}
+ address: {{.Address}}
- selector: "postgres"
template: |
module: postgres
@@ -164,6 +214,12 @@ compose:
module: proxysql
name: docker_{{.Name}}
dsn: stats:stats@tcp({{.Address}})/
+ - selector: "puppet"
+ template: |
+ module: puppet
+ name: docker_{{.Name}}
+ url: https://{{.Address}}
+ tls_skip_verify: yes
- selector: "rabbitmq"
template: |
module: rabbitmq
@@ -174,11 +230,26 @@ compose:
module: redis
name: docker_{{.Name}}
address: redis://@{{.Address}}
+ - selector: "squid"
+ template: |
+ module: squid
+ name: docker_{{.Name}}
+ url: http://{{.Address}}
- selector: "tengine"
template: |
module: tengine
name: docker_{{.Name}}
url: http://{{.Address}}/us
+ - selector: "tomcat"
+ template: |
+ module: tomcat
+ name: docker_{{.Name}}
+ url: http://{{.Address}}
+ - selector: "tor"
+ template: |
+ module: tor
+ name: docker_{{.Name}}
+ address: {{.Address}}
- selector: "vernemq"
template: |
module: vernemq
@@ -186,6 +257,6 @@ compose:
url: http://{{.Address}}/metrics
- selector: "zookeeper"
template: |
- module: vernemq
+ module: zookeeper
name: docker_{{.Name}}
address: {{.Address}}
diff --git a/src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf b/src/go/plugin/go.d/config/go.d/sd/net_listeners.conf
index 8d59c0dcb..4462fc112 100644
--- a/src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf
+++ b/src/go/plugin/go.d/config/go.d/sd/net_listeners.conf
@@ -16,6 +16,8 @@ classify:
expr: '{{ and (eq .Port "8161") (eq .Comm "activemq") }}'
- tags: "apache"
expr: '{{ and (eq .Port "80" "8080") (eq .Comm "apache" "apache2" "httpd") }}'
+ - tags: "beanstalk"
+ expr: '{{ or (eq .Port "11300") (eq .Comm "beanstalkd") }}'
- tags: "bind"
expr: '{{ and (eq .Port "8653") (eq .Comm "bind" "named") }}'
- tags: "cassandra"
@@ -40,6 +42,8 @@ classify:
expr: '{{ and (eq .Protocol "UDP") (eq .Port "53") (eq .Comm "dnsmasq") }}'
- tags: "docker_engine"
expr: '{{ and (eq .Port "9323") (eq .Comm "dockerd") }}'
+ - tags: "dovecot"
+ expr: '{{ and (eq .Port "24242") (eq .Comm "dovecot") }}'
- tags: "elasticsearch"
expr: '{{ or (eq .Port "9200") (glob .Cmdline "*elasticsearch*" "*opensearch*") }}'
- tags: "envoy"
@@ -48,6 +52,8 @@ classify:
expr: '{{ and (eq .Port "24220") (glob .Cmdline "*fluentd*") }}'
- tags: "freeradius"
expr: '{{ and (eq .Port "18121") (eq .Comm "freeradius") }}'
+ - tags: "gearman"
+ expr: '{{ or (eq .Port "4730") (eq .Comm "gearmand") }}'
- tags: "geth"
expr: '{{ and (eq .Port "6060") (eq .Comm "geth") }}'
- tags: "haproxy"
@@ -58,6 +64,10 @@ classify:
expr: '{{ and (eq .Port "9870") (eq .Comm "hadoop") }}'
- tags: "hdfs_datanode"
expr: '{{ and (eq .Port "9864") (eq .Comm "hadoop") }}'
+ - tags: "icecast"
+ expr: '{{ and (eq .Port "8000") (eq .Comm "icecast") }}'
+ - tags: "ipfs"
+ expr: '{{ and (eq .Port "5001") (eq .Comm "ipfs") }}'
- tags: "kubelet"
expr: '{{ and (eq .Port "10250" "10255") (eq .Comm "kubelet") }}'
- tags: "kubeproxy"
@@ -66,8 +76,12 @@ classify:
expr: '{{ and (eq .Port "80" "8080") (eq .Comm "lighttpd") }}'
- tags: "logstash"
expr: '{{ and (eq .Port "9600") (glob .Cmdline "*logstash*") }}'
+ - tags: "memcached"
+ expr: '{{ or (eq .Port "11211") (eq .Comm "memcached") }}'
- tags: "mongodb"
expr: '{{ or (eq .Port "27017") (eq .Comm "mongod") }}'
+ - tags: "monit"
+ expr: '{{ or (eq .Port "2812") (eq .Comm "monit") }}'
- tags: "mysql"
expr: '{{ or (eq .Port "3306") (eq .Comm "mysqld" "mariadbd") }}'
- tags: "nginx"
@@ -90,20 +104,34 @@ classify:
expr: '{{ and (eq .Port "8081") (eq .Comm "pdns_recursor") }}'
- tags: "proxysql"
expr: '{{ or (eq .Port "6032") (eq .Comm "proxysql") }}'
+ - tags: "puppet"
+ expr: '{{ or (eq .Port "8140") (glob .Cmdline "*puppet-server*") }}'
- tags: "rabbitmq"
expr: '{{ or (eq .Port "15672") (glob .Cmdline "*rabbitmq*") }}'
- tags: "redis"
expr: '{{ or (eq .Port "6379") (eq .Comm "redis-server") }}'
+ - tags: "rethinkdb"
+ expr: '{{ and (eq .Port "28015") (eq .Comm "rethinkdb") }}'
+ - tags: "riak"
+ expr: '{{ and (eq .Port "8098") (glob .Cmdline "*riak*") }}'
- tags: "rspamd"
expr: '{{ and (eq .Port "11334") (eq .Comm "rspamd") }}'
+ - tags: "squid"
+ expr: '{{ and (eq .Port "3128") (eq .Comm "squid") }}'
- tags: "supervisord"
expr: '{{ and (eq .Port "9001") (eq .Comm "supervisord") }}'
+ - tags: "tomcat"
+ expr: '{{ and (eq .Port "8080") (glob .Cmdline "*tomcat*") }}'
+ - tags: "tor"
+ expr: '{{ and (eq .Port "9051") (eq .Comm "tor") }}'
- tags: "traefik"
expr: '{{ and (eq .Port "80" "8080") (eq .Comm "traefik") }}'
- tags: "unbound"
expr: '{{ and (eq .Port "8953") (eq .Comm "unbound") }}'
- tags: "upsd"
expr: '{{ or (eq .Port "3493") (eq .Comm "upsd") }}'
+ - tags: "uwsgi"
+ expr: '{{ and (eq .Port "1717") (eq .Comm "uwsgi") }}'
- tags: "vernemq"
expr: '{{ and (eq .Port "8888") (glob .Cmdline "*vernemq*") }}'
- tags: "zookeeper"
@@ -129,6 +157,11 @@ compose:
module: apache
name: local
url: http://{{.Address}}/server-status?auto
+ - selector: "beanstalk"
+ template: |
+ module: beanstalk
+ name: local
+ address: {{.Address}}
- selector: "bind"
template: |
module: bind
@@ -193,6 +226,11 @@ compose:
module: docker_engine
name: local
url: http://{{.Address}}/metrics
+ - selector: "dovecot"
+ template: |
+ module: dovecot
+ name: local
+ address: {{.Address}}
- selector: "elasticsearch"
template: |
module: elasticsearch
@@ -227,6 +265,11 @@ compose:
address: {{.IPAddress}}
port: {{.Port}}
secret: adminsecret
+ - selector: "gearman"
+ template: |
+ module: gearman
+ name: local
+ address: {{.Address}}
- selector: "geth"
template: |
module: geth
@@ -252,6 +295,16 @@ compose:
module: hdfs
name: datanode_local
url: http://{{.Address}}/jmx
+ - selector: "icecast"
+ template: |
+ module: icecast
+ name: local
+ url: http://{{.Address}}
+ - selector: "ipfs"
+ template: |
+ module: ipfs
+ name: local
+ url: http://{{.Address}}
- selector: "kubelet"
template: |
module: k8s_kubelet
@@ -277,11 +330,23 @@ compose:
module: logstash
name: local
url: http://{{.Address}}
+ - selector: "memcached"
+ template: |
+ module: memcached
+ name: local
+ address: {{.Address}}
- selector: "mongodb"
template: |
module: mongodb
name: local
uri: mongodb://{{.Address}}
+ - selector: "monit"
+ template: |
+ module: monit
+ name: local
+ url: http://{{.Address}}
+ username: admin
+ password: monit
- selector: "mysql"
template: |
- module: mysql
@@ -330,6 +395,16 @@ compose:
module: pika
name: local
address: redis://@{{.IPAddress}}:{{.Port}}
+ - selector: "rethinkdb"
+ template: |
+ module: rethinkdb
+ name: local
+ address: {{.Address}}
+ - selector: "riak"
+ template: |
+ module: riakkv
+ name: local
+ url: http://{{.Address}}/stats
- selector: "rspamd"
template: |
module: rspamd
@@ -365,6 +440,12 @@ compose:
module: proxysql
name: local
dsn: stats:stats@tcp({{.Address}})/
+ - selector: "puppet"
+ template: |
+ module: puppet
+ name: local
+ url: https://{{.Address}}
+ tls_skip_verify: yes
- selector: "rabbitmq"
template: |
module: rabbitmq
@@ -378,6 +459,11 @@ compose:
module: redis
name: local
address: redis://@{{.Address}}
+ - selector: "squid"
+ template: |
+ module: squid
+ name: local
+ url: http://{{.Address}}
- selector: "supervisord"
template: |
module: supervisord
@@ -388,11 +474,16 @@ compose:
module: traefik
name: local
url: http://{{.Address}}/metrics
- - selector: "traefik"
+ - selector: "tomcat"
template: |
- module: traefik
+ module: tomcat
name: local
- url: http://{{.Address}}/metrics
+ url: http://{{.Address}}
+ - selector: "tor"
+ template: |
+ module: tor
+ name: local
+ address: {{.Address}}
- selector: "unbound"
template: |
module: unbound
@@ -403,6 +494,11 @@ compose:
module: upsd
name: local
address: {{.Address}}
+ - selector: "uwsgi"
+ template: |
+ module: uwsgi
+ name: local
+ address: {{.Address}}
- selector: "vernemq"
template: |
module: vernemq