Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
|
@ -0,0 +1,55 @@
|
|||
[[inputs.jolokia2_agent]]
|
||||
urls = ["http://10.10.10.1:8778"]
|
||||
username = "myuser"
|
||||
password = "mypassword"
|
||||
name_prefix = "java"
|
||||
|
||||
[[inputs.jolokia2_agent.metric]]
|
||||
name = "Memory"
|
||||
mbean = "java.lang:type=Memory/HeapMemoryUsage"
|
||||
|
||||
[inputs.jolokia2_agent.tagdrop]
|
||||
app = ["myapp"]
|
||||
location = ["e*"]
|
||||
|
||||
[[inputs.jolokia2_agent]]
|
||||
urls = ["http://10.10.10.1:8778"]
|
||||
username = "myuser"
|
||||
password = "mypassword"
|
||||
name_prefix = "cassandra"
|
||||
|
||||
[[inputs.jolokia2_agent.metric]]
|
||||
name = "Table"
|
||||
mbean = "org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=ReadLatency"
|
||||
field_prefix = "$2_"
|
||||
tag_keys = ["keyspace", "name", "scope"]
|
||||
|
||||
[inputs.jolokia2_agent.tagdrop]
|
||||
app = ["myapp"]
|
||||
location = ["e*"]
|
||||
|
||||
[[inputs.jolokia2_agent]]
|
||||
urls = ["http://10.10.10.2:8778", "http://localhost:8778"]
|
||||
name_prefix = "java"
|
||||
|
||||
[[inputs.jolokia2_agent.metric]]
|
||||
name = "Memory"
|
||||
mbean = "java.lang:type=Memory/HeapMemoryUsage"
|
||||
|
||||
[inputs.jolokia2_agent.tagdrop]
|
||||
app = ["myapp"]
|
||||
location = ["e*"]
|
||||
|
||||
[[inputs.jolokia2_agent]]
|
||||
urls = ["http://10.10.10.2:8778", "http://localhost:8778"]
|
||||
name_prefix = "cassandra"
|
||||
|
||||
[[inputs.jolokia2_agent.metric]]
|
||||
name = "Table"
|
||||
mbean = "org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=ReadLatency"
|
||||
field_prefix = "$2_"
|
||||
tag_keys = ["keyspace", "name", "scope"]
|
||||
|
||||
[inputs.jolokia2_agent.tagdrop]
|
||||
app = ["myapp"]
|
||||
location = ["e*"]
|
|
@ -0,0 +1,11 @@
|
|||
[[inputs.cassandra]]
|
||||
context = "/jolokia/read"
|
||||
servers = ["myuser:mypassword@10.10.10.1:8778","10.10.10.2:8778",":8778"]
|
||||
metrics = [
|
||||
"/java.lang:type=Memory/HeapMemoryUsage",
|
||||
"/org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=ReadLatency"
|
||||
]
|
||||
|
||||
[inputs.cassandra.tagdrop]
|
||||
app = ["myapp"]
|
||||
location = ["e*"]
|
|
@ -0,0 +1,64 @@
|
|||
[[inputs.jolokia2_agent]]
|
||||
urls = ["http://10.10.10.1:8778"]
|
||||
username = "myuser"
|
||||
password = "mypassword"
|
||||
interval = "20s"
|
||||
name_prefix = "java"
|
||||
alias = "mycassandra"
|
||||
|
||||
[[inputs.jolokia2_agent.metric]]
|
||||
name = "Memory"
|
||||
mbean = "java.lang:type=Memory/HeapMemoryUsage"
|
||||
|
||||
[inputs.jolokia2_agent.tags]
|
||||
app = "myapp"
|
||||
location = "east"
|
||||
|
||||
[[inputs.jolokia2_agent]]
|
||||
urls = ["http://10.10.10.1:8778"]
|
||||
username = "myuser"
|
||||
password = "mypassword"
|
||||
interval = "20s"
|
||||
name_prefix = "cassandra"
|
||||
alias = "mycassandra"
|
||||
|
||||
[[inputs.jolokia2_agent.metric]]
|
||||
name = "Table"
|
||||
mbean = "org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=ReadLatency"
|
||||
field_prefix = "$2_"
|
||||
tag_keys = ["keyspace", "name", "scope"]
|
||||
|
||||
[inputs.jolokia2_agent.tags]
|
||||
app = "myapp"
|
||||
location = "east"
|
||||
|
||||
[[inputs.jolokia2_agent]]
|
||||
urls = ["http://10.10.10.2:8778", "http://localhost:8778"]
|
||||
interval = "20s"
|
||||
name_prefix = "java"
|
||||
alias = "mycassandra"
|
||||
|
||||
[[inputs.jolokia2_agent.metric]]
|
||||
name = "Memory"
|
||||
mbean = "java.lang:type=Memory/HeapMemoryUsage"
|
||||
|
||||
[inputs.jolokia2_agent.tags]
|
||||
app = "myapp"
|
||||
location = "east"
|
||||
|
||||
[[inputs.jolokia2_agent]]
|
||||
urls = ["http://10.10.10.2:8778", "http://localhost:8778"]
|
||||
interval = "20s"
|
||||
name_prefix = "cassandra"
|
||||
alias = "mycassandra"
|
||||
|
||||
[[inputs.jolokia2_agent.metric]]
|
||||
name = "Table"
|
||||
mbean = "org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=ReadLatency"
|
||||
field_prefix = "$2_"
|
||||
tag_keys = ["keyspace", "name", "scope"]
|
||||
|
||||
[inputs.jolokia2_agent.tags]
|
||||
app = "myapp"
|
||||
location = "east"
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
[[inputs.cassandra]]
|
||||
interval = "20s"
|
||||
alias = "mycassandra"
|
||||
context = "/jolokia/read"
|
||||
servers = ["myuser:mypassword@10.10.10.1:8778","10.10.10.2:8778",":8778"]
|
||||
metrics = [
|
||||
"/java.lang:type=Memory/HeapMemoryUsage",
|
||||
"/org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=ReadLatency"
|
||||
]
|
||||
|
||||
[inputs.cassandra.tags]
|
||||
app = "myapp"
|
||||
location = "east"
|
40
migrations/inputs_cassandra/testcases/simple/expected.conf
Normal file
40
migrations/inputs_cassandra/testcases/simple/expected.conf
Normal file
|
@ -0,0 +1,40 @@
|
|||
[[inputs.jolokia2_agent]]
|
||||
urls = ["http://10.10.10.1:8778"]
|
||||
username = "myuser"
|
||||
password = "mypassword"
|
||||
name_prefix = "java"
|
||||
|
||||
[[inputs.jolokia2_agent.metric]]
|
||||
name = "Memory"
|
||||
mbean = "java.lang:type=Memory/HeapMemoryUsage"
|
||||
|
||||
[[inputs.jolokia2_agent]]
|
||||
urls = ["http://10.10.10.1:8778"]
|
||||
username = "myuser"
|
||||
password = "mypassword"
|
||||
name_prefix = "cassandra"
|
||||
|
||||
[[inputs.jolokia2_agent.metric]]
|
||||
name = "Table"
|
||||
mbean = "org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=ReadLatency"
|
||||
field_prefix = "$2_"
|
||||
tag_keys = ["keyspace", "name", "scope"]
|
||||
|
||||
[[inputs.jolokia2_agent]]
|
||||
urls = ["http://10.10.10.2:8778", "http://localhost:8778"]
|
||||
name_prefix = "java"
|
||||
|
||||
[[inputs.jolokia2_agent.metric]]
|
||||
name = "Memory"
|
||||
mbean = "java.lang:type=Memory/HeapMemoryUsage"
|
||||
|
||||
[[inputs.jolokia2_agent]]
|
||||
urls = ["http://10.10.10.2:8778", "http://localhost:8778"]
|
||||
name_prefix = "cassandra"
|
||||
|
||||
[[inputs.jolokia2_agent.metric]]
|
||||
name = "Table"
|
||||
mbean = "org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=ReadLatency"
|
||||
field_prefix = "$2_"
|
||||
tag_keys = ["keyspace", "name", "scope"]
|
||||
|
14
migrations/inputs_cassandra/testcases/simple/telegraf.conf
Normal file
14
migrations/inputs_cassandra/testcases/simple/telegraf.conf
Normal file
|
@ -0,0 +1,14 @@
|
|||
[[inputs.cassandra]]
|
||||
context = "/jolokia/read"
|
||||
## List of cassandra servers exposing jolokia read service
|
||||
servers = ["myuser:mypassword@10.10.10.1:8778","10.10.10.2:8778",":8778"]
|
||||
## List of metrics collected on above servers
|
||||
## Each metric consists of a jmx path.
|
||||
## This will collect all heap memory usage metrics from the jvm and
|
||||
## ReadLatency metrics for all keyspaces and tables.
|
||||
## "type=Table" in the query works with Cassandra3.0. Older versions might
|
||||
## need to use "type=ColumnFamily"
|
||||
metrics = [
|
||||
"/java.lang:type=Memory/HeapMemoryUsage",
|
||||
"/org.apache.cassandra.metrics:type=Table,keyspace=*,scope=*,name=ReadLatency"
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue