All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pectator.spectator-ext-jvm.1.8.3.source-code.bitbucket.conf Maven / Gradle / Ivy

The newest version!
// http://confluence.atlassian.com/bitbucketserver/enabling-jmx-counters-for-performance-monitoring-776640189.html
netflix.spectator.agent.jmx {
  mappings = ${?netflix.spectator.agent.jmx.mappings} [
    {
      query = "com.atlassian.bitbucket.thread-pools:name=*"
      measurements = [
        {
          name = "bitbucket.threadpool.maximumPoolSize"
          value = "{MaximumPoolSize}"
          tags = [
            {
              key = "id"
              value = "${name}"
            },
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        },
        {
          name = "bitbucket.threadpool.poolSize"
          value = "{PoolSize}"
          tags = [
            {
              key = "id"
              value = "${name}"
            },
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        },
        {
          name = "bitbucket.threadpool.activeCount"
          value = "{ActiveCount}"
          tags = [
            {
              key = "id"
              value = "${name}"
            },
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        },
        {
          name = "bitbucket.threadpool.queueLength"
          value = "{QueueLength}"
          tags = [
            {
              key = "id"
              value = "${name}"
            },
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        }
      ]
    },
    {
      query = "com.atlassian.bitbucket:name=ScmStatistics"
      measurements = [
        {
          name = "bitbucket.scm.pulls"
          value = "{Pulls}"
          counter = true
          tags = [
            {
              key = "atlas.dstype"
              value = "rate"
            }
          ]
        },
        {
          name = "bitbucket.scm.pushes"
          value = "{Pushes}"
          counter = true
          tags = [
            {
              key = "atlas.dstype"
              value = "rate"
            }
          ]
        }
      ]
    },
    {
      query = "com.atlassian.bitbucket:name=CommandTickets"
      measurements = [
        {
          name = "bitbucket.commandTickets.total"
          value = "{Total}"
          tags = [
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        },
        {
          name = "bitbucket.commandTickets.queuedRequests"
          value = "{QueuedRequests}"
          tags = [
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        },
        {
          name = "bitbucket.commandTickets.available"
          value = "{Available}"
          tags = [
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        }
      ]
    },
    {
      query = "com.atlassian.bitbucket:name=HostingTickets"
      measurements = [
        {
          name = "bitbucket.hostingTickets.total"
          value = "{Total}"
          tags = [
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        },
        {
          name = "bitbucket.hostingTickets.queuedRequests"
          value = "{QueuedRequests}"
          tags = [
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        },
        {
          name = "bitbucket.hostingTickets.available"
          value = "{Available}"
          tags = [
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        }
      ]
    },
    {
      query = "com.zaxxer.hikari:type=*"
      measurements = [
        {
          name = "bitbucket.hikaricp.idleConnections"
          value = "{IdleConnections}"
          tags = [
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        },
        {
          name = "bitbucket.hikaricp.maximumPoolSize"
          value = "{MaximumPoolSize}"
          tags = [
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        },
        {
          name = "bitbucket.hikaricp.activeConnections"
          value = "{ActiveConnections}"
          tags = [
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        },
        {
          name = "bitbucket.hikaricp.threadsAwaitingConnection"
          value = "{ThreadsAwaitingConnection}"
          tags = [
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        }
      ]
    },
    {
      query = "com.atlassian.bitbucket:name=SshSessions"
      measurements = [
        {
          name = "bitbucket.ssh.activeSessionCount"
          value = "{ActiveSessionCount}"
          tags = [
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        },
        {
          name = "bitbucket.ssh.exceptionSessionCount"
          value = "{SessionExceptionCount}"
          counter = true
          tags = [
            {
              key = "atlas.dstype"
              value = "rate"
            }
          ]
        },
        {
          name = "bitbucket.ssh.createdSessionCount"
          value = "{SessionCreatedCount}"
          counter = true
          tags = [
            {
              key = "atlas.dstype"
              value = "rate"
            }
          ]
        },
        {
          name = "bitbucket.ssh.maxActiveSessionCount"
          value = "{MaxActiveSessionCount}"
          tags = [
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        },
        {
          name = "bitbucket.ssh.closedSessionCount"
          value = "{SessionClosedCount}"
          counter = true
          tags = [
            {
              key = "atlas.dstype"
              value = "rate"
            }
          ]
        }
      ]
    },
    {
      query = "com.atlassian.bitbucket:name=Projects"
      measurements = [
        {
          name = "bitbucket.projects"
          value = "{Count}"
          tags = [
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        }
      ]
    },
    {
      query = "com.atlassian.bitbucket:name=Repositories"
      measurements = [
        {
          name = "bitbucket.repositories"
          value = "{Count}"
          tags = [
            {
              key = "atlas.dstype"
              value = "gauge"
            }
          ]
        }
      ]
    }
  ]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy