-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'fork/master'
- Loading branch information
Showing
16 changed files
with
336 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
working_directory: ~/circleci-java | ||
docker: | ||
- image: circleci/openjdk:8-jdk-stretch | ||
|
||
steps: | ||
- checkout | ||
- restore_cache: # restore the saved cache after the first run or if `pom.xml` has changed | ||
key: circleci-demo-java-spring-{{ checksum "pom.xml" }} | ||
- run: mvn dependency:go-offline # gets the project dependencies | ||
- save_cache: | ||
paths: | ||
- ~/.m2 | ||
key: circleci-demo-java-spring-{{ checksum "pom.xml" }} | ||
|
||
- run: mvn package |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package io.prometheus.jmx; | ||
|
||
import javax.management.MBeanServer; | ||
import javax.management.ObjectName; | ||
import java.util.Date; | ||
|
||
public interface CamelMBean { | ||
double EXPECTED_SECONDS = 1.573285945111E9; | ||
|
||
Date getLastExchangeFailureTimestamp(); | ||
} | ||
|
||
class Camel implements CamelMBean { | ||
public static void registerBean(MBeanServer mbs) | ||
throws javax.management.JMException { | ||
ObjectName mbeanName = new ObjectName( | ||
"org.apache.camel:context=my-camel-context,type=routes,name=\"my-route-name\""); | ||
Camel mbean = new Camel(); | ||
mbs.registerMBean(mbean, mbeanName); | ||
} | ||
|
||
@Override | ||
public Date getLastExchangeFailureTimestamp() { | ||
return new Date((long)(EXPECTED_SECONDS * 1000)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
lowercaseOutputName: true | ||
lowercaseOutputLabelNames: true | ||
blacklistObjectNames: | ||
- "org.apache.activemq:clientId=*,*" | ||
whitelistObjectNames: | ||
- "org.apache.activemq:destinationType=Queue,*" | ||
- "org.apache.activemq:destinationType=Topic,*" | ||
- "org.apache.activemq:type=Broker,brokerName=*" | ||
- "org.apache.activemq:type=Topic,brokerName=*" | ||
|
||
rules: | ||
- pattern: org.apache.activemq<type=Broker, brokerName=(\S*), destinationType=Queue, destinationName=(\S*)><>(\w+) | ||
name: activemq_queue_$3 | ||
attrNameSnakeCase: true | ||
labels: | ||
destination: $2 | ||
|
||
- pattern: org.apache.activemq<type=Broker, brokerName=(\S*), destinationType=Topic, destinationName=(\S*)><>(\w+) | ||
name: activemq_topic_$3 | ||
attrNameSnakeCase: true | ||
labels: | ||
destination: $2 | ||
|
||
- pattern: org.apache.activemq<type=Broker, brokerName=(\S*)><>CurrentConnectionsCount | ||
name: activemq_connections | ||
type: GAUGE | ||
|
||
- pattern: org.apache.activemq<type=Broker, brokerName=(\S*)><>Total(.*)Count | ||
name: activemq_$2_total | ||
type: COUNTER | ||
|
||
- pattern: org.apache.activemq<type=Broker, brokerName=(\S*)><>(.*)PercentUsage | ||
name: activemq_$2_usage_ratio | ||
type: GAUGE | ||
valueFactor: 0.01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.