func NewCollector() collector.RPCCollector {
	return &rpkiCollector{}
}
NewCollector creates a new collector
package rpki
import (
	"github.com/czerwonk/junos_exporter/collector"
	"github.com/czerwonk/junos_exporter/rpc"
	"github.com/prometheus/client_golang/prometheus"
)
const prefix string = "junos_rpki_"
var (
	upDesc              *prometheus.Desc
	flapsDesc           *prometheus.Desc
	ipv4PrefixCountDesc *prometheus.Desc
	ipv6PrefixCountDesc *prometheus.Desc
	memoryUtilizationDesc    *prometheus.Desc
	originResultsValidDesc   *prometheus.Desc
	originResultsInvalidDesc *prometheus.Desc
	originResultsUnknownDesc *prometheus.Desc
)
func init() {
	lSession := []string{"target", "ip"}
	upDesc = prometheus.NewDesc(prefix+"session_state", "Session is (0 = Down, 1 = Up, 2 = Connect, 3 = Ex-Incr, 4 = Ex-Start, 5 = Ex-Full)", lSession, nil)
	flapsDesc = prometheus.NewDesc(prefix+"session_flap_count", "Number of session flaps", lSession, nil)
	ipv4PrefixCountDesc = prometheus.NewDesc(prefix+"session_ipv4_prefix_count", "Number of IPv4 route validation records", lSession, nil)
	ipv6PrefixCountDesc = prometheus.NewDesc(prefix+"session_ipv6_prefix_count", "Number of IPv6 route validation records", lSession, nil)
	lStats := []string{"target"}
	stats_prefix := prefix + "statistics_"
	memoryUtilizationDesc = prometheus.NewDesc(stats_prefix+"memory", "Memory utilization of RV database (in bytes)", lStats, nil)
	originResultsValidDesc = prometheus.NewDesc(stats_prefix+"origin_valid", "Origin validation result of valid", lStats, nil)
	originResultsInvalidDesc = prometheus.NewDesc(stats_prefix+"origin_invalid", "Origin validation result of invalid", lStats, nil)
	originResultsUnknownDesc = prometheus.NewDesc(stats_prefix+"origin_unknown", "Origin validation result of unknown", lStats, nil)
}
type rpkiCollector struct {
}
func (*rpkiCollector) Name() string {
	return "RPKI"
}