root@node1:~# curl -s http://localhost:9569/metrics | grep peer
# HELP peer_route_state shows the current peer state for a given route
# TYPE peer_route_state gauge
peer_route_state{family="ipv4 unicast",peer_asn="64496",peer_ip="192.168.1.2",route="192.168.88.2/32",self_asn="64496",self_ip="192.168.1.184"} 1
# HELP peer_state shows the current peer state
# TYPE peer_state gauge
peer_state{peer_asn="64496",peer_ip="192.168.1.2",self_asn="64496",self_ip="192.168.1.184"} 1
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
package fooservice | |
import ( | |
"github.com/segmentio/ksuid" | |
idgen "github.com/lusis/foobar/idgen" | |
pb "github.com/lusis/foobar/pb" | |
storer "github.com/lusis/foobar/storer" | |
) |
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
syntax = "proto3" | |
package = "com.myorg.ptypes"; | |
message User { | |
int64 id = 1; | |
UserStatus status = 2; | |
} | |
message Group { | |
int64 id = 1; |
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
print("hello from a python script") |
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
func TestSCMPluginForProjectResponseEnableImport(t *testing.T) { | |
obj := &SCMPluginForProjectResponse{} | |
// The test response file used here does NOT match the struct | |
data, dataErr := testdata.GetBytes(ListSCMPluginsResponseExportTestFile) | |
if dataErr != nil { | |
t.Fatalf(dataErr.Error()) | |
} | |
placeholder := make(map[string]interface{}) | |
_ = json.Unmarshal(data, &placeholder) |
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
package main | |
import ( | |
"encoding/json" | |
"testing" | |
"github.com/alecthomas/assert" | |
"github.com/davecgh/go-spew/spew" | |
) |
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
--- | |
operations: | |
default: 'read' | |
paths: | |
- '[^/debug/pprof/trace.*]': 'none' | |
debug: | |
default: 'none' | |
paths: | |
- '(^/reload|^/debug/pprof/.*)': 'write' |
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
# place in /etc/yum/pluginconf.d/artifactory.conf | |
[main] | |
enabled=1 |
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
use Test::Nginx::Socket 'no_plan'; | |
no warnings; | |
no_diff; | |
#repeat_each(5); | |
run_tests(); | |
__DATA__ |
Initially getting started is very easy. Being a java based application, it ships with a nice embedded db that will meet most small usage scenarios very easily.
Artifactory makes backups very easy to configure and restores are very straightforward. I've done several migrations from/to AWS and installs and it's worked very well.
NewerOlder