Change aerospike plugin server tag to aerospike_host

This is to avoid a conflict with the standard "host" tag that is
used everywhere.
This commit is contained in:
Tait Clarridge 2015-11-29 08:29:52 -05:00
parent 13ccf420d7
commit 67faeb5f84
2 changed files with 4 additions and 4 deletions

View File

@ -250,8 +250,8 @@ func get(key []byte, host string) (map[string]string, error) {
func readAerospikeStats(stats map[string]string, acc plugins.Accumulator, host, namespace string) {
for key, value := range stats {
tags := map[string]string{
"host": host,
"namespace": "_service",
"aerospike_host": host,
"namespace": "_service",
}
if namespace != "" {

View File

@ -67,8 +67,8 @@ func TestReadAerospikeStatsNamespace(t *testing.T) {
readAerospikeStats(stats, &acc, "host1", "test")
tags := map[string]string{
"host": "host1",
"namespace": "test",
"aerospike_host": "host1",
"namespace": "test",
}
for k := range stats {
assert.True(t, acc.ValidateTaggedValue(k, int64(12345), tags) == nil)